[Bug 237878] net/geoipupdate: textproc/hs-pandoc is incomplete

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 13 14:00:33 UTC 2019


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 at FreeBSD.org
          Reporter: Trond.Endrestol at ximalas.info
                CC: adamw at FreeBSD.org, haskell at FreeBSD.org
                CC: adamw at FreeBSD.org, haskell at 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 the assignee for the bug.


More information about the freebsd-ports-bugs mailing list