Date: Mon, 13 May 2019 14:00:30 +0000 From: bugzilla-noreply@freebsd.org To: haskell@FreeBSD.org Subject: [Bug 237878] net/geoipupdate: textproc/hs-pandoc is incomplete Message-ID: <bug-237878-16154@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237878 Bug ID: 237878 Summary: net/geoipupdate: textproc/hs-pandoc is incomplete Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: Trond.Endrestol@ximalas.info CC: adamw@FreeBSD.org, haskell@FreeBSD.org CC: adamw@FreeBSD.org, haskell@FreeBSD.org For some reason pandoc from textproc/hs-pandoc refers to files created during the build of textproc/hs-pandoc and not captured by the package, causing these issues for net/geoipupdate: -- Phase: build -------------------------------------------------------------------------------- ===> Building for geoipupdate-4.0.2 gmake[2]: Entering directory '/construction/xports/net/geoipupdate/work/geoipupdate-4.0.2' mkdir -p build (cd cmd/geoipupdate && go build -ldflags '-X main.defaultConfigFile=/usr/local/etc/GeoIP.conf -X main.defaultDatabaseDirectory=/usr/local/share/GeoIP') sed -e 's|CONFFILE|/usr/local/etc/GeoIP.conf|g' -e 's|DATADIR|/usr/local/share/GeoIP|g' conf/GeoIP.conf.default > build/GeoIP.conf sed -e 's|CONFFILE|/usr/local/etc/GeoIP.conf|g' -e 's|DATADIR|/usr/local/share/GeoIP|g' doc/GeoIP.conf.md > build/GeoIP.conf.md sed -e 's|CONFFILE|/usr/local/etc/GeoIP.conf|g' -e 's|DATADIR|/usr/local/share/GeoIP|g' doc/geoipupdate.md > build/geoipupdate.md dev-bin/make-man-pages.pl Could not find data file /construction/xports/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/templates/default.man pandoc failed at dev-bin/make-man-pages.pl line 32. gmake[2]: *** [Makefile:49: build/GeoIP.conf.5] Error 25 gmake[2]: *** Waiting for unfinished jobs.... cp cmd/geoipupdate/geoipupdate build gmake[2]: Leaving directory '/construction/xports/net/geoipupdate/work/geoipupdate-4.0.2' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /xports/net/geoipupdate *** Error code 1 Stop. make: stopped in /xports/net/geoipupdate Once you take care of ${WRKDIRPREFIX}/${PORTSDIR}/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/templates/default.man, then ${WRKDIRPREFIX}/${PORTSDIR}/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/abbreviations pops up. I think Haskell's/cabal's notion of ${HOME} should rather be ${LOCALBASE}/share and thus be captured and preserved by the package(s) in a more reasonable way. Short term mitigation is to fake the missing directories and files: pre-build: mkdir -p ${WRKDIRPREFIX}/${PORTSDIR}/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/templates touch ${WRKDIRPREFIX}/${PORTSDIR}/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/templates/default.man touch ${WRKDIRPREFIX}/${PORTSDIR}/textproc/hs-pandoc/work/cabal-home/.cabal/share/x86_64-freebsd-ghc-8.6.3/pandoc-2.7.1/data/abbreviations While this problem occured when building net/geoipupdate, the root cause lies within the Haskell ecosystem. Feel free to redirect to the Haskell maintainer(s). -- You are receiving this mail because: You are on the CC list for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237878-16154>
