Skip to contentSkip to conversation

e2fsprogs: fix packaging error for libext2fs

PATCH Applied Andreas Oberritter 5 participants 9 messages May 10, 2012 – May 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e2fsprogs: fix packaging error for libext2fs

* libext2fs is located in base_libdir, not libdir

---
 .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +2 -2
index 6df7cea..8d4443b 100644
@@ -1,6 +1,6 @@
 require e2fsprogs.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI += "file://fallocate.patch \
             file://acinclude.m4 \
@@ -58,7 +58,7 @@ FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks"
 FILES_libcomerr = "${base_libdir}/libcom_err.so.*"
 FILES_libss = "${base_libdir}/libss.so.*"
 FILES_libe2p = "${base_libdir}/libe2p.so.*"
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"
 FILES_${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
1.7.9.5
#1 lore raw

meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" · line 61

Quoted 3 lines · Andreas Oberritter
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +1 -1
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"

its probably not a good idea to mix files from libdir and base_libdir in a single
package. Since lately we have been accommodating /usr to be mounted independently.

#2 lore raw
Quoted 10 lines · Khem Raj

meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" · line 61

Quoted 3 lines · Andreas Oberritter
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +1 -1
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"

its probably not a good idea to mix files from libdir and base_libdir in a single
package. Since lately we have been accommodating /usr to be mounted independently.

I am assuming the e2initrd_helper is an libexec component... Will libext2fs.so.* still work (during initial boot) w/o the libexec component? (I am assuming it will...)

So this looks correct to me. The split packages can have mixed base and prefixed components... it's the filesystem that we hope will work without the /usr being mounted. But if the library requires an item in /usr, then we may have to move that item to /lib as well....

--Mark

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 17 lines · Mark Hatle
Quoted 5 lines · Khem Raj
Quoted 2 lines · Andreas Oberritter
Quoted 9 lines
Quoted 3 lines
(quoted diff) +1 -1
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper

${base_libdir}/libext2fs.so.*"

its probably not a good idea to mix files from libdir and base_libdir in a single
package. Since lately we have been accommodating /usr to be mounted independently.

Quoted 1 line

I am assuming the e2initrd_helper is an libexec component...  Will

but its being installed into ${libdir}/e2initrd_helper I dont think libdir will exist initially.

Quoted 22 lines

libext2fs.so.* still work (during initial boot) w/o the libexec component? (I am assuming it will...)

So this looks correct to me.  The split packages can have mixed base and prefixed components... it's the filesystem that we hope will work without the /usr being mounted.  But if the library requires an item in /usr, then we may have to move that item to /lib as well....

--Mark

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 18 lines · Khem Raj
Quoted 17 lines · Mark Hatle
Quoted 14 lines · Khem Raj
Quoted 5 lines · Andreas Oberritter
(quoted diff) +1 -1
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper

${base_libdir}/libext2fs.so.*"

its probably not a good idea to mix files from libdir and base_libdir in a single
package. Since lately we have been accommodating /usr to be mounted independently.

Quoted 4 lines
Quoted 1 line

I am assuming the e2initrd_helper is an libexec component... Will

but its being installed into ${libdir}/e2initrd_helper I dont think libdir will exist initially.

package install/image creation expects the full filesystem to be mounted. It's only during boot that partial mounts may exist.

I don't know what the e2initrd_helper does.. if it's required for booting, then it's needed in /... (or if libext2fs can't run w/o it.)

--Mark

Quoted 27 lines
Quoted 18 lines

libext2fs.so.* still work (during initial boot) w/o the libexec component?
(I am assuming it will...)

So this looks correct to me. The split packages can have mixed base and prefixed components... it's the filesystem that we hope will work without the /usr being mounted. But if the library requires an item in /usr, then we may have to move that item to /lib as well....

--Mark

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#5 lore raw
Quoted 6 lines · Mark Hatle

package install/image creation expects the full filesystem to be mounted. It's only during boot that partial mounts may exist.

I don't know what the e2initrd_helper does.. if it's required for booting, then it's needed in /... (or if libext2fs can't run w/o it.)

yes I was meaning the runtime here not image creation time.

#6 lore raw
In reply to Khem Raj
Quoted 10 lines · Khem Raj

meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" · line 61

Quoted 3 lines · Andreas Oberritter
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +1 -1
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"

its probably not a good idea to mix files from libdir and base_libdir in a single
package. Since lately we have been accommodating /usr to be mounted independently.

I have no idea what e2initrd_helper does, but this can still be addressed in a later patch.

Currently, libext2fs.so.* gets packaged into the "e2fsprogs" package, which is worse than your concerns, because it drags many unneeded dependencies into the image.

FWIW, e2initrd_helper doesn't seem to be required during a usual boot process, as nobody seems to have missed it. At least no automatic dependencies on the libext2fs package were generated before this patch.

Regards,
Andreas

#7 lore raw
Quoted 3 lines · Andreas Oberritter

I have no idea what e2initrd_helper does, but this can still be addressed in a later patch.

AFAIK it's needed in initrd images only, before even rootfs has been
mounted (it's used to query some information from not-yet-mounted rootfs)

- ML

Applied
#8 lore raw
In reply to Andreas Oberritter
Quoted 20 lines · Andreas Oberritter

* libext2fs is located in base_libdir, not libdir

---
  .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +1 -1
index 6df7cea..8d4443b 100644
@@ -1,6 +1,6 @@
  require e2fsprogs.inc
 
-PR = "r0"
+PR = "r1"
 
  SRC_URI += "file://fallocate.patch \
              file://acinclude.m4 \

meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" · line 64

Quoted 8 lines
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.1.bb +1 -1
@@ -58,7 +58,7 @@ FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks"
  FILES_libcomerr = "${base_libdir}/libcom_err.so.*"
  FILES_libss = "${base_libdir}/libss.so.*"
  FILES_libe2p = "${base_libdir}/libe2p.so.*"
-FILES_libext2fs = "${libdir}/e2initrd_helper ${libdir}/libext2fs.so.*"
+FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"
  FILES_${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so"
 
  BBCLASSEXTEND = "native"

Merged into OE-Core

Thanks
Sau!