Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2019 14:00:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237878] net/geoipupdate: textproc/hs-pandoc is incomplete
Message-ID:  <bug-237878-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237878

            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 duri=
ng
the build of textproc/hs-pandoc and not captured by the package, causing th=
ese
issues for net/geoipupdate:

--  Phase: build
---------------------------------------------------------------------------=
-----
=3D=3D=3D>  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=3D/usr/local/etc/GeoIP.conf -X
main.defaultDatabaseDirectory=3D/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'
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes 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}/s=
hare
and thus be captured and preserved by the package(s) in a more reasonable w=
ay.

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=20=20=20
${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=20=20=20
${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 li=
es
within the Haskell ecosystem. Feel free to redirect to the Haskell
maintainer(s).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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