Bug#1044579: ghc: Fails to build source after successful build
Lucas Nussbaum
lucas at debian.org
Sun Aug 13 17:56:56 BST 2023
Source: ghc
Version: 9.0.2-5
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian-qa at lists.debian.org
Usertags: qa-doublebuild
Hi,
This package fails to build a source package after a successful build
(dpkg-buildpackage ; dpkg-buildpackage -S).
This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.
More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/SourceAfterBuild
Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S
> -------------------------------------------------------------------------------------------------------------
>
> dpkg-buildpackage: info: source package ghc
> dpkg-buildpackage: info: source version 9.0.2-5
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Scott Talbert <swt at techie.net>
> dpkg-source --before-build .
> debian/rules clean
> dh clean
> debian/rules override_dh_auto_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_clean
> rm -f mk/build.mk
> rm -f debian/*.install
> rm -f debian/*.1
> rm -f debian/ghc.manpages
> rm -f debian/ghc.links
> rm -f debian/ghc-doc.links
> rm -f mk/build.mk
> rm -rf debian/testghc
> rm -f ch01.html ch02.html index.html
> rm -rf debian/tmp-db
> # Hacks:
> rm -f config.log
> rm -f libraries/ghc-prim/GHC/PrimopWrappers.hs
> rm -f libraries/ghc-prim/GHC/Prim.hs
> rm -f libraries/ghc-prim/GHC/Generics.hc
> rm -f libraries/ghc-prim/GHC/Generics.dyn_hc
> rm -f libraries/ghc-prim/GHC/IntWord32.hc
> rm -f libraries/integer-gmp/GHC/Integer/Type.hc
> rm -f libraries/base/GHC/ConsoleHandler.hc
> rm -f libraries/base/GHC/IO/Encoding/CodePage.hc
> rm -f libraries/base/Unsafe/Coerce.hc
> rm -f rts/libs.depend mk/install.mk
> rm -f rts/package.conf.install.raw
> rm -f rts/package.conf.inplace.raw
> rm -f utils/ghc-pwd/dist-boot/Main.hi
> rm -f utils/ghc-pwd/dist-boot/Main.o
> rm -f utils/ghc-pwd/dist-boot/ghc-pwd
> rm -f libraries/haskeline/a.out
> rm -rf utils/ghctags/dist-install
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_autoreconf_clean
> dh_clean
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: verifying ./ghc_9.0.2.orig.tar.xz.asc
> dpkg-source: info: building ghc using existing ./ghc_9.0.2.orig.tar.xz
> dpkg-source: info: building ghc using existing ./ghc_9.0.2.orig.tar.xz.asc
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: warning: ignoring deletion of file configure, use --include-removal to override
> dpkg-source: warning: ignoring deletion of file mk/config.h.in, use --include-removal to override
> dpkg-source: error: cannot represent change to a.out: binary file contents changed
> dpkg-source: error: add a.out in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: warning: executable mode 0755 of 'a.out' will not be represented in diff
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Cont/Class.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Cont/Class.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Cont/Class.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Cont/Class.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Error/Class.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Error/Class.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Error/Class.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Error/Class.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Identity.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Identity.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Identity.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Identity.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Reader/Class.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Reader/Class.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Reader/Class.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/Reader/Class.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/State/Class.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/State/Class.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/State/Class.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/State/Class.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/State/Strict.hi: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/State/Strict.hi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/State/Strict.o: binary file contents changed
> dpkg-source: error: add bootstrapping/Control/Monad/State/Strict.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to bootstrapping/Control/Monad/Trans.hi: binary file contents changed
[...]
> dpkg-source: error: add utils/unlit/dist/build/unlit.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: unrepresentable changes to source
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1
>
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S' failed to run.
The full build log is available from:
http://qa-logs.debian.net/2023/08/13/ghc_9.0.2-5_unstable.log
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-haskell-maintainers
mailing list