Skip to contentSkip to conversation

Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf

oe-commits In review Andrea Adami 3 participants 5 messages Aug 9, 2010 – Aug 17, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"

I see a spurious /var/lib/opkg in the cpio of initramfs-kexecboot-image.

oe              │      0│Aug  9 23:32│
oe-all          │  64030│Aug  9 23:32
oe-armv5te      │3637007│Aug  9 23:32
oe-tosa         │ 463708│Aug  9 23:3

We don't need any extra cruft there ;)

Regards

Andrea

#2 lore raw
Quoted 10 lines · Andrea Adami

It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"

I see a spurious /var/lib/opkg in the cpio of initramfs-kexecboot-image.

oe              │      0│Aug  9 23:32│
oe-all          │  64030│Aug  9 23:32
oe-armv5te      │3637007│Aug  9 23:32
oe-tosa         │ 463708│Aug  9 23:3
Quoted 6 lines

We don't need any extra cruft there ;)

Regards

Andrea

/var/lib/opkg shouldn't be populated regardless of the value of ONLINE_PACKAGE_MANAGEMENT.

---

classes/rootfs_ipk.bbclass +5 -2
index db04fb6..b0baab0 100644
@@ -98,15 +98,18 @@ fakeroot rootfs_ipk_do_rootfs () {
 		else
 			rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/*
 		fi
-	
+
+		rm -rf ${IMAGE_ROOTFS}/var/lib/opkg/*
+
 		# Keep these lines until package manager selection is implemented
 		ln -s opkg ${IMAGE_ROOTFS}${sysconfdir}/ipkg
 		ln -s opkg ${IMAGE_ROOTFS}${libdir}/ipkg
 	else
 		rm -rf ${IMAGE_ROOTFS}${libdir}/opkg
 		rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
+		rm -rf ${IMAGE_ROOTFS}/var/lib/opkg
 	fi
-	
+
 	log_check rootfs 	
 	rm -rf ${IPKG_TMP_DIR}
 }
#3 lore raw
Quoted 44 lines · Graham Gower
Quoted 10 lines · Andrea Adami

It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"

I see a spurious /var/lib/opkg in the cpio of initramfs-kexecboot-image.

oe              │      0│Aug  9 23:32│
oe-all          │  64030│Aug  9 23:32
oe-armv5te      │3637007│Aug  9 23:32
oe-tosa         │ 463708│Aug  9 23:3
Quoted 6 lines

We don't need any extra cruft there ;)

Regards

Andrea

/var/lib/opkg shouldn't be populated regardless of the value of ONLINE_PACKAGE_MANAGEMENT.

---

classes/rootfs_ipk.bbclass +0 -0
index db04fb6..b0baab0 100644
@@ -98,15 +98,18 @@ fakeroot rootfs_ipk_do_rootfs () {

               else
                       rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/* fi

classes/rootfs_ipk.bbclass +3 -1
-
+
+               rm -rf ${IMAGE_ROOTFS}/var/lib/opkg/*
+

               # Keep these lines until package manager selection is implemented ln -s opkg ${IMAGE_ROOTFS}${sysconfdir}/ipkg
               ln -s opkg ${IMAGE_ROOTFS}${libdir}/ipkg
       else
               rm -rf ${IMAGE_ROOTFS}${libdir}/opkg
               rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
+               rm -rf ${IMAGE_ROOTFS}/var/lib/opkg
       fi

classes/rootfs_ipk.bbclass +1 -1
-
+
Quoted 3 lines

       log_check rootfs
       rm -rf ${IPKG_TMP_DIR}
 }

We (SHR) are using tmp_dir pointing to /var/lib/opkg/tmp (because /tmp is size-limited tmpfs)

in opkg-collateral.bb:

do_install_append_shr () {
        install -d ${D}/var/lib/opkg/tmp
}

This change removes /var/lib/opkg/tmp from prepared image (and opkg calls then fail on target).

Do you propose different tmp dir or can you update the logic somehow?

Thanks,

Quoted 8 lines

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

#4 lore raw

PATCH 1/1 rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*

---
 classes/rootfs_ipk.bbclass |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
classes/rootfs_ipk.bbclass +6 -2
index db04fb6..915e3d7 100644
@@ -98,15 +98,19 @@ fakeroot rootfs_ipk_do_rootfs () {
 		else
 			rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/*
 		fi
-	
+
+		# Remove lists, but leave SHR's tmp dir if it exists.
+		rm -f ${IMAGE_ROOTFS}/var/lib/opkg/* || true
+
 		# Keep these lines until package manager selection is implemented
 		ln -s opkg ${IMAGE_ROOTFS}${sysconfdir}/ipkg
 		ln -s opkg ${IMAGE_ROOTFS}${libdir}/ipkg
 	else
 		rm -rf ${IMAGE_ROOTFS}${libdir}/opkg
 		rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
+		rm -rf ${IMAGE_ROOTFS}/var/lib/opkg
 	fi
-	
+
 	log_check rootfs 	
 	rm -rf ${IPKG_TMP_DIR}
 }
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#5 lore raw

Re: [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*

Quoted 2 lines · Graham Gower
Quoted 39 lines
---
 classes/rootfs_ipk.bbclass |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
classes/rootfs_ipk.bbclass +6 -2
index db04fb6..915e3d7 100644
@@ -98,15 +98,19 @@ fakeroot rootfs_ipk_do_rootfs () {
 		else
 			rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/*
 		fi
-	
+
+		# Remove lists, but leave SHR's tmp dir if it exists.
+		rm -f ${IMAGE_ROOTFS}/var/lib/opkg/* || true
+
 		# Keep these lines until package manager selection is implemented
 		ln -s opkg ${IMAGE_ROOTFS}${sysconfdir}/ipkg
 		ln -s opkg ${IMAGE_ROOTFS}${libdir}/ipkg
 	else
 		rm -rf ${IMAGE_ROOTFS}${libdir}/opkg
 		rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
+		rm -rf ${IMAGE_ROOTFS}/var/lib/opkg
 	fi
-	
+
 	log_check rootfs 	
 	rm -rf ${IPKG_TMP_DIR}
 }
Signature · 8 lines
1.7.1



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]