misc/186134: sysutils/coreutils build, fails due to "strip" of sh (ascii)

Dewayne dewayne at heuristicsystems.com.au
Sun Jan 26 19:10:00 UTC 2014


>Number:         186134
>Category:       misc
>Synopsis:       sysutils/coreutils build, fails due to "strip" of sh (ascii)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 26 19:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Dewayne
>Release:        FreeBSD 9.2S
>Organization:
>Environment:
FreeBSD  9.2-STABLE FreeBSD 9.2-STABLE #0: Sat Jan 25 05:33:06 EST 2014     root@:/usr/obj/usr/src/sys/hqdev-amd64-padlock-smp     amd64
>Description:
During compilation of coreutils, resulted in these errors:

/usr/bin/strip: /usr/staging/usr/local/bin/gdlib-config: File format not recognized
/usr/bin/strip: /usr/staging/usr/local/bin/gpgme-config: File format not recognized
/usr/bin/strip: /usr/staging/usr/local/bin/gpgsm-gencert.sh: File format not recognized

These files are actually ascii, per
file /usr/staging/usr/local/bin/gdlib-config /usr/staging/usr/local/bin/gpgme-config /usr/staging/usr/local/bin/gpgsm-gencert.sh
/usr/staging/usr/local/bin/gdlib-config:     POSIX shell script, ASCII text executable
/usr/staging/usr/local/bin/gpgme-config:     POSIX shell script, ASCII text executable
/usr/staging/usr/local/bin/gpgsm-gencert.sh: POSIX shell script, ASCII text executable
*** [post-install] Error code 1
>How-To-Repeat:
cd /usr/ports/sysutils/coreutils && make package
>Fix:
Probably something like this (which also doesn't work) or a better use of find in

post-install:
        @${LS} ${STAGEDIR}${PREFIX}/bin/g* | ${EGREP} -v "config|sh"$ | ${STRIP_CMD}
        @${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/coreutils/glibstdbuf.so

I gave up trying to find a regex that worked, outside of my ability.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list