* [PATCH 0/2] apt-native and rootfs_deb fixes
@ 2012-08-14 9:41 Robert Yang
2012-08-14 9:41 ` [PATCH 1/2] apt-native 0.7.14: remove an extra line from apt.conf Robert Yang
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robert Yang @ 2012-08-14 9:41 UTC (permalink / raw)
To: openembedded-core; +Cc: openembedded-core, Zhenfeng.Zhao
* Remove an extra line from apt.conf
* Fix the race issue and populate_sdk_deb
Test info:
$ bitbake core-image-sato meta-toolchain-sdk core-image-sato-sdk
The build is OK, it would fail by strange errors without these
2 patches.
// Robert
The following changes since commit d45bbc5c75a8f277fc1185a5f28847116eec376d:
createrepo: add wrapper script to fix paths (2012-08-13 20:10:34 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/deblock
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/deblock
Robert Yang (2):
apt-native 0.7.14: remove an extra line from apt.conf
rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB
meta/classes/populate_sdk_deb.bbclass | 3 ++-
meta/classes/rootfs_deb.bbclass | 2 +-
meta/recipes-devtools/apt/apt-native_0.7.14.bb | 2 +-
meta/recipes-devtools/apt/files/apt.conf | 1 -
4 files changed, 4 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] apt-native 0.7.14: remove an extra line from apt.conf
2012-08-14 9:41 [PATCH 0/2] apt-native and rootfs_deb fixes Robert Yang
@ 2012-08-14 9:41 ` Robert Yang
2012-08-14 9:41 ` [PATCH 2/2] rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB Robert Yang
2012-08-17 21:05 ` [PATCH 0/2] apt-native and rootfs_deb fixes Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2012-08-14 9:41 UTC (permalink / raw)
To: openembedded-core; +Cc: openembedded-core, Zhenfeng.Zhao
There is an additional "};" at the end of apt.conf, remove it.
[YOCTO #2495]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-devtools/apt/apt-native_0.7.14.bb | 2 +-
meta/recipes-devtools/apt/files/apt.conf | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/apt/apt-native_0.7.14.bb b/meta/recipes-devtools/apt/apt-native_0.7.14.bb
index 46f39f5..d4513ca 100644
--- a/meta/recipes-devtools/apt/apt-native_0.7.14.bb
+++ b/meta/recipes-devtools/apt/apt-native_0.7.14.bb
@@ -1,6 +1,6 @@
require apt-native.inc
-PR = "r10"
+PR = "r11"
SRC_URI += "file://nodoc.patch \
file://noconfigure.patch \
diff --git a/meta/recipes-devtools/apt/files/apt.conf b/meta/recipes-devtools/apt/files/apt.conf
index ab7a5db..5c20ea4 100644
--- a/meta/recipes-devtools/apt/files/apt.conf
+++ b/meta/recipes-devtools/apt/files/apt.conf
@@ -40,4 +40,3 @@ APT
};
DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-debsig"};
-};
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB
2012-08-14 9:41 [PATCH 0/2] apt-native and rootfs_deb fixes Robert Yang
2012-08-14 9:41 ` [PATCH 1/2] apt-native 0.7.14: remove an extra line from apt.conf Robert Yang
@ 2012-08-14 9:41 ` Robert Yang
2012-08-17 21:05 ` [PATCH 0/2] apt-native and rootfs_deb fixes Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2012-08-14 9:41 UTC (permalink / raw)
To: openembedded-core; +Cc: openembedded-core, Zhenfeng.Zhao
* There would be race issue if we put the lock to the WORKDIR, for
example:
bitbake core-image-sato core-image-sato-sdk
If the lock is in their own WORKDIR, the apt-rootfs.conf and
Packages.gz maybe be written by two tasks at the same time, which
would cause unexpected errors.
* Create ${target_rootfs}/etc since the "tar -C" needs it.
Note:
* The rpm has put the lock to DEPLOY_DIR_RPM
* The ipk doesn't need it since it has locks for each deploy directory
and put the opkg.conf in his own WORKDIR, which doesn't like deb put
the apt-rootfs.conf in ${STAGING_ETCDIR_NATIVE}/apt/.
[YOCTO #2495]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/populate_sdk_deb.bbclass | 3 ++-
meta/classes/rootfs_deb.bbclass | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/classes/populate_sdk_deb.bbclass b/meta/classes/populate_sdk_deb.bbclass
index 6f89dcf..f2d0621 100644
--- a/meta/classes/populate_sdk_deb.bbclass
+++ b/meta/classes/populate_sdk_deb.bbclass
@@ -6,12 +6,13 @@ DEB_SDK_ARCH = "${@[d.getVar('SDK_ARCH', True), "i386"]\
[d.getVar('SDK_ARCH', True) in \
["x86", "i486", "i586", "i686", "pentium"]]}"
-do_populate_sdk[lockfiles] += "${WORKDIR}/deb.lock"
+do_populate_sdk[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
populate_sdk_post_deb () {
local target_rootfs=$1
+ mkdir -p ${target_rootfs}/etc
tar -cf - -C ${STAGING_ETCDIR_NATIVE} -ps apt | tar -xf - -C ${target_rootfs}/etc
}
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 750a8ca..881fdbd 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -8,7 +8,7 @@ ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot"
do_rootfs[recrdeptask] += "do_package_write_deb"
-do_rootfs[lockfiles] += "${WORKDIR}/deb.lock"
+do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
DEB_POSTPROCESS_COMMANDS = ""
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] apt-native and rootfs_deb fixes
2012-08-14 9:41 [PATCH 0/2] apt-native and rootfs_deb fixes Robert Yang
2012-08-14 9:41 ` [PATCH 1/2] apt-native 0.7.14: remove an extra line from apt.conf Robert Yang
2012-08-14 9:41 ` [PATCH 2/2] rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB Robert Yang
@ 2012-08-17 21:05 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-08-17 21:05 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On 08/14/2012 02:41 AM, Robert Yang wrote:
> * Remove an extra line from apt.conf
> * Fix the race issue and populate_sdk_deb
>
> Test info:
> $ bitbake core-image-sato meta-toolchain-sdk core-image-sato-sdk
>
> The build is OK, it would fail by strange errors without these
> 2 patches.
>
> // Robert
>
> The following changes since commit d45bbc5c75a8f277fc1185a5f28847116eec376d:
>
> createrepo: add wrapper script to fix paths (2012-08-13 20:10:34 +0100)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib robert/deblock
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/deblock
>
> Robert Yang (2):
> apt-native 0.7.14: remove an extra line from apt.conf
> rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB
>
> meta/classes/populate_sdk_deb.bbclass | 3 ++-
> meta/classes/rootfs_deb.bbclass | 2 +-
> meta/recipes-devtools/apt/apt-native_0.7.14.bb | 2 +-
> meta/recipes-devtools/apt/files/apt.conf | 1 -
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
Merged into OE-Core
Thanks
Sau!
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-17 21:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 9:41 [PATCH 0/2] apt-native and rootfs_deb fixes Robert Yang
2012-08-14 9:41 ` [PATCH 1/2] apt-native 0.7.14: remove an extra line from apt.conf Robert Yang
2012-08-14 9:41 ` [PATCH 2/2] rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB Robert Yang
2012-08-17 21:05 ` [PATCH 0/2] apt-native and rootfs_deb fixes Saul Wold
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.