Hello,
I am trying to port a small application dos2unix http://waterlan.home.xs4all.nl/dos2unix.html , I have prepared a Makefile which is attached.
Facing errors when testing the port with steps mentioned in https://www.freebsd.org/doc/en/books/porters-handbook/porting-testing.html
The problem is with this section of the makefile:
I get following error when I run
If I comment the do-install block, I get warnings, but it builds fine:
Confused what could be wrong here.
I am trying to port a small application dos2unix http://waterlan.home.xs4all.nl/dos2unix.html , I have prepared a Makefile which is attached.
Facing errors when testing the port with steps mentioned in https://www.freebsd.org/doc/en/books/porters-handbook/porting-testing.html
The problem is with this section of the makefile:
Code:
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/dos2unix ${STAGEDIR}${PREFIX}/bin/dos2unix
${INSTALL_PROGRAM} ${WRKDIR}/unix2dos ${STAGEDIR}${PREFIX}/bin/unix2dos
${LN} -f ${STAGEDIR}${PREFIX}/bin/dos2unix ${STAGEDIR}${PREFIX}/bin/mac2unix
${LN} -f ${STAGEDIR}${PREFIX}/bin/unix2dos ${STAGEDIR}${PREFIX}/bin/unix2mac
${INSTALL_MAN} ${WRKDIR}/man1/dos2unix.1 ${STAGEDIR}$(MANPREFIX}/man/man1
I get following error when I run
make stage
:
Code:
cc dos2unix.o querycp.o common.o -L/usr/local/lib -lintl -o dos2unix
cc unix2dos.o querycp.o common.o -L/usr/local/lib -lintl -o unix2dos
ln -sf dos2unix mac2unix
ln -sf unix2dos unix2mac
gmake[2]: Leaving directory '/usr/ports/converters/dos2unix/work/dos2unix-7.2.2'
===> Staging for dos2unix-7.2.2
===> Generating temporary packing list
install -s -o root -g wheel -m 555 /usr/ports/converters/dos2unix/work/dos2unix /usr/ports/converters/dos2unix/work/stage/usr/local/bin/dos2unix
*** Error code 71
Stop.
make[1]: stopped in /usr/ports/converters/dos2unix
*** Error code 1
Stop.
make: stopped in /usr/ports/converters/dos2unix
If I comment the do-install block, I get warnings, but it builds fine:
Code:
gmake[3]: Leaving directory '/usr/ports/converters/dos2unix/work/dos2unix-7.2.2'
gmake[2]: Leaving directory '/usr/ports/converters/dos2unix/work/dos2unix-7.2.2'
====> Compressing man pages (compress-man)
====> Running Q/A tests (stage-qa)
Warning: '/usr/ports/converters/dos2unix/work/stage/usr/bin/unix2dos' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Warning: '/usr/ports/converters/dos2unix/work/stage/usr/bin/dos2unix' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}
Confused what could be wrong here.