Skip to contentSkip to conversation

pmdk: fix install error

PATCH Superseded Yongxin Liu 3 participants 7 messages Jan 9, 2019 – Jan 10, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pmdk: fix install error

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
 meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +2 -2
index 3da22a970..af2229f1c 100644
@@ -43,10 +43,10 @@ do_install() {
 	mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
 	install -d ${D}${libdir}
-	mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+	mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 
 	install -d ${D}${libdir}/pkgconfig
-	mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
+	mv ${D}/usr/local/lib64/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
 
 	install -d ${D}${includedir}
 	mv ${D}/usr/local/include/* ${D}${includedir}/
Signature · 1 line
2.14.4
#1 lore raw
Quoted 13 lines · Yongxin Liu

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
 meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0
index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 6 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
@@ -43,10 +43,10 @@ do_install() {
        mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
        install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Quoted 14 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -2
        install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
 
        install -d ${D}${includedir}
        mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 25 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, January 9, 2019 18:06
To: Liu, Yongxin
Cc: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

meta-

Quoted 9 lines · Yongxin Liu

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
 meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0

oe/recipes-extended/pmdk/pmdk_1.4.2.bb

Quoted 6 lines

index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0
@@ -43,10 +43,10 @@ do_install() {
        mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
Quoted 6 lines

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 4 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
        install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Since ${base_libdir} is "/lib64", should we use "/usr/local${base_libdir}" ? Or it is fine to go with "/usr/local//lib64" after parsing?

Thanks,
Yongxin

Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -2
        install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
 
        install -d ${D}${includedir}
        mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 33 lines · Yongxin
Quoted 26 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, January 9, 2019 18:06
To: Liu, Yongxin
Cc: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

meta-

Quoted 9 lines · Yongxin Liu

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
 meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0

oe/recipes-extended/pmdk/pmdk_1.4.2.bb

Quoted 6 lines

index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0
@@ -43,10 +43,10 @@ do_install() {
        mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
Quoted 6 lines

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 4 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
        install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Quoted 2 lines

Since ${base_libdir} is "/lib64", should we use "/usr/local${base_libdir}" ? Or it is fine to go with "/usr/local//lib64" after parsing?

using /usr/local${base_libdir} is fine

Quoted 19 lines

Thanks,
Yongxin

Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -2
        install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
 
        install -d ${D}${includedir}
        mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 34 lines · Khem Raj
Quoted 33 lines · Yongxin
Quoted 32 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, January 9, 2019 18:06
To: Liu, Yongxin
Cc: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

meta-

Quoted 9 lines · Yongxin Liu

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
  meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0

oe/recipes-extended/pmdk/pmdk_1.4.2.bb

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 10 lines

index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
@@ -43,10 +43,10 @@ do_install() {
         mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
         install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Quoted 4 lines
Quoted 2 lines

Since ${base_libdir} is "/lib64", should we use "/usr/local${base_libdir}" ? Or it is fine to go with "/usr/local//lib64" after parsing?

using /usr/local${base_libdir} is fine

It's a little odd that the default prefix is /usr/local rather than /usr . It would make sense to start with /usr/local in early development but the first commit to pmdk on github was in 2014...

If this is part of the system, use /usr, if it's a hack or an install owned by the local system admin, use /usr/local. As per, for example:
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html

../Randy

Quoted 20 lines
Quoted 20 lines

Thanks,
Yongxin

Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -2
         install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc ${D}${libdir}/pkgconfig/
 
         install -d ${D}${includedir}
         mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#5 lore raw
Quoted 56 lines

-----Original Message-----
From: MacLeod, Randy
Sent: Thursday, January 10, 2019 05:36
To: Liu, Yongxin
Cc: Khem Raj; openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

Quoted 1 line · Khem Raj

On Wed, Jan 9, 2019 at 2:17 AM Liu, Yongxin <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, January 9, 2019 18:06
To: Liu, Yongxin
Cc: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

On Tue, Jan 8, 2019 at 10:20 PM Yongxin Liu

<[email protected]>

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

meta-

Quoted 9 lines · wrote:

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
  meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0

oe/recipes-extended/pmdk/pmdk_1.4.2.bb

Quoted 6 lines

index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0
@@ -43,10 +43,10 @@ do_install() {
         mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 4 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
         install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Since ${base_libdir} is "/lib64", should we use

"/usr/local${base_libdir}" ?

Quoted 3 lines
Quoted 1 line

Or it is fine to go with "/usr/local//lib64" after parsing?

using /usr/local${base_libdir} is fine

It's a little odd that the default prefix is /usr/local rather than /usr . It would make sense to start with /usr/local in early development but the first commit to pmdk on github was in 2014...

Quoted 4 lines

If this is part of the system, use /usr, if it's a hack or an install owned by the local system admin, use /usr/local. As per, for example:

   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html

In configure file of pmdk, I find the following sentences.

if test "x$prefix" = "xNONE" ; then
prefix="/usr/local"
fi
if test "x$exec_prefix" = "xNONE" ; then
exec_prefix=$prefix
fi
PREFIX=$prefix

So in bb file, even ${prefix} is /usr, "oe_runmake PREFIX=${prefix} DESTDIR=${D} install" doesn't set PREFIX to /usr for pmdk installation.

"oe_runmake prefix=/usr DESTDIR=${D} install" works.

If you are OK with this change, I will send patch V2.

Thanks,
Yongxin

Quoted 30 lines

../Randy

Quoted 8 lines
Quoted 8 lines

Thanks,
Yongxin

Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -1
         install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc

${D}${libdir}/pkgconfig/

Quoted 1 line
Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 49

Quoted 1 line
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -0
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc

${D}${libdir}/pkgconfig/

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -1
         install -d ${D}${includedir}
         mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
# Randy MacLeod
# Wind River Linux

#6 lore raw
Quoted 71 lines · Yongxin
Quoted 56 lines

-----Original Message-----
From: MacLeod, Randy
Sent: Thursday, January 10, 2019 05:36
To: Liu, Yongxin
Cc: Khem Raj; openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

Quoted 1 line · Khem Raj

On Wed, Jan 9, 2019 at 2:17 AM Liu, Yongxin <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, January 9, 2019 18:06
To: Liu, Yongxin
Cc: openembeded-devel
Subject: Re: [oe] [meta-oe][PATCH] pmdk: fix install error

On Tue, Jan 8, 2019 at 10:20 PM Yongxin Liu

<[email protected]>

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

meta-

Quoted 9 lines · wrote:

.so files are not generated in usr/local/lib/ but in usr/local/lib64.

---
   meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb | 4 ++--
   1 file changed, 2 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0

oe/recipes-extended/pmdk/pmdk_1.4.2.bb

Quoted 6 lines

index 3da22a970..af2229f1c 100644

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -0
@@ -43,10 +43,10 @@ do_install() {
          mv ${D}/usr/local/bin/daxio ${D}${bindir}/
 
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 47

Quoted 4 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -1
          install -d ${D}${libdir}
-       mv ${D}/usr/local/lib/*so* ${D}${libdir}/
+       mv ${D}/usr/local/lib64/*so* ${D}${libdir}/
 

I wonder if this should be using /usr/local/${base_libdir} here

Since ${base_libdir} is "/lib64", should we use

"/usr/local${base_libdir}" ?

Quoted 3 lines
Quoted 1 line

Or it is fine to go with "/usr/local//lib64" after parsing?

using /usr/local${base_libdir} is fine

It's a little odd that the default prefix is /usr/local rather than /usr . It would make sense to start with /usr/local in early development but the first commit to pmdk on github was in 2014...

Quoted 4 lines

If this is part of the system, use /usr, if it's a hack or an install owned by the local system admin, use /usr/local. As per, for example:

    https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html

In configure file of pmdk, I find the following sentences.

if test "x$prefix" = "xNONE" ; then
prefix="/usr/local"
fi
if test "x$exec_prefix" = "xNONE" ; then
exec_prefix=$prefix
fi
PREFIX=$prefix

Quoted 6 lines

So in bb file, even ${prefix} is /usr, "oe_runmake PREFIX=${prefix} DESTDIR=${D} install" doesn't set PREFIX to /usr for pmdk installation.

"oe_runmake prefix=/usr DESTDIR=${D} install" works.

If you are OK with this change, I will send patch V2.

Fine with me. Other recipes do similar things:

$ cd .../oe-core.git
$ rg e_runmake |grep prefix | tail -3
meta/recipes-devtools/opkg-utils/opkg-utils_0.4.0.bb:	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
meta/recipes-kernel/blktrace/blktrace_git.bb:	oe_runmake ARCH="${ARCH}" prefix=${prefix} \
meta/recipes-devtools/unifdef/unifdef_2.11.bb:	oe_runmake install DESTDIR=${D} prefix=${prefix}

../Randy

Quoted 36 lines

Thanks,
Yongxin

Quoted 30 lines

../Randy

Quoted 8 lines
Quoted 8 lines

Thanks,
Yongxin

Quoted 2 lines
Quoted 2 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -1
          install -d ${D}${libdir}/pkgconfig
-       mv ${D}/usr/local/lib/pkgconfig/*.pc

${D}${libdir}/pkgconfig/

Quoted 1 line
Quoted 1 line
Quoted 1 line

meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb do_install() { · line 49

Quoted 1 line
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +1 -0
+       mv ${D}/usr/local/lib64/pkgconfig/*.pc

${D}${libdir}/pkgconfig/

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-extended/pmdk/pmdk_1.4.2.bb +0 -1
          install -d ${D}${includedir}
          mv ${D}/usr/local/include/* ${D}${includedir}/
--

2.14.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
# Randy MacLeod
# Wind River Linux

Signature · 2 lines
# Randy MacLeod
# Wind River Linux