Bug#951637: FTBFS if mail address can't be detected by git
Sven Mueller
sven.mueller72 at gmail.com
Wed Feb 19 09:34:20 GMT 2020
Package: haskell-githash
Version: 0.1.3.1-3
Severity: serious
I was attempting to build haskell-githash on a system that had no usable
network and thus also no FQDN. I do interpret this as an attempt to access
the network during build, though this is debatable, so feel free to
downgrade the severity accordingly.
I'm not sure why git is being run as part of the build, but I assume it is
necessary. As such, I'd suggest explicitly setting a dummy identity as part
of the build (don't use --global to avoid writing outside the build
directory).
Relevant excerpt from the build log:
dh_clean
. /usr/share/haskell-devscripts/Dh_Haskell.sh && \
clean_recipe
Running rm -rf dist dist-ghc dist-ghcjs dist-hugs debian/hlibrary.setup
Setup.hi Setup.ho Setup.o .\*config\*
Running rm -f configure-ghc-stamp configure-ghcjs-stamp build-ghc-stamp
build-ghcjs-stamp build-hugs-stamp build-haddock-stamp
Running rm -rf debian/tmp-inst-ghc debian/tmp-inst-ghcjs
Running rm -f debian/extra-depends-ghc debian/extra-depends-ghcjs
Running rm -f debian/hlibrary.Makefile
Running rm -rf debian/dh_haskell_shlibdeps
Running rm -rf debian/tmp-db
if ! test -d .git; then \
git init; \
git add README.md; \
git commit -m "this is terrible"; \
fi
Initialized empty Git repository in /<<PKGBUILDDIR>>/.git/
*** Please tell me who you are.
Run
git config --global user.email "you at example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root at mybuildhost.(none)')
make: *** [debian/rules:12: clean] Error 128
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned
exit status 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20200219/de5ebb05/attachment-0001.html>
More information about the Pkg-haskell-maintainers
mailing list