On Jan 8, 2008 9:34 AM, Karolina Lindqvist <karolina.lindqvist@kramnet.se> wrote:
tisdag 08 januari 2008 skrev Dan McGee:
These are the two issues I can see being important. As Xavier said, the --asroot option probably hasn't been tested much, so maybe we should look into this. If I get a chance I'll be sure to check this out before I release tonight. Of course I'd appreciate anyone else looking into it as well.
One issue got left out by mistake I think.
I could not get pacman to work properly building klibc, since it stripped all the symbols from /usr/lib/klibc/lib/libc.so I don't know why the old pacman did not do this, since I could not find anything different in logic. Maybe there is some other mechanism that I did not find? So just check that klibc builds without stripping /usr/lib/klibc/lib/libc.so, or install a patch similar to this.
For some reason "file -biz /usr/lib/klibc/lib/libc.so" gives application/x-executable and not application/x-sharedlib, and gets its symbols stripped. That in turn will make build of klibc-* packets fail.
@@ -751,7 +765,11 @@ *application/x-sharedlib*) # Libraries /usr/bin/strip --strip-debug "$file";; *application/x-executable*) # Binaries - /usr/bin/strip "$file";; + if [ "${file/.so/}" = "${file}" ]; then + /usr/bin/strip "$file"; + else + /usr/bin/strip --strip-debug "$file"; + fi;; esac done fi
Hmm, interesting issue here. Anyone know more about this? In 3.0.6 we just used file extensions to strip so we didn't run into the above problem. [1] You can't run ldd on klibc either. Unlike /lib/libc.so.6 (glibc), this doesn't even link in ld-linux.so and linux-gate.so. This is a very corner case, and the above patch makes the code a bit sloppy looking, but I don't see many alternatives. -Dan [1] http://code.toofishes.net/gitweb.cgi?p=pacman.git;a=blob;f=scripts/makepkg;h...