quilt: disable packaged staging on native builds
PATCH 1/1 quilt: disable packaged staging on native builds
--- recipes/quilt/quilt-native.inc | 3 +++ recipes/quilt/quilt_0.48.bb | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-)
recipes/quilt/quilt-native.inc +3 -0
@@ -6,6 +6,9 @@ RDEPENDS_${PN} = "diffstat-native patch-native bzip2-native util-linux-native" FILESPATHPKG =. quilt-${PV} INHIBIT_AUTOTOOLS_DEPS = "1" +# Several packages fail to patch when using quilt from packaged staging +PSTAGING_DISABLED_virtclass-native = "1" + inherit autotools native PATCHTOOL = "patch"
recipes/quilt/quilt_0.48.bb +1 -1
@@ -1,6 +1,6 @@ require quilt-package.inc -PR="r1" +PR="r2" SRC_URI[md5sum] = "f77adda60039ffa753f3c584a286f12b" SRC_URI[sha256sum] = "73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"
Signature · 1 line
1.5.6.4
2010/8/17 Jason Kridner <[email protected]>:
Quoted 31 lines
Signed-off-by Jason Kridner <[email protected]>---
recipes/quilt/quilt-native.inc | 3 +++
recipes/quilt/quilt_0.48.bb | 2 +-2 files changed, 4 insertions(+), 1 deletions(-)recipes/quilt/quilt-native.inc +0
-0@@ -6,6 +6,9 @@ RDEPENDS_${PN} = "diffstat-native patch-native bzip2-native util-linux-native" FILESPATHPKG =. quilt-${PV}INHIBIT_AUTOTOOLS_DEPS = "1"
recipes/quilt/quilt-native.inc +3
-0+# Several packages fail to patch when using quilt from packaged staging +PSTAGING_DISABLED_virtclass-native = "1" +inherit autotools native
PATCHTOOL = "patch"
recipes/quilt/quilt_0.48.bb +0
-0@@ -1,6 +1,6 @@require quilt-package.inc
recipes/quilt/quilt_0.48.bb +1
-1-PR="r1" +PR="r2"
Quoted 4 lines
SRC_URI[md5sum] = "
f77adda60039ffa753f3c584a286f12b"
SRC_URI[sha256sum] = "73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc" --
1.5.6.4
I have some concerns with this patch.
I have a quilt native in my pstage dir from aug 7. (pstage is outside TMPDIR) Just did a bitbake beagleboard-demo-image after removing TMPDIR, with quilt-native and quite some other packages in my pstage dir.
I am at "Running task 7313 of 11636", lots of packages have been compiled and no patch has failed.
My proposal is to put this patch on hold until proven to be an issue by someone else.
Frans
Quoted 48 lines · Frans Meulenbroeks
2010/8/17 Jason Kridner <[email protected]>:
Review
Quoted 8 lines
Signed-off-by Jason Kridner <[email protected]>--- recipes/quilt/quilt-native.inc | 3 +++ recipes/quilt/quilt_0.48.bb | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-)(quoted diff) +0
-0b/recipes/quilt/quilt-native.inc
recipes/quilt/quilt-native.inc RDEPENDS_${PN} = "diffstat-native patch-native
Quoted 4 lines
index 10d8183..f422b63 100644
recipes/quilt/quilt-native.inc +0
-0@@ -6,6 +6,9 @@ RDEPENDS_${PN} = "diffstat-native patch-nativebzip2-native util-linux-native"
Quoted 14 lines
recipes/quilt/quilt-native.inc +3
-0FILESPATHPKG =. quilt-${PV} INHIBIT_AUTOTOOLS_DEPS = "1" +# Several packages fail to patch when using quilt from packaged staging +PSTAGING_DISABLED_virtclass-native = "1" + inherit autotools native PATCHTOOL = "patch"recipes/quilt/quilt_0.48.bb +0
-0recipes/quilt/quilt_0.48.bb line 6
Quoted 7 lines
recipes/quilt/quilt_0.48.bb +1
-1@@ -1,6 +1,6 @@ require quilt-package.inc -PR="r1" +PR="r2" SRC_URI[md5sum] = "f77adda60039ffa753f3c584a286f12b" SRC_URI[sha256sum] ="
73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"Quoted 2 lines
--
1.5.6.4I have some concerns with this patch.
I have a quilt native in my pstage dir from aug 7. (pstage is outside TMPDIR)
Just did a bitbake beagleboard-demo-image after removing TMPDIR, with quilt-native and quite some other packages in my pstage dir. I am at "Running task 7313 of 11636", lots of packages have been compiled and no patch has failed.
Quoted 2 lines
My proposal is to put this patch on hold until proven to be an issue by someone else.
Did you build with TMPDIR in a *different* location using prebuilts? If not you didn't prove anything at all about the relocatability of quilt. If a package isn't relocatable, it shouldn't be enabled for pstaging, as the package can't be used reliably.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
2010/8/17 Chris Larson <[email protected]>:
Quoted 51 lines
Quoted 48 lines · Frans Meulenbroeks
2010/8/17 Jason Kridner <[email protected]>:
Review
Quoted 8 lines
Signed-off-by Jason Kridner <[email protected]>---
recipes/quilt/quilt-native.inc | 3 +++
recipes/quilt/quilt_0.48.bb | 2 +-2 files changed, 4 insertions(+), 1 deletions(-)(quoted diff) +0
-0b/recipes/quilt/quilt-native.inc
recipes/quilt/quilt-native.inc RDEPENDS_${PN} = "diffstat-native patch-native
Quoted 4 lines
index 10d8183..f422b63 100644
recipes/quilt/quilt-native.inc +0
-0@@ -6,6 +6,9 @@ RDEPENDS_${PN} = "diffstat-native patch-nativebzip2-native util-linux-native"
Quoted 19 lines
recipes/quilt/quilt-native.inc +0
-0FILESPATHPKG =. quilt-${PV}INHIBIT_AUTOTOOLS_DEPS = "1"
recipes/quilt/quilt-native.inc +3
-0+# Several packages fail to patch when using quilt from packaged staging +PSTAGING_DISABLED_virtclass-native = "1" +inherit autotools native
PATCHTOOL = "patch"
recipes/quilt/quilt_0.48.bb +0
-0@@ -1,6 +1,6 @@require quilt-package.inc
recipes/quilt/quilt_0.48.bb +1
-1-PR="r1" +PR="r2"Quoted 2 lines
SRC_URI[md5sum] = "
f77adda60039ffa753f3c584a286f12b" SRC_URI[sha256sum] ="
73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"Quoted 2 lines
--
1.5.6.4I have some concerns with this patch.
I have a quilt native in my pstage dir from aug 7. (pstage is outside TMPDIR)
Just did a bitbake beagleboard-demo-image after removing TMPDIR, with quilt-native and quite some other packages in my pstage dir. I am at "Running task 7313 of 11636", lots of packages have been compiled and no patch has failed.
Quoted 8 lines
Quoted 2 lines
My proposal is to put this patch on hold until proven to be an issue by someone else.
Did you build with TMPDIR in a *different* location using prebuilts? If not you didn't prove anything at all about the relocatability of quilt. If a package isn't relocatable, it shouldn't be enabled for pstaging, as the package can't be used reliably.
No, this was with TMPDIR at the same place.
Outside of this (as I also read Tom's reply, so I know there is a fix, or at least in the works):
There are two reasons to use pstaging:
1: giving them to others so they can rebuild faster
2: keeping them for yourself so you can rm TMPDIR and rebuild faster. I belong to the second group (and I guess atm most of the pstage users). But for group 1 relocatability is indeed important.
I guess we should be able to find this (QA step?) by doing a grep in the package (or image dir) to see TMPDIR is in the executables (and maybe other files in the image).
One more thing:
If there is a reported failure of pstaging, I would suggest that the people reporting it would save the offending package so it can be analysed and compared with the proper package.
Frans.
Quoted 25 lines · Jason Kridner
Signed-off-by Jason Kridner <[email protected]>--- recipes/quilt/quilt-native.inc | 3 +++ recipes/quilt/quilt_0.48.bb | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-)recipes/quilt/quilt-native.inc +3
-0@@ -6,6 +6,9 @@ RDEPENDS_${PN} = "diffstat-native patch-native bzip2-native util-linux-native" FILESPATHPKG =. quilt-${PV} INHIBIT_AUTOTOOLS_DEPS = "1" +# Several packages fail to patch when using quilt from packaged staging +PSTAGING_DISABLED_virtclass-native = "1" + inherit autotools native PATCHTOOL = "patch"recipes/quilt/quilt_0.48.bb +0
-0
recipes/quilt/quilt_0.48.bb line 6
Quoted 7 lines
recipes/quilt/quilt_0.48.bb +1
-1@@ -1,6 +1,6 @@ require quilt-package.inc -PR="r1" +PR="r2" SRC_URI[md5sum] = "f77adda60039ffa753f3c584a286f12b" SRC_URI[sha256sum] = "73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"
After some poking, testing and what I pushed recently, NAK. What's going on here is that we didn't have a real non-legacy staging. As seen in quilt-package.inc, the normal autotools install rules don't move the install around for us, so we ended up with, in some cases (No, I can't explain why off the top of my head, but yes, I've seen both what Jason saw and what Frans saw in the past) empty pstaging packages, which means no quilt, and a certain failure to apply patches. To Chris' concern, I've gotten past the point of a patch being applied with quilt-native from pstaging from a TMPDIR named differently than what I extracted pstaging into.
Signature · 2 lines
Tom Rini Mentor Graphics Corporation