Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Armin Kuster" <akuster808@gmail.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
	openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>,
	Andrej Valek <andrej.valek@siemens.com>,
	Peter Marko <peter.marko@siemens.com>
Subject: Re: [OE-core] [PATCH 04/14] busybox: update 1.34.1 -> 1.35.0
Date: Mon, 10 Jan 2022 07:10:17 -0800	[thread overview]
Message-ID: <4af1bc8b-38a6-f081-5eec-2d5887dbc638@gmail.com> (raw)
In-Reply-To: <16C8F145D420B770.27414@lists.openembedded.org>

Ignore my comment.  too early

-armin

On 1/10/22 7:09 AM, Armin Kuster via lists.openembedded.org wrote:
>
> On 1/9/22 2:27 PM, Alexander Kanavin wrote:
>> Drop upstreamed patch.
>>
>> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
>> ---
>>  .../0001-mktemp-add-tmpdir-option.patch       | 81 -------------------
>>  .../busybox/busybox/fail_on_no_media.patch    | 28 ++++---
>>  .../{busybox_1.34.1.bb => busybox_1.35.0.bb}  |  3 +-
>>  3 files changed, 19 insertions(+), 93 deletions(-)
>>  delete mode 100644 meta/recipes-core/busybox/busybox/0001-mktemp-add-tmpdir-option.patch
>>  rename meta/recipes-core/busybox/{busybox_1.34.1.bb => busybox_1.35.0.bb} (93%)
>>
>> diff --git a/meta/recipes-core/busybox/busybox/0001-mktemp-add-tmpdir-option.patch b/meta/recipes-core/busybox/busybox/0001-mktemp-add-tmpdir-option.patch
>> deleted file mode 100644
>> index 4a1960dff2..0000000000
>> --- a/meta/recipes-core/busybox/busybox/0001-mktemp-add-tmpdir-option.patch
>> +++ /dev/null
>> @@ -1,81 +0,0 @@
>> -From ceb378209f953ea745ed93a8645567196380ce3c Mon Sep 17 00:00:00 2001
>> -From: Andrej Valek <andrej.valek@siemens.com>
>> -Date: Thu, 24 Jun 2021 19:13:22 +0200
>> -Subject: [PATCH] mktemp: add tmpdir option
>> -
>> -Make mktemp more compatible with coreutils.
>> -- add "--tmpdir" option
>> -- add long variants for "d,q,u" options
> Is adding new feature in the scope of Yocto/OE LTS?
>
> -armin
>> -
>> -Upstream-Status: Submitted [http://lists.busybox.net/pipermail/busybox/2021-June/088932.html]
>> -
>> -Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
>> -Signed-off-by: Peter Marko <peter.marko@siemens.com>
>> ----
>> - coreutils/mktemp.c | 26 ++++++++++++++++++--------
>> - 1 file changed, 18 insertions(+), 8 deletions(-)
>> -
>> -diff --git a/coreutils/mktemp.c b/coreutils/mktemp.c
>> -index 5393320a5..05c6d98c6 100644
>> ---- a/coreutils/mktemp.c
>> -+++ b/coreutils/mktemp.c
>> -@@ -39,16 +39,17 @@
>> - //kbuild:lib-$(CONFIG_MKTEMP) += mktemp.o
>> - 
>> - //usage:#define mktemp_trivial_usage
>> --//usage:       "[-dt] [-p DIR] [TEMPLATE]"
>> -+//usage:       "[-dt] [-p DIR, --tmpdir[=DIR]] [TEMPLATE]"
>> - //usage:#define mktemp_full_usage "\n\n"
>> - //usage:       "Create a temporary file with name based on TEMPLATE and print its name.\n"
>> - //usage:       "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n"
>> - //usage:       "Without TEMPLATE, -t tmp.XXXXXX is assumed.\n"
>> --//usage:     "\n	-d	Make directory, not file"
>> --//usage:     "\n	-q	Fail silently on errors"
>> --//usage:     "\n	-t	Prepend base directory name to TEMPLATE"
>> --//usage:     "\n	-p DIR	Use DIR as a base directory (implies -t)"
>> --//usage:     "\n	-u	Do not create anything; print a name"
>> -+//usage:     "\n	-d			Make directory, not file"
>> -+//usage:     "\n	-q			Fail silently on errors"
>> -+//usage:     "\n	-t			Prepend base directory name to TEMPLATE"
>> -+//usage:     "\n	-p DIR, --tmpdir[=DIR]	Use DIR as a base directory (implies -t)"
>> -+//usage:     "\n				For --tmpdir is a optional one."
>> -+//usage:     "\n	-u			Do not create anything; print a name"
>> - //usage:     "\n"
>> - //usage:     "\nBase directory is: -p DIR, else $TMPDIR, else /tmp"
>> - //usage:
>> -@@ -72,13 +73,22 @@ int mktemp_main(int argc UNUSED_PARAM, char **argv)
>> - 		OPT_t = 1 << 2,
>> - 		OPT_p = 1 << 3,
>> - 		OPT_u = 1 << 4,
>> -+		OPT_td = 1 << 5,
>> - 	};
>> - 
>> - 	path = getenv("TMPDIR");
>> - 	if (!path || path[0] == '\0')
>> - 		path = "/tmp";
>> - 
>> --	opts = getopt32(argv, "^" "dqtp:u" "\0" "?1"/*1 arg max*/, &path);
>> -+	opts = getopt32long(argv, "^"
>> -+	       "dqtp:u\0"
>> -+	       "?1" /* 1 arg max */,
>> -+	       "directory\0" No_argument       "d"
>> -+	       "quiet\0"     No_argument       "q"
>> -+	       "dry-run\0"   No_argument       "u"
>> -+	       "tmpdir\0"    Optional_argument "\xff"
>> -+	       , &path, &path
>> -+	);
>> - 
>> - 	chp = argv[optind];
>> - 	if (!chp) {
>> -@@ -95,7 +105,7 @@ int mktemp_main(int argc UNUSED_PARAM, char **argv)
>> - 		goto error;
>> - 	}
>> - #endif
>> --	if (opts & (OPT_t|OPT_p))
>> -+	if (opts & (OPT_t|OPT_p|OPT_td))
>> - 		chp = concat_path_file(path, chp);
>> - 
>> - 	if (opts & OPT_u) {
>> --- 
>> -2.11.0
>> -
>> diff --git a/meta/recipes-core/busybox/busybox/fail_on_no_media.patch b/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
>> index 820acc2684..38db52538e 100644
>> --- a/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
>> +++ b/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
>> @@ -1,3 +1,8 @@
>> +From a35e79002d36cca3c272ba5625aec86d6b7a38a8 Mon Sep 17 00:00:00 2001
>> +From: Saul Wold <sgw@linux.intel.com>
>> +Date: Tue, 9 Apr 2013 23:25:54 -0700
>> +Subject: [PATCH] busybox: fail on no media
>> +
>>  Upstream-Status: Denied
>>  [https://www.mail-archive.com/busybox@busybox.net/msg22354.html]
>>  
>> @@ -10,16 +15,18 @@ removed, but that would be harder to accomplish.
>>  
>>  Signed-off-by: Saul Wold <sgw@linux.intel.com>
>>  
>> +---
>> + util-linux/mount.c | 8 ++++++++
>> + 1 file changed, 8 insertions(+)
>>  
>> -Index: busybox-1.20.2/util-linux/mount.c
>> -===================================================================
>> ---- busybox-1.20.2.orig/util-linux/mount.c
>> -+++ busybox-1.20.2/util-linux/mount.c
>> -@@ -598,7 +598,13 @@ static int mount_it_now(struct mntent *m
>> - 				break;
>> +diff --git a/util-linux/mount.c b/util-linux/mount.c
>> +index 4e65b6b..9d7a566 100644
>> +--- a/util-linux/mount.c
>> ++++ b/util-linux/mount.c
>> +@@ -746,6 +746,14 @@ static int mount_it_now(struct mntent *mp, unsigned long vfsflags, char *filtero
>>   			errno = errno_save;
>>   		}
>> --
>> + 
>>  +		/*
>>  +		 * Break if there is no media, no point retrying for all
>>  +		 * fs types since there is no media available
>> @@ -27,6 +34,7 @@ Index: busybox-1.20.2/util-linux/mount.c
>>  +		if (rc == -1 && errno == ENOMEDIUM) {
>>  +			bb_perror_msg_and_die("mounting %s on %s failed", mp->mnt_fsname, mp->mnt_dir);
>>  +		}
>> - 		if (!rc || (vfsflags & MS_RDONLY) || (errno != EACCES && errno != EROFS))
>> - 			break;
>> - 		if (!(vfsflags & MS_SILENT))
>> ++
>> + 		// Should we retry read-only mount?
>> + 		if (vfsflags & MS_RDONLY)
>> + 			break;		// no, already was tried
>> diff --git a/meta/recipes-core/busybox/busybox_1.34.1.bb b/meta/recipes-core/busybox/busybox_1.35.0.bb
>> similarity index 93%
>> rename from meta/recipes-core/busybox/busybox_1.34.1.bb
>> rename to meta/recipes-core/busybox/busybox_1.35.0.bb
>> index 3651c06126..7ce1717046 100644
>> --- a/meta/recipes-core/busybox/busybox_1.34.1.bb
>> +++ b/meta/recipes-core/busybox/busybox_1.35.0.bb
>> @@ -46,8 +46,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
>>             file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch \
>>             file://0001-du-l-works-fix-to-use-145-instead-of-144.patch \
>>             file://0001-sysctl-ignore-EIO-of-stable_secret-below-proc-sys-ne.patch \
>> -           file://0001-mktemp-add-tmpdir-option.patch \
>>             "
>>  SRC_URI:append:libc-musl = " file://musl.cfg "
>>  
>> -SRC_URI[tarball.sha256sum] = "415fbd89e5344c96acf449d94a6f956dbed62e18e835fc83e064db33a34bd549"
>> +SRC_URI[tarball.sha256sum] = "faeeb244c35a348a334f4a59e44626ee870fb07b6884d68c10ae8bc19f83a694"
>>
>>
>>
>
> 
>


  parent reply	other threads:[~2022-01-10 15:10 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-09 22:27 [PATCH 01/14] python3: drop unneeded multiprocessing module patch Alexander Kanavin
2022-01-09 22:27 ` [PATCH 02/14] ruby: disable rdoc due to non-reproducibility Alexander Kanavin
2022-01-09 22:27 ` [PATCH 03/14] rust-llvm: apply the same reproducibility patch as for llvm proper Alexander Kanavin
2022-01-09 22:27 ` [PATCH 04/14] busybox: update 1.34.1 -> 1.35.0 Alexander Kanavin
2022-01-10 15:09   ` [OE-core] " akuster808
     [not found]   ` <16C8F145D420B770.27414@lists.openembedded.org>
2022-01-10 15:10     ` Armin Kuster [this message]
2022-01-09 22:27 ` [PATCH 05/14] systemd: update 249.7 -> 250.1 Alexander Kanavin
2022-01-09 22:27 ` [PATCH 06/14] python3-numpy: update 1.21.4 -> 1.22.0 Alexander Kanavin
2022-01-09 22:27 ` [PATCH 07/14] mdadm: update 4.1 -> 4.2 Alexander Kanavin
2022-01-09 22:27 ` [PATCH 08/14] librsvg: update 2.52.4 -> 2.52.5 Alexander Kanavin
2022-01-09 22:27 ` [PATCH 09/14] libportal: update 0.4 -> 0.5 Alexander Kanavin
2022-01-09 22:27 ` [PATCH 10/14] epiphany: make libportal optional, and move it to meta-oe Alexander Kanavin
2022-01-10 18:43   ` [OE-core] " Khem Raj
2022-01-10 18:49     ` Alexander Kanavin
2022-01-10 18:57       ` Khem Raj
2022-01-10 19:18         ` Alexander Kanavin
2022-01-10 20:54           ` Khem Raj
2022-01-11  7:49             ` Khem Raj
2022-01-11  8:48               ` Alexander Kanavin
2022-01-11 19:44                 ` Khem Raj
2022-01-09 22:27 ` [PATCH 11/14] qemuboot/runqemu: fully form the ip= kernel parameter Alexander Kanavin
2022-01-09 22:27 ` [PATCH 12/14] parselogs: add a couple systemd false positives Alexander Kanavin
2022-01-09 22:27 ` [PATCH 13/14] connman: do nothing in qemu, do not touch eth0 Alexander Kanavin
2022-01-11 10:54   ` [OE-core] " Richard Purdie
2022-01-11 11:02     ` Alexander Kanavin
2022-01-11 11:08       ` Richard Purdie
2022-01-11 11:10         ` Alexander Kanavin
2022-01-11 11:15           ` Richard Purdie
2022-01-09 22:27 ` [PATCH 14/14] systemd-boot: restore reproducibility Alexander Kanavin
2022-01-10 13:59 ` [OE-core] [PATCH 01/14] python3: drop unneeded multiprocessing module patch Richard Purdie
2022-01-10 14:21   ` Alexander Kanavin
2022-01-10 14:23     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4af1bc8b-38a6-f081-5eec-2d5887dbc638@gmail.com \
    --to=akuster808@gmail.com \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=andrej.valek@siemens.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=peter.marko@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox