* [PATCH] Dpkg: Fix broken patch
@ 2015-04-18 3:06 Saul Wold
2015-04-18 3:06 ` [PATCH] dpkg: Fix patch to adjust for older code Saul Wold
2015-04-18 7:58 ` [PATCH] Dpkg: Fix broken patch Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Saul Wold @ 2015-04-18 3:06 UTC (permalink / raw)
To: openembedded-core, richard.purdie
Richard,
Major mia culpa!
I tested sgw/dizzy and then manged to push another patch from a different branch, I had this
patch queued up and it ran on the AB before I pushed the wrong branch.
Please pull this patch (it's the correct one), and reset the Build Appliance SRCREV, I
will try to start an RC2 build this weekend.
Sau!
Saul Wold (1):
dpkg: Fix patch to adjust for older code
.../dpkg/dpkg/tar-error-code.patch | 27 +++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] dpkg: Fix patch to adjust for older code
2015-04-18 3:06 [PATCH] Dpkg: Fix broken patch Saul Wold
@ 2015-04-18 3:06 ` Saul Wold
2015-04-18 7:58 ` [PATCH] Dpkg: Fix broken patch Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2015-04-18 3:06 UTC (permalink / raw)
To: openembedded-core, richard.purdie
The older version of dpkg uses subproc_wait_check() instead of the newer subproc_reap()
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
.../dpkg/dpkg/tar-error-code.patch | 27 +++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/meta/recipes-devtools/dpkg/dpkg/tar-error-code.patch b/meta/recipes-devtools/dpkg/dpkg/tar-error-code.patch
index 7be2090..235f878 100644
--- a/meta/recipes-devtools/dpkg/dpkg/tar-error-code.patch
+++ b/meta/recipes-devtools/dpkg/dpkg/tar-error-code.patch
@@ -16,11 +16,13 @@ place to avoid that kind of issue).
Upsteam-Status: Inappropriate
RP 2015/3/27
-Index: dpkg-1.17.21/dpkg-deb/build.c
+Signed-off-by: Saul Wold <sgw@linux.intel.com>
+
+Index: dpkg-1.17.4/dpkg-deb/build.c
===================================================================
---- dpkg-1.17.21.orig/dpkg-deb/build.c
-+++ dpkg-1.17.21/dpkg-deb/build.c
-@@ -398,7 +398,7 @@ do_build(const char *const *argv)
+--- dpkg-1.17.4.orig/dpkg-deb/build.c
++++ dpkg-1.17.4/dpkg-deb/build.c
+@@ -443,7 +443,7 @@ do_build(const char *const *argv)
bool subdir;
char *tfbuf;
int arfd;
@@ -29,26 +31,25 @@ Index: dpkg-1.17.21/dpkg-deb/build.c
pid_t c1, c2;
/* Decode our arguments. */
-@@ -493,7 +493,9 @@ do_build(const char *const *argv)
+@@ -536,7 +536,9 @@ do_build(const char *const *argv)
}
close(p1[0]);
- subproc_reap(c2, "gzip -9c", 0);
-- subproc_reap(c1, "tar -cf", 0);
-+ rc = subproc_reap(c1, "tar -cf", SUBPROC_RETERROR);
+ subproc_wait_check(c2, "gzip -9c", 0);
+- subproc_wait_check(c1, "tar -cf", 0);
++ rc = subproc_wait_check(c1, "tar -cf", PROCNOERR);
+ if (rc && rc != 1)
+ ohshite(_("subprocess %s returned error exit status %d"), "tar -cf", rc);
if (lseek(gzfd, 0, SEEK_SET))
ohshite(_("failed to rewind temporary file (%s)"), _("control member"));
-@@ -581,7 +583,10 @@ do_build(const char *const *argv)
+@@ -619,7 +621,9 @@ do_build(const char *const *argv)
/* All done, clean up wait for tar and gzip to finish their job. */
close(p1[1]);
- subproc_reap(c2, _("<compress> from tar -cf"), 0);
-- subproc_reap(c1, "tar -cf", 0);
-+ rc = subproc_reap(c1, "tar -cf", SUBPROC_RETERROR);
+ subproc_wait_check(c2, _("<compress> from tar -cf"), 0);
+- subproc_wait_check(c1, "tar -cf", 0);
++ rc = subproc_wait_check(c1, "tar -cf", PROCNOERR);
+ if (rc && rc != 1)
+ ohshite(_("subprocess %s returned error exit status %d"), "tar -cf", rc);
-+
/* Okay, we have data.tar as well now, add it to the ar wrapper. */
if (deb_format.major == 2) {
char datamember[16 + 1];
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Dpkg: Fix broken patch
2015-04-18 3:06 [PATCH] Dpkg: Fix broken patch Saul Wold
2015-04-18 3:06 ` [PATCH] dpkg: Fix patch to adjust for older code Saul Wold
@ 2015-04-18 7:58 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2015-04-18 7:58 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Fri, 2015-04-17 at 20:06 -0700, Saul Wold wrote:
> Richard,
>
> Major mia culpa!
>
> I tested sgw/dizzy and then manged to push another patch from a different branch, I had this
> patch queued up and it ran on the AB before I pushed the wrong branch.
>
> Please pull this patch (it's the correct one), and reset the Build Appliance SRCREV, I
> will try to start an RC2 build this weekend.
Ok, merged. Fired a master-next in the meantime.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-18 7:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-18 3:06 [PATCH] Dpkg: Fix broken patch Saul Wold
2015-04-18 3:06 ` [PATCH] dpkg: Fix patch to adjust for older code Saul Wold
2015-04-18 7:58 ` [PATCH] Dpkg: Fix broken patch Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox