Summary: | games/crafty: Incorrect DISTFILES after last update | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Martin Birgmeier <d8zNeCFG> | ||||
Component: | Individual Port(s) | Assignee: | Johan van Selst <johans> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | w.schwarzenfeld | ||||
Priority: | --- | Keywords: | needs-qa, regression | ||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(johans) koobs: merge-quarterly? |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Martin Birgmeier
2017-07-17 16:58:16 UTC
Maintainer feedback? Sorry for the delay. Installation should be corrected now. Docs are no longer included. Build fails: # make ===> crafty-25.2 depends on executable: gmake - found ===> Configuring for crafty-25.2 This port has the following tunables: WITH_BOOKDIR (default: /usr/local/lib/crafty WITH_LOGDIR (default: /tmp) WITH_RCDIR (default: ~/) WITH_TBDIR (default: /usr/local/lib/crafty/TB) WITH_PERSDIR (default: /usr/local/lib/crafty/cpf) To alter any of these, press CTRL-C now, and simply set your desired variable with one or more of: <setenv WITH_BOOKDIR|LOGDIR|RCDIR|TBDIR|PERSDIR path> (csh) or <export WITH_BOOKDIR|LOGDIR|RCDIR|TBDIR|PERSDIR=path> (sh) Changing BOOKDIR or TBDIR is not recommended, as other ports depend on these being in a standard location ===> Building for crafty-25.2 gmake[1]: Entering directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' gmake -j target=UNIX \ CC=cc \ opt='-DHASHSTATS -DTRACE -DBOOKDIR=\"/usr/local/lib/crafty\" -DLOGDIR=\"/tmp\" -DRCDIR=\"~/\" -DTBDIR=\"/usr/local/lib/crafty/TB\" -DPERSDIR=\"/usr/local/lib/crafty/cpf\" -DSKILL -DCPUS=4 -DSYZYGY -DTEST -DCPUS=4' \ CFLAGS='-O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ -mpopcnt -fprofile-correction -pthread' \ LDFLAGS=' -fstack-protector -fprofile-use -pthread -lstdc++' \ crafty-make gmake[2]: Entering directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' gmake[2]: warning: -jN forced in submake: disabling jobserver mode. gmake[3]: Entering directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' cc -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ -mpopcnt -fprofile-correction -pthread -DHASHSTATS -DTRACE -DBOOKDIR=\"/usr/local/lib/crafty\" -DLOGDIR=\"/tmp\" -DRCDIR=\"~/\" -DTBDIR=\"/usr/local/lib/crafty/TB\" -DPERSDIR=\"/usr/local/lib/crafty/cpf\" -DSKILL -DCPUS=4 -DSYZYGY -DTEST -DCPUS=4 -DUNIX -c crafty.c cc: warning: optimization flag '-fprofile-correction' is not supported [-Wignored-optimization-argument] error: Could not read profile default.profdata: No such file or directory 1 error generated. gmake[3]: *** [Makefile:199: crafty.o] Error 1 gmake[3]: Leaving directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' gmake[2]: *** [Makefile:184: crafty-make] Error 2 gmake[2]: Leaving directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' gmake[1]: *** [Makefile:85: unix-gcc] Error 2 gmake[1]: Leaving directory '/usr/tmp/z/SRC/FreeBSD-ports/head/games/crafty/work' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /z/SRC/FreeBSD-ports/head/games/crafty It is a typo in the Makefile post-extract: cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} book.bin start.pgn.gz ${WRKSRC} ^ should be books.bin and in pkg-plist => lib/crafty/book.bin lib/crafty/books.bin lib/crafty/crafty.hlp @mode 775 @dir lib/crafty/cpf @dir lib/crafty @mode @group wheel Seems I was wrong, they are two different files. There are missed two lines MASTER_SITES= http://www.craftychess.com/downloads/source/:src \ => http://www.craftychess.com/downloads/book/:data \ http://www.craftychess.com/downloads/books/:data DISTFILES= crafty-${PORTVERSION}.zip:src \ => book.bin:data \ books.bin:data \ start.pgn.gz:data (and update distinfo) Created attachment 190448 [details]
svn-diff-crafty
It compiles and installs on my system if I change it like in the svn-diff. I don't know if I am right with the change in books-building.
To compile with clang50 maybe remove -fprofile-use and -fprofile-correction from Makefile. patch-Makefile: --- Makefile 2018-02-08 22:55:44 UTC +++ Makefile @@ -83,11 +83,11 @@ quick: unix-gcc: $(MAKE) -j target=UNIX \ - CC=gcc \ - opt='-DSYZYGY -DTEST -DCPUS=4' \ - CFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ - -mpopcnt -fprofile-correction -pthread' \ - LDFLAGS='$(LDFLAGS) -fprofile-use -pthread -lstdc++' \ + CC=$(CC) \ + opt='$(opt) -DSYZYGY -DTEST -DCPUS=4' \ + CFLAGS='$(CFLAGS) -Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ + -mpopcnt -pthread' \ + LDFLAGS='$(LDFLAGS) -pthread -lstdc++' \ crafty-make A commit references this bug: Author: johans Date: Fri Feb 9 16:09:43 UTC 2018 New revision: 461318 URL: https://svnweb.freebsd.org/changeset/ports/461318 Log: Remove profile options to fix build with Clang PR: 220806 Submitted by: jbeich, Martin Birgmeier Changes: head/games/crafty/files/patch-Makefile head/games/crafty/files/patch-option.c Thanks, this is working. |