Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703936 - sys-apps/busybox: duplicates of packages
Summary: sys-apps/busybox: duplicates of packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-27 07:26 UTC by Росен Александров
Modified: 2021-03-28 07:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_703936.txt,19.15 KB, text/plain)
2019-12-27 07:26 UTC, Росен Александров
Details
emerge busybox output. (file_703936.txt,14.59 KB, text/plain)
2019-12-27 07:43 UTC, Росен Александров
Details
genlop -i busybox (file_703936.txt,672 bytes, text/plain)
2019-12-27 10:18 UTC, Росен Александров
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Росен Александров 2019-12-27 07:26:58 UTC
Created attachment 600982 [details]
emerge --info

I am facing weird issue on my gentoo installation since some days.
The issue:

Too many tools have busybox clones, and always are used those provided by busybox.

For example...

~ ➜ equery b /bin/patch                                      
 * Searching for /bin/patch ... 
sys-apps/busybox-1.31.1 (/bin/busybox)
equery b /bin/patch  241 kB 9,292 (user: 9,012, kernel: 0,265)
~ ➜ whereis patch                                                                                                                   
patch: /usr/bin/patch /bin/patch /usr/share/man/man1p/patch.1p.bz2 /usr/share/man/man1/patch.1.bz2
~ ➜ equery b /usr/bin/patch          
 * Searching for /usr/bin/patch ... 
sys-devel/patch-2.7.6-r4 (/usr/bin/patch)
equery b /usr/bin/patch  241 kB 8,975 (user: 8,735, kernel: 0,223)
~ ➜ 

It's same for too many tools..

wget, usbutils, pciutils, and etc and etc.

---
Comment 1 Росен Александров 2019-12-27 07:28:53 UTC
~ ➜ wget https://raw.githubusercontent.com/sirlucjan/kernel-patches/master/5.4/fixes-miscellaneous-v4/0001-fixes-miscellaneous.patch
Connecting to raw.githubusercontent.com (151.101.128.133:443)
saving to '0001-fixes-miscellaneous.patch'
0001-fixes-miscellan 100% |***************************************************************************************************************************************************************| 16715  0:00:00 ETA
'0001-fixes-miscellaneous.patch' saved
~ ➜ /usr/bin/wget https://raw.githubusercontent.com/sirlucjan/kernel-patches/master/5.4/fixes-miscellaneous-v4/0001-fixes-miscellaneous.patch
--2019-12-27 09:27:43--  https://raw.githubusercontent.com/sirlucjan/kernel-patches/master/5.4/fixes-miscellaneous-v4/0001-fixes-miscellaneous.patch
Преобразувам raw.githubusercontent.com... 151.101.128.133, 151.101.192.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com|151.101.128.133|:443... успешно свързване.
HTTP изпратено искане, чакам отговор... 200 OK
Дължина: 16715 (16K) [text/plain]
Saving to: ‘0001-fixes-miscellaneous.patch.1’

0001-fixes-miscellaneous.patch.1                    100%[==================================================================================================================>]  16,32K  --.-KB/s    in 0,03s   

2019-12-27 09:27:43 (479 KB/s) - ‘0001-fixes-miscellaneous.patch.1’ saved [16715/16715]

~ ➜ 

first one seems to be provided by busybox..
second is provided by wget..

same for almost all packages, they have a busybox clone of binaries.
Comment 2 Росен Александров 2019-12-27 07:43:45 UTC
Created attachment 600984 [details]
emerge busybox output.

It's weird to make links of all commands to busybox..
And this causing for example kernel build failures, and impossible to avoid it.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-12-27 08:48:35 UTC
This happened because you installed busybox with USE="make-symlinks" and set 

  VERY_BRAVE_OR_VERY_DUMB="yes"

variable in your environment or in your make.conf. So you cannot really complain here. You either knew what you were doing or the variable name is more than correct.

*** This bug has been marked as a duplicate of bug 60805 ***
Comment 4 Росен Александров 2019-12-27 09:38:50 UTC
Nope, i didn't! And aint duplicate with mentioned bug.
Check carrifully provided logs.
Comment 5 Росен Александров 2019-12-27 10:18:17 UTC
Created attachment 601024 [details]
genlop -i busybox

I don't know where you saw make-symlinks flag, and environment variable?!
They haven't been enabled never. So this is pretty different bug, not a duplicate!
Comment 6 Larry the Git Cow gentoo-dev 2020-11-02 11:42:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58414b6f079cd6e3134624c6b834f39b87d0a925

commit 58414b6f079cd6e3134624c6b834f39b87d0a925
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-11-02 11:41:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-11-02 11:42:06 +0000

    sys-apps/busybox: fix 'make-symlinks' safeguard
    
    Thanks-to: Ionen Wolkens <sudinave@gmail.com>
    Bug: https://bugs.gentoo.org/703936
    Closes: https://bugs.gentoo.org/752162
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 .../busybox/{busybox-1.31.1-r2.ebuild => busybox-1.31.1-r3.ebuild}  | 2 +-
 .../busybox/{busybox-1.32.0.ebuild => busybox-1.32.0-r1.ebuild}     | 2 +-
 sys-apps/busybox/busybox-9999.ebuild                                | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
Comment 7 Росен Александров 2021-03-28 06:44:39 UTC
Finally? It was a long time ago reported.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-28 07:01:33 UTC
(In reply to Росен Александров from comment #7)
> Finally? It was a long time ago reported.

I attempted to fix it several months ago. Hopefully it worked. If not, let’s debug it together?

Please be polite.
Comment 9 Росен Александров 2021-03-28 07:05:03 UTC
Seems to be fine now. I'll let you know if it show up again in future.