diff mbox

util-linux: upgrade to 2.30

Message ID 1497035621-66174-1-git-send-email-denis@denix.org
State Superseded
Headers show

Commit Message

Denys Dmytriyenko June 9, 2017, 7:13 p.m. UTC
From: Denys Dmytriyenko <denys@ti.com>


Drop uuid-test-error-api.patch as it's been fixed upstream differently:
https://github.com/karelzak/util-linux/commit/b770b487004778f4425639c7ed1bb6ca22d157bf

Signed-off-by: Denys Dmytriyenko <denys@ti.com>

---
 .../util-linux/uuid-test-error-api.patch           | 99 ----------------------
 .../{util-linux_2.29.2.bb => util-linux_2.30.bb}   |  7 +-
 2 files changed, 3 insertions(+), 103 deletions(-)
 delete mode 100644 meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch
 rename meta/recipes-core/util-linux/{util-linux_2.29.2.bb => util-linux_2.30.bb} (80%)

-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Denys Dmytriyenko June 12, 2017, 6:23 p.m. UTC | #1
Ping. Any comments, issues?


On Fri, Jun 09, 2017 at 03:13:41PM -0400, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@ti.com>

> 

> Drop uuid-test-error-api.patch as it's been fixed upstream differently:

> https://github.com/karelzak/util-linux/commit/b770b487004778f4425639c7ed1bb6ca22d157bf

> 

> Signed-off-by: Denys Dmytriyenko <denys@ti.com>

> ---

>  .../util-linux/uuid-test-error-api.patch           | 99 ----------------------

>  .../{util-linux_2.29.2.bb => util-linux_2.30.bb}   |  7 +-

>  2 files changed, 3 insertions(+), 103 deletions(-)

>  delete mode 100644 meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch

>  rename meta/recipes-core/util-linux/{util-linux_2.29.2.bb => util-linux_2.30.bb} (80%)

> 

> diff --git a/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch b/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch

> deleted file mode 100644

> index a6fde5d..0000000

> --- a/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch

> +++ /dev/null

> @@ -1,99 +0,0 @@

> -This patch adds error() API implementation for non-glibc system C libs

> -

> -Upstream-Status: Pending

> -Signed-off-by: Khem Raj <raj.khem@gmail.com>

> -

> ----

> - misc-utils/test_uuidd.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++-

> - 1 file changed, 61 insertions(+), 1 deletion(-)

> -

> -diff --git a/misc-utils/test_uuidd.c b/misc-utils/test_uuidd.c

> -index 36f3b3d..7d579ce 100644

> ---- a/misc-utils/test_uuidd.c

> -+++ b/misc-utils/test_uuidd.c

> -@@ -23,7 +23,6 @@

> -  *

> -  *	make uuidd uuidgen localstatedir=/var

> -  */

> --#include <error.h>

> - #include <pthread.h>

> - #include <stdio.h>

> - #include <stdlib.h>

> -@@ -38,6 +37,17 @@

> - #include "xalloc.h"

> - #include "strutils.h"

> - 

> -+#ifdef __GLIBC__

> -+#include <error.h>

> -+#else

> -+extern void (*error_print_progname)(void);

> -+extern unsigned int error_message_count;

> -+extern int error_one_per_line;

> -+

> -+void error(int, int, const char *, ...);

> -+void error_at_line(int, int, const char *, unsigned int, const char *, ...);

> -+#endif

> -+

> - #define LOG(level,args) if (loglev >= level) { fprintf args; }

> - 

> - size_t nprocesses = 4;

> -@@ -256,6 +266,56 @@ static void object_dump(size_t idx, object_t *obj)

> - 	fprintf(stderr, "}\n");

> - }

> - 

> -+#ifndef __GLIBC__

> -+extern char *__progname;

> -+

> -+void (*error_print_progname)(void) = 0;

> -+unsigned int error_message_count = 0;

> -+int error_one_per_line = 0;

> -+

> -+static void eprint(int status, int e, const char *file, unsigned int line, const char *fmt, va_list ap)

> -+{

> -+	if (file && error_one_per_line) {

> -+		static const char *oldfile;

> -+		static unsigned int oldline;

> -+		if (line == oldline && strcmp(file, oldfile) == 0)

> -+			return;

> -+		oldfile = file;

> -+		oldline = line;

> -+	}

> -+	if (error_print_progname)

> -+		error_print_progname();

> -+	else

> -+		fprintf(stderr, "%s: ", __progname);

> -+	if (file)

> -+		fprintf(stderr, "%s:%u: ", file, line);

> -+	vfprintf(stderr, fmt, ap);

> -+	if (e)

> -+		fprintf(stderr, ": %s", strerror(e));

> -+	putc('\n', stderr);

> -+	fflush(stderr);

> -+	error_message_count++;

> -+	if (status)

> -+		exit(status);

> -+}

> -+

> -+void error(int status, int e, const char *fmt, ...)

> -+{

> -+	va_list ap;

> -+	va_start(ap,fmt);

> -+	eprint(status, e, 0, 0, fmt, ap);

> -+	va_end(ap);

> -+}

> -+

> -+void error_at_line(int status, int e, const char *file, unsigned int line, const char *fmt, ...)

> -+{

> -+	va_list ap;

> -+	va_start(ap,fmt);

> -+	eprint(status, e, file, line, fmt, ap);

> -+	va_end(ap);

> -+}

> -+#endif /* __GLIBC__ */

> -+

> - int main(int argc, char *argv[])

> - {

> - 	size_t i, nfailed = 0, nignored = 0;

> --- 

> -2.8.3

> -

> diff --git a/meta/recipes-core/util-linux/util-linux_2.29.2.bb b/meta/recipes-core/util-linux/util-linux_2.30.bb

> similarity index 80%

> rename from meta/recipes-core/util-linux/util-linux_2.29.2.bb

> rename to meta/recipes-core/util-linux/util-linux_2.30.bb

> index 11303f8..6b309b5 100644

> --- a/meta/recipes-core/util-linux/util-linux_2.29.2.bb

> +++ b/meta/recipes-core/util-linux/util-linux_2.30.bb

> @@ -1,4 +1,4 @@

> -MAJOR_VERSION = "2.29"

> +MAJOR_VERSION = "2.30"

>  require util-linux.inc

>  

>  # To support older hosts, we need to patch and/or revert

> @@ -14,10 +14,9 @@ SRC_URI += "file://configure-sbindir.patch \

>              file://run-ptest \

>              file://display_testname_for_subtest.patch \

>              file://avoid_parallel_tests.patch \

> -            file://uuid-test-error-api.patch \

>  "

> -SRC_URI[md5sum] = "63c40c2068fcbb7e1d5c1d281115d973"

> -SRC_URI[sha256sum] = "accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3"

> +SRC_URI[md5sum] = "eaa3429150268027908a1b8ae6ee9a62"

> +SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d"

>  

>  CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms"

>  

> -- 

> 2.7.4

> 

> -- 

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Richard Purdie June 13, 2017, 1:04 p.m. UTC | #2
On Mon, 2017-06-12 at 14:23 -0400, Denys Dmytriyenko wrote:
> Ping. Any comments, issues?


https://autobuilder.yocto.io/builders/build-appliance/builds/306/steps/BuildImages_1/logs/stdio


ERROR: util-linux-2.30-r0 do_install_ptest_base: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825)
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_install_ptest_base
| cp: cannot stat '/home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/util-linux-2.30/tests/ts/tailf': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825)
NOTE: recipe util-linux-2.30-r0: task do_install_ptest_base: Failed

Cheers,

Richard
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Denys Dmytriyenko June 13, 2017, 4:52 p.m. UTC | #3
On Tue, Jun 13, 2017 at 02:04:02PM +0100, Richard Purdie wrote:
> On Mon, 2017-06-12 at 14:23 -0400, Denys Dmytriyenko wrote:

> > Ping. Any comments, issues?

> 

> https://autobuilder.yocto.io/builders/build-appliance/builds/306/steps/BuildImages_1/logs/stdio

> 

> 

> ERROR: util-linux-2.30-r0 do_install_ptest_base: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825)

> ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825

> Log data follows:

> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']

> | DEBUG: Executing shell function do_install_ptest_base

> | cp: cannot stat '/home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/util-linux-2.30/tests/ts/tailf': No such file or directory

> | WARNING: exit code 1 from a shell command.

> | ERROR: Function failed: do_install_ptest_base (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/build-appliance/build/build/tmp/work/core2-64-poky-linux/util-linux/2.30-r0/temp/log.do_install_ptest_base.48825)

> NOTE: recipe util-linux-2.30-r0: task do_install_ptest_base: Failed


Thanks. v2 sent.

-- 
Denys
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox

Patch

