bash violates FHS

Problems with packages? Post here, using [tags] of the package name.

bash violates FHS

Postby ticpu » Sun Sep 11, 2011 5:48 pm

Bash violates file system hierarchy standards by being in /bin and depending on libgcc_s which is in /usr. This should get fixed.

root ~ # ldd /bin/bash
libreadline.so.6 => /lib/libreadline.so.6 (0x4011e000)
libhistory.so.6 => /lib/libhistory.so.6 (0x40057000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0x40076000)
libdl.so.2 => /lib/libdl.so.2 (0x40034000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x4000f000)
libc.so.6 => /lib/libc.so.6 (0x40159000)
/lib/ld-linux.so.3 (0x400f7000)
ticpu
 
Posts: 6
Joined: Sun Sep 11, 2011 5:45 pm

Re: bash violates FHS

Postby WarheadsSE » Sun Sep 11, 2011 6:04 pm

I blame upstream.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: bash violates FHS

Postby kmihelich » Sun Sep 11, 2011 6:17 pm

We don't write the packages (except for a few), we just compile them for ARM. If this is something that goes against Arch policies, write a thorough bug report on their tracker.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: bash violates FHS

Postby ticpu » Sun Sep 11, 2011 6:25 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I') blame upstream.


I can confirm on my current Arch system bash doesn't depend on libgcc_s:
jerome ~ $ ldd /bin/bash
linux-vdso.so.1 => (0x00007fffcefff000)
libreadline.so.6 => /lib/libreadline.so.6 (0x00007fa8e7c8b000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007fa8e7a30000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fa8e782c000)
libc.so.6 => /lib/libc.so.6 (0x00007fa8e74cc000)
/lib/ld-linux-x86-64.so.2 (0x00007fa8e7ecf000)
ticpu
 
Posts: 6
Joined: Sun Sep 11, 2011 5:45 pm

Re: bash violates FHS

Postby kmihelich » Sun Sep 11, 2011 6:43 pm

Our bash package was compiled May 10, which was before I switched all of the builders to a clean chroot build system. It's possibly just a product of the previous way I built packages.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: bash violates FHS

Postby ticpu » Sun Sep 11, 2011 7:27 pm

I just did makepkg on bash from core/bash on packages.archlinux.org and it still compiles against libgcc_s, I'll do some checks to see why it happens on ARM.
ticpu
 
Posts: 6
Joined: Sun Sep 11, 2011 5:45 pm

Re: bash violates FHS

Postby ticpu » Sun Sep 11, 2011 8:05 pm

Adding -static-libgcc to the final bash link makes bash bigger as expected and patches the problem.

Could it be that ARM has some missing mathematical features imported from libgcc ?
I see it could be thread support here: http://minimalinux.org/forum/viewtopic.php?id=483

root ~/aur/bash/src/bash-4.2 $ ls -l ../../pkg/bin/bash bash
-rwxr-xr-x 1 root root 738249 Sep 11 16:04 bash
-rwxr-xr-x 1 root root 603336 Sep 11 15:26 ../../pkg/bin/bash
ticpu
 
Posts: 6
Joined: Sun Sep 11, 2011 5:45 pm

Re: bash violates FHS

Postby kmihelich » Mon Sep 12, 2011 8:10 pm

Actually, if it's a serious issue that needs to be addressed, send it to Arch. Be sure there is something explicit here https://wiki.archlinux.org/index.php/Fi ... y_Standard that is with your complaint.

If the binary referencing something in some other directory is just a pet peeve, I'm not going to maintain another package in git just because of it. In all honesty, there are far larger issues than where files end up or what they reference.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: bash violates FHS

Postby ticpu » Mon Sep 19, 2011 2:38 pm

The issue is that if you mount /usr later in the boot process, you're doomed to total failure of all scripts depending on /bin/bash, which is almost everything in ArchLinux as there is no /bin/dash or any alternative.

Edit: Correction, I just checked for installing dash and it is present by default, so linking /bin/sh to /bin/dash would correct boot problems without /usr mounted if all scripts point to /bin/sh, I'll try this out.
ticpu
 
Posts: 6
Joined: Sun Sep 11, 2011 5:45 pm

Re: bash violates FHS

Postby kmihelich » Mon Sep 19, 2011 3:05 pm

I would wager that I could represent on one hand the amount of people that run this distribution with a root filesystem that fragmented between different partitions. I figured that practice had gone out a long time ago, and haven't seen anyone bother with it in many many years.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Next

Return to Packages

Who is online

Users browsing this forum: No registered users and 47 guests