Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10327 - dash 0.5.4-4 - Dash does not compile cleanly against klibc

Attached to Project: Arch Linux
Opened by Jörg Kriegel (sokoban65) - Thursday, 01 May 2008, 10:54 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 21:41 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dan McGee (toofishes)
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
dash has problems getting the current working directory when compiled against klibc. This affects $PWD, $OLDPWD, cd, pwd and pwd -P. Interestingly this bug doesn't show up with /usr/lib/klibc/bin/sh which is also a variant of dash.

Additional info:
* dash 0.5.4-4 i686

Steps to reproduce:
I use env here to unset $PWD on shell startup which would otherwise take it from the environment.

for f in /bin/bash /bin/sh /usr/lib/klibc/bin/sh /bin/dash; do env - $f -c 'echo $PWD; pwd; pwd -P'; done

Possible Solutions:
1. Compiling against glibc (works)
2. Use the klibc variant of dash (older?)
3. Patch the source and use klibc source for help
This task depends upon

Closed by  Greg (dolby)
Tuesday, 17 June 2008, 21:41 GMT
Reason for closing:  Upstream
Additional comments about closing:  Fixed upstream http://www.mail-archive.com/dash@vger.ke rnel.org/msg00039.html
Comment by Aaron Griffin (phrakture) - Thursday, 01 May 2008, 16:57 GMT
Assigning to Dan, but I expect he'll close it. Why do people insist on putting upstream bugs in the Archlinux bug tracker?
Comment by Dan McGee (toofishes) - Thursday, 01 May 2008, 17:19 GMT
Did you report these issues upstream? dash is designed to be compilable against klibc, so surely the author would like to know any regressions that exist.

$ for f in /bin/bash /bin/sh /usr/lib/klibc/bin/sh /bin/dash; do echo $f; env - $f -c 'echo $PWD; pwd; pwd -P'; done
/bin/bash
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/bin/sh
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/usr/lib/klibc/bin/sh
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/home/dmcgee/projects/linux-2.6
/bin/dash



Comment by Jörg Kriegel (sokoban65) - Thursday, 01 May 2008, 19:34 GMT
OK it's a upstream bug. I only mentioned it here only because i thought it's possible a work around this by temporarily repackaging dash with glibc, until a better solution is found.
Comment by Dan McGee (toofishes) - Thursday, 01 May 2008, 19:49 GMT
That would increase the binary size from its current 79K to ~500K, really killing the dash size/speed benefit (note that we currently static-compile it as well). I reported this upstream and pointed them to this bug, so it is now a waiting game.

Loading...