diff --git a/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch b/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch
deleted file mode 100644
index a6fde5d..0000000
--- a/meta/recipes-core/util-linux/util-linux/uuid-test-error-api.patch
+++ /dev/null
@@ -1,99 +0,0 @@ 
-This patch adds error() API implementation for non-glibc system C libs
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-
----
- misc-utils/test_uuidd.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++-
- 1 file changed, 61 insertions(+), 1 deletion(-)
-
-diff --git a/misc-utils/test_uuidd.c b/misc-utils/test_uuidd.c
-index 36f3b3d..7d579ce 100644
---- a/misc-utils/test_uuidd.c
-+++ b/misc-utils/test_uuidd.c
-@@ -23,7 +23,6 @@
-  *
-  *	make uuidd uuidgen localstatedir=/var
-  */
--#include <error.h>
- #include <pthread.h>
- #include <stdio.h>
- #include <stdlib.h>
-@@ -38,6 +37,17 @@
- #include "xalloc.h"
- #include "strutils.h"
- 
-+#ifdef __GLIBC__
-+#include <error.h>
-+#else
-+extern void (*error_print_progname)(void);
-+extern unsigned int error_message_count;
-+extern int error_one_per_line;
-+
-+void error(int, int, const char *, ...);
-+void error_at_line(int, int, const char *, unsigned int, const char *, ...);
-+#endif
-+
- #define LOG(level,args) if (loglev >= level) { fprintf args; }
- 
- size_t nprocesses = 4;
-@@ -256,6 +266,56 @@ static void object_dump(size_t idx, object_t *obj)
- 	fprintf(stderr, "}\n");
- }
- 
-+#ifndef __GLIBC__
-+extern char *__progname;
-+
-+void (*error_print_progname)(void) = 0;
-+unsigned int error_message_count = 0;
-+int error_one_per_line = 0;
-+
-+static void eprint(int status, int e, const char *file, unsigned int line, const char *fmt, va_list ap)
-+{
-+	if (file && error_one_per_line) {
-+		static const char *oldfile;
-+		static unsigned int oldline;
-+		if (line == oldline && strcmp(file, oldfile) == 0)
-+			return;
-+		oldfile = file;
-+		oldline = line;
-+	}
-+	if (error_print_progname)
-+		error_print_progname();
-+	else
-+		fprintf(stderr, "%s: ", __progname);
-+	if (file)
-+		fprintf(stderr, "%s:%u: ", file, line);
-+	vfprintf(stderr, fmt, ap);
-+	if (e)
-+		fprintf(stderr, ": %s", strerror(e));
-+	putc('\n', stderr);
-+	fflush(stderr);
-+	error_message_count++;
-+	if (status)
-+		exit(status);
-+}
-+
-+void error(int status, int e, const char *fmt, ...)
-+{
-+	va_list ap;
-+	va_start(ap,fmt);
-+	eprint(status, e, 0, 0, fmt, ap);
-+	va_end(ap);
-+}
-+
-+void error_at_line(int status, int e, const char *file, unsigned int line, const char *fmt, ...)
-+{
-+	va_list ap;
-+	va_start(ap,fmt);
-+	eprint(status, e, file, line, fmt, ap);
-+	va_end(ap);
-+}
-+#endif /* __GLIBC__ */
-+
- int main(int argc, char *argv[])
- {
- 	size_t i, nfailed = 0, nignored = 0;
--- 
-2.8.3
-
diff --git a/meta/recipes-core/util-linux/util-linux_2.29.2.bb b/meta/recipes-core/util-linux/util-linux_2.30.bb
similarity index 80%
rename from meta/recipes-core/util-linux/util-linux_2.29.2.bb
rename to meta/recipes-core/util-linux/util-linux_2.30.bb
index 11303f8..6b309b5 100644
--- a/meta/recipes-core/util-linux/util-linux_2.29.2.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.30.bb
@@ -1,4 +1,4 @@ 
-MAJOR_VERSION = "2.29"
+MAJOR_VERSION = "2.30"
 require util-linux.inc
 
 # To support older hosts, we need to patch and/or revert
@@ -14,10 +14,9 @@  SRC_URI += "file://configure-sbindir.patch \
             file://run-ptest \
             file://display_testname_for_subtest.patch \
             file://avoid_parallel_tests.patch \
-            file://uuid-test-error-api.patch \
 "
-SRC_URI[md5sum] = "63c40c2068fcbb7e1d5c1d281115d973"
-SRC_URI[sha256sum] = "accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3"
+SRC_URI[md5sum] = "eaa3429150268027908a1b8ae6ee9a62"
+SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d"
 
 CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms"