Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 16:52:09 -0500
From:      Jesse Guardiani <jesse@wingnet.net>
To:        freebsd-gnats-submit@FreeBSD.org, sixxgate@yahoo.com
Cc:        freebsd-ports-bugs@freebsd.org
Subject:   Re: ports/62993: PORT BUG: firefox-0.8_4 fails 'make install' with Error Code 2
Message-ID:  <200402201652.09685.jesse@wingnet.net>

next in thread | raw e-mail | index | archive | help
I ran into this problem when I was trying to compile my Firefox two days ago too.

I'm running 5.2.1-RC2. Apparently sort and cpio don't exist as variables in the
root port makefile.

I fixed it with the following patch to the Firefox port's Makefile:

--- Makefile.orig       Fri Feb 20 16:32:54 2004
+++ Makefile    Wed Feb 18 16:37:47 2004
@@ -146,18 +146,18 @@
 .for ii in firefox Firefox firefox-config ${EXTRA_SCRIPTS}
        @${ECHO_CMD} bin/${ii} >> ${PLIST}
 .endfor
-       @cd ${FAKEDIR} && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \
-       ${FIND} * -type d -empty | ${SORT} | ${SED} -e \
+       @cd ${FAKEDIR} && ${FIND} * ! -type d | sort >> ${PLIST}; \
+       ${FIND} * -type d -empty | sort | ${SED} -e \
                "s:^:@exec ${MKDIR} %D/:" -e "s:$$: || true:" >> ${PLIST}; \
-       ${FIND} * -type d -empty | ${SORT} -r | ${SED} -e \
+       ${FIND} * -type d -empty | sort -r | ${SED} -e \
                "s:^:@unexec ${RMDIR} %D/:" -e "s:$$: || true:" >> ${PLIST}; \
-       ${FIND} * -type d ! -empty | ${SORT} -r | ${SED} -e "s:^:@dirrm :" | \
+       ${FIND} * -type d ! -empty | sort -r | ${SED} -e "s:^:@dirrm :" | \
                ${GREP} / >> ${PLIST}

 do-install:
 # This is the actual installation.  First, the contents of FAKEDIR are
 # just copied to PREFIX.
-       cd ${FAKEDIR} && ${FIND} * | ${CPIO} -dmp --quiet ${PREFIX}
+       cd ${FAKEDIR} && ${FIND} * | cpio -dmp --quiet ${PREFIX}

 post-install:
 .for i in ${EXTRA_SCRIPTS}

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402201652.09685.jesse>