Your message dated Wed, 13 Dec 2023 15:05:33 +0000 with message-id <[email protected]> and subject line Bug#1056742: fixed in ghc 9.4.7-2 has caused the Debian Bug report #1056742, regarding ghc: Please pass number of parallel jobs from DEB_BUILD_OPTIONS to hadrian to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 1056742: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056742 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: ghc Version: 9.4.7-1 Severity: normal Tags: patch Hi! When src:ghc was switched from GNU Make to Hadrian, the build system lost the ability to pass the parallel jobs provided in DEB_BUILD_OPTIONS to the build process. Luckily, Hadrian knows how to deal with parallel jobs using the -j option, so we can just extract the number of parallel jobs from DEB_BUILD_OPTIONS which is what the attached patch does: --- ghc-9.4.7/debian/rules.orig 2023-10-18 21:49:38.000000000 +0200 +++ ghc-9.4.7/debian/rules 2023-11-25 19:59:40.401680294 +0100 @@ -95,6 +95,10 @@ EXTRA_HADRIAN_FLAGS += "*.*.rts.*.opts += -O0" endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + # Use system libffi EXTRA_CONFIGURE_FLAGS += --with-system-libffi @@ -152,7 +156,7 @@ $(error cross-compilation is not supported) endif hadrian/hadrian \ - -V -j \ + -V -j$(NUMJOBS) \ --docs=no-haddocks --docs=no-sphinx-html --docs=no-sphinx-pdfs \ binary-dist-dir \ $(EXTRA_HADRIAN_FLAGS) @@ -175,7 +179,7 @@ $(error override_dh_auto_build-indep is not supported when cross compiling) endif hadrian/hadrian \ - -V -j \ + -V -j$(NUMJOBS) \ --docs=no-sphinx-pdfs \ binary-dist-dir \ $(EXTRA_HADRIAN_FLAGS) I adapted the above snippet from the debian/rules file for src:cmake [1] in case you want to credit the original authors. Thanks, Adrian > [1] https://salsa.debian.org/cmake-team/cmake/-/blob/master/debian/rules#L54 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913--- ghc-9.4.7/debian/rules.orig 2023-10-18 21:49:38.000000000 +0200 +++ ghc-9.4.7/debian/rules 2023-11-25 19:59:40.401680294 +0100 @@ -95,6 +95,10 @@ EXTRA_HADRIAN_FLAGS += "*.*.rts.*.opts += -O0" endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + # Use system libffi EXTRA_CONFIGURE_FLAGS += --with-system-libffi @@ -152,7 +156,7 @@ $(error cross-compilation is not supported) endif hadrian/hadrian \ - -V -j \ + -V -j$(NUMJOBS) \ --docs=no-haddocks --docs=no-sphinx-html --docs=no-sphinx-pdfs \ binary-dist-dir \ $(EXTRA_HADRIAN_FLAGS) @@ -175,7 +179,7 @@ $(error override_dh_auto_build-indep is not supported when cross compiling) endif hadrian/hadrian \ - -V -j \ + -V -j$(NUMJOBS) \ --docs=no-sphinx-pdfs \ binary-dist-dir \ $(EXTRA_HADRIAN_FLAGS)
--- End Message ---
--- Begin Message ---Source: ghc Source-Version: 9.4.7-2 Done: Ilias Tsitsimpis <[email protected]> We believe that the bug you reported is fixed in the latest version of ghc, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ilias Tsitsimpis <[email protected]> (supplier of updated ghc package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 13 Dec 2023 12:28:47 +0200 Source: ghc Architecture: source Version: 9.4.7-2 Distribution: unstable Urgency: medium Maintainer: Debian Haskell Group <[email protected]> Changed-By: Ilias Tsitsimpis <[email protected]> Closes: 1054894 1055070 1055817 1056636 1056742 Changes: ghc (9.4.7-2) unstable; urgency=medium . * Remove files generated by gen_contents_index at installation time (Closes: #1055817) * Canonicalize paths in gen_contents_index (Closes: #1055070) * Backport upstream fix for CLRRI opcode on ppc64{el,} (Closes: #1054894) * Pass number of parallel jobs from DEB_BUILD_OPTIONS to hadrian. Code adapted from the debian/rules file for src:cmake. Thanks to John Paul Adrian Glaubitz for the fix (Closes: #1056742). * Restore --disable-ld-override for affected architectures (Closes: #1056636) Checksums-Sha1: dad8755419c712fe492a4735b51b811358ec85e6 2715 ghc_9.4.7-2.dsc 8d8e30ac33d112769d9feca02fcad4d1486007a3 65488 ghc_9.4.7-2.debian.tar.xz c53743382d2bc83cae80f3d69b5b4cabc4285e58 12229 ghc_9.4.7-2_source.buildinfo Checksums-Sha256: 21207a018868e1ca0312d33104984fb5b4be8c28735dfc35202e6a5159615632 2715 ghc_9.4.7-2.dsc e4f98a9481fb8b860950d2c51e33e33d6ddf0aba6501c4fd80b7557595c18e9b 65488 ghc_9.4.7-2.debian.tar.xz 3b8ef5d7e777f08dcd058be6b93909f16e219c8690d61b0310080e6df2d1e4ce 12229 ghc_9.4.7-2_source.buildinfo Files: 1c86ca0b58f49690d8bd0708d80615f4 2715 haskell optional ghc_9.4.7-2.dsc 895b1dd9b3a06d34b02cc36c2476c92d 65488 haskell optional ghc_9.4.7-2.debian.tar.xz 4f73c68f24269d1e1fa0f2a7127b22b6 12229 haskell optional ghc_9.4.7-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEJ9c8pfW11+AaUTb116hngMxkQDwFAmV5w2sUHGlsaWFzdHNp QGRlYmlhbi5vcmcACgkQ16hngMxkQDwq5xAAvs7FeFAe0zXI0f/GzXVs6PIH1zay N6DkgCEd0WP3ODHS+eN/NcbS8dTy2w1Ba9+41/D9pANlb1oB8ycDmcdGEjAbby+N rwiG90u91cRq00wiV9prG+UXgoU+rpj/E09jNmSrQJg04fVXdv6Algw0LFyLHPXS qY0iIgi6ckWfrN3wnarEx5Emi+8a8E0J9k62nEwfw7bN8I8a4Db7xxNrYGA+geub sUsg1RqGeRr5H2oUDHXrXzd5KxLqhYMZcpjdEeMh99P5KLsjLgU4zk31vku5gu5f HV62KrPOeCNREOtpNVVAt4cKtplH7+plL7IqLlQWha1tAOjbMaOfcenmXPCxWBMr 2uKY2t82VmqN+rH+84W8xCRogQ0f2fR/n7VVnOQnR7jhiM2LKhMEon7eb/V57OqO uVg4S24Tp3ko4KExNN46+k1PXjw8sh85WsV4f3FcUNaO2uVR6I1pjiTG4CLVfEdI cYDRsojti1/wspKKRjSFno5etcxKNnHZ1UeVEQiIF53p13rBEmYT+r5muMjZFmOq o0CJVon9yCJ+bnBDE2iDfvFwWowebrYdgHNKduSHe3NLyJjK3HS3NQuW0yv3a2K2 mk/4cxfIL52cKCpcWeb3YVLIPIKNrmo02xT/qrmCOXJBs+D/yeNZDmhGhG22afjq svrlvTNWEC0PooI= =IhsG -----END PGP SIGNATURE-----
--- End Message ---

