* [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3
@ 2018-09-22 14:06 Ferdinand van Aartsen
2018-09-22 16:42 ` Thomas Petazzoni
2018-09-23 15:07 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Ferdinand van Aartsen @ 2018-09-22 14:06 UTC (permalink / raw)
To: buildroot
Remove 0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
It caused a segfault which was fixed in this release.
Signed-off-by: Ferdinand van Aartsen <ferdinand@ombud.nl>
---
...ove-unnecessary-variable-in-xmalloc_.patch | 39 -------------------
package/busybox/busybox.hash | 4 +-
package/busybox/busybox.mk | 2 +-
3 files changed, 3 insertions(+), 42 deletions(-)
delete mode 100644 package/busybox/0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
diff --git a/package/busybox/0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch b/package/busybox/0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
deleted file mode 100644
index ba2d214c29..0000000000
--- a/package/busybox/0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 0d598ab9f03dbf320f7b81c05e4a94cb303dfbc7 Mon Sep 17 00:00:00 2001
-From: Denys Vlasenko <vda.linux@googlemail.com>
-Date: Sun, 2 Sep 2018 18:35:29 +0200
-Subject: [PATCH] Revert "libbb: remove unnecessary variable in xmalloc_fgets"
-
-The variable is in fact necessary.
-
- commit 2da9724b56169f00bd7fb6b9a11c9409a7620981
- Author: Quentin Rameau <quinq@fifth.space>
- Date: Sun Apr 1 17:05:35 2018 +0200
- libbb: remove unnecessary variable in xmalloc_fgets
-
-Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-[Thomas De Schampheleire: added to unbreak 'head -n -1',
-see http://lists.busybox.net/pipermail/busybox/2018-August/086617.html ]
-Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
-
----
- libbb/get_line_from_file.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
-index f3d6c6203..49ef093c2 100644
---- a/libbb/get_line_from_file.c
-+++ b/libbb/get_line_from_file.c
-@@ -47,7 +47,9 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
- /* Get line, including trailing \n if any */
- char* FAST_FUNC xmalloc_fgets(FILE *file)
- {
-- return bb_get_chunk_from_file(file, NULL);
-+ int i;
-+
-+ return bb_get_chunk_from_file(file, &i);
- }
- /* Get line. Remove trailing \n */
- char* FAST_FUNC xmalloc_fgetline(FILE *file)
---
-2.16.4
-
diff --git a/package/busybox/busybox.hash b/package/busybox/busybox.hash
index dc7c5613f8..b12bc21293 100644
--- a/package/busybox/busybox.hash
+++ b/package/busybox/busybox.hash
@@ -1,3 +1,3 @@
-# From https://busybox.net/downloads/busybox-1.29.2.tar.bz2.sha256
-sha256 67d2fa6e147a45875fe972de62d907ef866fe784c495c363bf34756c444a5d61 busybox-1.29.2.tar.bz2
+# From https://busybox.net/downloads/busybox-1.29.3.tar.bz2.sha256
+sha256 97648636e579462296478e0218e65e4bc1e9cd69089a3b1aeb810bff7621efb7 busybox-1.29.3.tar.bz2
sha256 bbfc9843646d483c334664f651c208b9839626891d8f17604db2146962f43548 LICENSE
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index ab0930a7fc..757086592f 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -4,7 +4,7 @@
#
################################################################################
-BUSYBOX_VERSION = 1.29.2
+BUSYBOX_VERSION = 1.29.3
BUSYBOX_SITE = http://www.busybox.net/downloads
BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2
BUSYBOX_LICENSE = GPL-2.0
--
2.19.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3
2018-09-22 14:06 [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3 Ferdinand van Aartsen
@ 2018-09-22 16:42 ` Thomas Petazzoni
2018-09-22 17:16 ` Ferdinand van Aartsen
2018-09-23 15:07 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2018-09-22 16:42 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 22 Sep 2018 16:06:41 +0200, Ferdinand van Aartsen wrote:
> Remove 0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
> It caused a segfault which was fixed in this release.
This doesn't make sense: the *only* commit between 1.29.2 and 1.29.3 is
exactly the patch we have in Buildroot for Busybox 1.29.2. So
basically, before and after your commit, the Busybox source code is
exactly the same.
See:
$ git slog 1_29_2..1_29_3 | cat
b84194b133212aca64605d1cd0cf771720bc0d94 Bump version to 1.29.3
2993551efcb09ace35b40db608ab08159834692b Revert "libbb: remove unnecessary variable in xmalloc_fgets"
Could you clarify which problem you have encountered ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3
2018-09-22 16:42 ` Thomas Petazzoni
@ 2018-09-22 17:16 ` Ferdinand van Aartsen
2018-09-23 15:07 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Ferdinand van Aartsen @ 2018-09-22 17:16 UTC (permalink / raw)
To: buildroot
Thomas Petazzoni schreef op 2018-09-22 18:42:
> Hello,
>
> On Sat, 22 Sep 2018 16:06:41 +0200, Ferdinand van Aartsen wrote:
>> Remove 0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
>> It caused a segfault which was fixed in this release.
>
> This doesn't make sense: the *only* commit between 1.29.2 and 1.29.3 is
> exactly the patch we have in Buildroot for Busybox 1.29.2. So
> basically, before and after your commit, the Busybox source code is
> exactly the same.
>
> See:
>
> $ git slog 1_29_2..1_29_3 | cat
> b84194b133212aca64605d1cd0cf771720bc0d94 Bump version to 1.29.3
> 2993551efcb09ace35b40db608ab08159834692b Revert "libbb: remove
> unnecessary variable in xmalloc_fgets"
>
> Could you clarify which problem you have encountered ?
>
> Best regards,
>
> Thomas
Note that the commit you linked is _not_ identical to that patch.
The patch has "int i" the commit has "size_t i". You can see the
update to the patch in the busybox master commit:
22a99516206b33b7ae124d426319bab03d5c8309
I've tested and the change from int to size_t fixed a segfault.
Ferdinand
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3
2018-09-22 17:16 ` Ferdinand van Aartsen
@ 2018-09-23 15:07 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-09-23 15:07 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 22 Sep 2018 19:16:05 +0200, Ferdinand van Aartsen wrote:
> Note that the commit you linked is _not_ identical to that patch.
> The patch has "int i" the commit has "size_t i". You can see the
> update to the patch in the busybox master commit:
> 22a99516206b33b7ae124d426319bab03d5c8309
>
> I've tested and the change from int to size_t fixed a segfault.
Indeed, thanks for the additional explanation!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3
2018-09-22 14:06 [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3 Ferdinand van Aartsen
2018-09-22 16:42 ` Thomas Petazzoni
@ 2018-09-23 15:07 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-09-23 15:07 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 22 Sep 2018 16:06:41 +0200, Ferdinand van Aartsen wrote:
> Remove 0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
> It caused a segfault which was fixed in this release.
>
> Signed-off-by: Ferdinand van Aartsen <ferdinand@ombud.nl>
> ---
> ...ove-unnecessary-variable-in-xmalloc_.patch | 39 -------------------
> package/busybox/busybox.hash | 4 +-
> package/busybox/busybox.mk | 2 +-
> 3 files changed, 3 insertions(+), 42 deletions(-)
> delete mode 100644 package/busybox/0003-Revert-libbb-remove-unnecessary-variable-in-xmalloc_.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-09-23 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-22 14:06 [Buildroot] [PATCH 1/1] busybox: bump version to 1.29.3 Ferdinand van Aartsen
2018-09-22 16:42 ` Thomas Petazzoni
2018-09-22 17:16 ` Ferdinand van Aartsen
2018-09-23 15:07 ` Thomas Petazzoni
2018-09-23 15:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox