All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf
       [not found] <E1OhMNp-0001vS-Ot@melo.openembedded.org>
@ 2010-08-09 21:54 ` Andrea Adami
  2010-08-09 23:33   ` Graham Gower
  0 siblings, 1 reply; 5+ messages in thread
From: Andrea Adami @ 2010-08-09 21:54 UTC (permalink / raw)
  To: openembedded-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf
  2010-08-09 21:54 ` [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf Andrea Adami
@ 2010-08-09 23:33   ` Graham Gower
  2010-08-16 22:17     ` Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Graham Gower @ 2010-08-09 23:33 UTC (permalink / raw)
  To: openembedded-devel

On 08/10/2010 07:24 AM, Andrea Adami wrote:
> 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
> 

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

Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index db04fb6..b0baab0 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -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}
 }





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf
  2010-08-09 23:33   ` Graham Gower
@ 2010-08-16 22:17     ` Martin Jansa
  2010-08-17  0:17       ` [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/* Graham Gower
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2010-08-16 22:17 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Aug 10, 2010 at 1:33 AM, Graham Gower <graham.gower@gmail.com> wrote:
> On 08/10/2010 07:24 AM, Andrea Adami wrote:
>> 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
>>
>
> /var/lib/opkg shouldn't be populated regardless of the value of ONLINE_PACKAGE_MANAGEMENT.
>
> Signed-off-by: Graham Gower <graham.gower@gmail.com>
> ---
> diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
> index db04fb6..b0baab0 100644
> --- a/classes/rootfs_ipk.bbclass
> +++ b/classes/rootfs_ipk.bbclass
> @@ -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}
>  }

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,
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*
  2010-08-16 22:17     ` Martin Jansa
@ 2010-08-17  0:17       ` Graham Gower
  2010-08-17  6:14         ` Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Graham Gower @ 2010-08-17  0:17 UTC (permalink / raw)
  To: openembedded-devel


Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
 classes/rootfs_ipk.bbclass |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index db04fb6..915e3d7 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -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}
 }
-- 
1.7.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*
  2010-08-17  0:17       ` [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/* Graham Gower
@ 2010-08-17  6:14         ` Martin Jansa
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2010-08-17  6:14 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Aug 17, 2010 at 09:47:55AM +0930, Graham Gower wrote:
> 
> Signed-off-by: Graham Gower <graham.gower@gmail.com>

Acked-by: Martin Jansa <Martin.Jansa@gmail.com>

> ---
>  classes/rootfs_ipk.bbclass |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
> index db04fb6..915e3d7 100644
> --- a/classes/rootfs_ipk.bbclass
> +++ b/classes/rootfs_ipk.bbclass
> @@ -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}
>  }
> -- 
> 1.7.1
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-17  6:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1OhMNp-0001vS-Ot@melo.openembedded.org>
2010-08-09 21:54 ` [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf Andrea Adami
2010-08-09 23:33   ` Graham Gower
2010-08-16 22:17     ` Martin Jansa
2010-08-17  0:17       ` [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/* Graham Gower
2010-08-17  6:14         ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.