- Dec 10, 2024
-
-
Walter Lozano authored
Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Oct 23, 2024
-
-
Walter Lozano authored
Package rust-coreutils is special as it uses a different folder for the registry, causing dh_setup_copyright to fail at finding the package reference files belong to. To avoid this issue, take into account this fact and replace the names. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Oct 22, 2024
-
-
Walter Lozano authored
The script dh_setup_copyright tries to find the package each reference file belongs to, however, in some cases this is not possible and there is now warning about that. Add a warning about the unknown file to allow further investigations. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- May 22, 2024
-
-
Dylan Aïssi authored
Signed-off-by:
Dylan Aïssi <dylan.aissi@collabora.com>
-
- May 21, 2024
-
-
Ryan Gonzalez authored
The previous version of this code was `O(m*n)` where `m` = the number of files in the source tree and `n` = the number of files referenced by the binaries. In most cases, those numbers are quite small, but on large packages they can grow incredibly large. For instance, for rustc's main binary, `m > 300k` and `n > 33k`, resulting in each outer loop iteration taking an average of ~1.9s. That would result in a runtime of over 17 hours, which is a rather absurd bump to the build time. Instead, we can reorganize the code so that the source tree contents are stored in a hash, indexed by basename. That turns the entire inner matching loop into a single hash lookup, bringing the outer loop runtime to a worst-case single-digit number of milliseconds. Fixes: infrastructure/apertis-issues#595 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
Otherwise they'll be printed following the internal order of the hash, which isn't reproducible across runs. Fixes: infrastructure/apertis-issues#594 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- May 08, 2024
-
-
Ryan Gonzalez authored
The previous one didn't account for distro names other than "apertis". https://phabricator.apertis.org/T10413 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Apr 03, 2024
-
-
Ryan Gonzalez authored
In addition to scanning binary files, now we also try to match files directly copied to the install prefix to their original location, which will allow the BOM generation scripts in the images to track their copyright properly. Because dh_setup_copyright now takes into account non-binary files, it cannot run as part of elf-tools anymore, so this also moves it into the root sequence. https://phabricator.apertis.org/T7616 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Feb 27, 2024
-
-
Ryan Gonzalez authored
Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
find_package_providing_path would try to look up the source package for every incoming file, even if the file doesn't actually exist on disk. This is largely useless, because dpkg-query only finds matches for *installed* packages anyway, so just skip calling it at all for non-existent files. Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
https://github.com/rust-lang/rust/pull/92024 appends a build-specific suffix to each compilation unit name in order to ensure they're all unique. Thus, in order to get the original filenames, we need to strip that suffix off. In order to ensure the SBOM contains the right paths, we also write the modified sources back to the bin2sources file. infrastructure/apertis-issues#456 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Nov 14, 2023
-
-
Ryan Gonzalez authored
The OBS builders don't have any source lists set up, so `apt-cache showsrc` never finds any results. Instead, we can rely on dpkg-query to extract the info, along with some adjustments to get the correct version value. https://phabricator.apertis.org/T9756 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Nov 03, 2023
-
-
Ryan Gonzalez authored
Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
This uses ldd to scan the shared libraries that the package depends on and save their source packages to the metadata. https://phabricator.apertis.org/T9756 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Oct 02, 2023
-
-
Ryan Gonzalez authored
dwarf2sources now writes information on "external files" that aren't CUs but are referenced by the binary, which lets us save the source packages that these external files came from. Note that the copyrights are not imported, because the current use case for this isn't tied to licensing. The number of external files means that querying the packages and their original source packages turns out to be rather slow. However, in general, multiple external files from a single package will be used, and the same source packages will be looked up repeatedly. Thus, we can just cache the full list of files for a package and binaries for a source package, then reuse that list repeatedly. https://phabricator.apertis.org/T9756 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Apr 04, 2023
-
-
Signed-off-by:
Apertis CI robot <noreply+not_a_robot@apertis.org>
-
Signed-off-by:
Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
-
- Mar 31, 2023
-
-
Ritesh Raj Sarraf authored
-
Niels Thykier authored
-
- Jun 21, 2022
-
-
Ryan Gonzalez authored
dwarf2sources failures are supposed to be ignored (hence the use of doit_noerror when invoking the command), but the recently added steps to extract copyright information with fail the build if the dwarf2sources result file is not found. In that case, just skip extraction altogether. https://phabricator.apertis.org/T8985 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Apr 18, 2022
-
-
Ryan Gonzalez authored
Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
This will copy the copyright and copyright_report files for any packages whose files are found inside the resulting binaries, making them available at `/usr/share/doc/PACKAGE/PACKAGE_external_copyrights_ARCH`. https://phabricator.apertis.org/T8554 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
Ryan Gonzalez authored
It's expanding from being just a dwarf2sources wrapper, so rename it accordingly. https://phabricator.apertis.org/T8554 Signed-off-by:
Ryan Gonzalez <ryan.gonzalez@collabora.com>
-
- Mar 10, 2022
-
-
Andre Moreira Magalhaes authored
Signed-off-by:
Andre Moreira Magalhaes <andre.magalhaes@collabora.com>
-
Andre Moreira Magalhaes authored
The bin2sources file may differ between architectures which may cause failures when trying to install the same packages for multiple archs (multiarch support) given they are installed in a arch independent directory. Fix that by adding the architecture as suffix to the file. Signed-off-by:
Andre Moreira Magalhaes <andre.magalhaes@collabora.com>
-
- Jul 15, 2021
-
-
Ritesh Raj Sarraf authored
Signed-off-by:
Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
-
Apertis CI robot authored
-
Niels Thykier authored
-
- Mar 25, 2021
-
-
Walter Lozano authored
Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Signed-off-by:
Ritesh Raj Sarraf <ritesh.sarraf@collabora.com>
-
Walter Lozano authored
* origin/debian/bullseye: Import Debian version 13.3.3
-
- Feb 03, 2021
-
-
Niels Thykier authored
debhelper (13.3.3) unstable; urgency=medium [ Niels Thykier ] * dh_installsysusers: Add systemd-sysusers as alternative provider in the ${misc:Depends} dependency as that is the name used by opensysusers. [ Translations ] * Update Portuguese translation (Américo Monteiro) (Closes: #981567) debhelper (13.3.2) unstable; urgency=medium * Team upload. [ Niels Thykier ] * cmake.pm: Correct parameter -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON passed to cmake in compat 14+. Thanks to Raul Tambre for reporting the issue. (Closes: #977255) * dh_strip: Fix wording. Thanks to Chris Leick and Pfannenstein Erik. * debhelper.pod: Fix typos. Thanks to Chris Leick and Pfannenstein Erik. * dh_makeshlibs: Ditto. * debian/control: Bump Standards-Versions to 4.5.1. No changes required. [ Axel Beckert ] * Extend dh_installdocs documentation on debian/$pkg.doc-base.* with regards to when deduplication does not work and may cause uninstallable packages. (Mitigates: #980903) [ Translations ] * Update German translation (Pfannenstein Erik) (Closes: #979608) debhelper (13.3.1) unstable; urgency=medium * d/control: Bump dependency on dwz to pull newer version of dwz in buster-backports, which makes backporting easier. Thanks to Anthony Fok for the patch and for backporting dwz. debhelper (13.3) unstable; urgency=medium [ Niels Thykier ] * dh_md5sums: When reading the conffiles file, ignore every line except those starting with a slash "/". * SequencerUtil.pm,dh_testroot: Let dh skip dh_testroot when the builder supports Rules-Requires-Root and it is set to "no". * Dh_Lib.pm: Provide a more helpful error message when lintian-overrides config files are executable by mistake. * dh_gencontrol: Discard the "Protected" field in dbgsym packages. Thanks to Axel Beckert for reporting the issue. (Closes: #976323) * dh_installsysusers: New tool to install and integrate sysusers into debian packaging. Thanks to Michael Biebl and Moritz Muehlenhoff for feedback and initial testing. (Closes: #962384) * d/control: Remove transitional package for dh-systemd. Thanks to Michael Biebl for poking reverse dependencies to migrate and getting us ready to remove it. (Closes: #871312) * cmake.pm: Pass VERBOSE=1 to make by default when building to ensure that gmock builds are also verbose. Thanks to Johannes Schauer for reporting the issue. (Closes: #973029) * Dh_Lib.pm: Disable "unicode_strings" feature, which caused issues with UTF-8 encoded files. Thanks to Sebastien Bacher for reporting the issue. (Closes: #971362) * dh_installinfo: Work around upstream installing the usr/share/info/dir file. If seen, dh_installinfo will now tag it as "installed" even though it is not installed. This avoids promoting the installation of the file by dh_missing only to have lintian tell people to remove it again. (Closes: #971036) [ Michael Biebl ] * autoscripts/postrm-systemd-reload-only: Run daemon-reload on "remove" only. debhelper (13.2.1) unstable; urgency=medium [ Niels Thykier ] * debian/changelog: Fix some typos in previous entries. * Dh_Lib.pm,Dh_Buildsystems.pm: Properly clear buildflags with --reload-all-buildenv-variables is passed. Thanks to Harald Welte and Guillem Jover for reporting and debugging the issue. (Closes: #966689) * dh_missing: Improve message about related files found. Thanks to Diego Escalante for reporting the issue. (Closes: #966834) [ Peter Pentchev ] * dh_installalternatives: Correct order of values in the example for Dependents links. (Closes: #966285) [ Chris Lamb ] * dh_missing: Sort order of missing files to make output deterministic. (Closes: #968187) [ Translations ] * Update Portuguese translation (Américo Monteiro) (Closes: #964784) debhelper (13.2) unstable; urgency=medium [ Niels Thykier ] * dh_missing: Explicitly remind people that they should not copy-waste multi-arch paths directly into debian/not-installed. Instead, recommend the use of wildcards of ${DEB_HOST_MULTIARCH} to replace the hardcoded value. * d/changelog: Clarify what dh_installman change in 13.1 related to #958343 was about. * Dh_Lib.pm: Add support for raising compat deprecation warnings to an error if there are pending removals. This currently triggers for usage of compat 5 and 6. * cmake.pm: Pass -DCMAKE_SKIP_RPATH=ON -DBUILD_RPATH_USE_ORIGIN=ON to cmake in compat 14. This should fix some reproducibility issues but may cause breakage if packages run binaries directly from the build directory. Thanks to Timo Röhling for the suggestion. (Closes: #962474) * dh,dh_auto_*: Change the handling of XDG_RUNTIME_DIR in compat 13. It is now only set to a writable directory for dh_auto_test but set to a much shorter directory avoid issues with socket lengths. In all other cases, the XDG_RUNTIME_DIR is now cleared. Thanks to Simon McVittie for the report. (Closes: #961655) * debhelper.pod: Document that --sourcedir clashes between dh_auto_* and dh_missing (etc.). Thanks to Thorsten Glaser for reporting the issue. (See #964230) * PROGRAMMING: Minor improvements and clarifications to the API documentation. [ Anel Husakovic ] * debhelper.7: Fix typo/grammatical errors. [ Translations ] * Update Portuguese translation (Américo Monteiro) (Closes: #962568) debhelper (13.1) unstable; urgency=low [ Niels Thykier ] * dh_installinitramfs: Remove misleading "in compat 12" as the behaviour was unrelated to the compat level. * dh_installinitramfs: Migrate to triggering update-initramfs via activate-noawait trigger (replacing maintscript calls to "update-initramfs -u", which had the same affect). (Closes: #822730). * dh_installman: Improve error messages and handling of broken section numbers. Notably, the auto-detection no longer picks section numbers that look suspiciously like a version number (or a date). This can cause dh_installman to reject manpages if it can no longer guess a suitable section for the manpage Thanks to Paul Gevers for reporting the bug. (Closes: #958343) * Dh_Lib.pm: Support that Architecture (among other fields) can be folded in d/control. Thanks to Thorsten Glaser for reporting the issue. (Closes: #958987) * SequencerUtil.pm: Fix use of uninitialized variable warning. * Dh_Lib.pm: Properly error out on paragraphs missing the Package field (rather than silently ignoring them). * debian/rules: Fix call to gen-provides that seemed to work more due to luck than by design. * Dh_Lib.pm: Provide HIGHEST_STABLE_COMPAT_LEVEL, which reflects the latest stable compat level. Thanks to Jelmer Vernooij for the suggestion. * Dh_Lib.pm: Respond to DH_DATAFILES environment variable in addition to DH_AUTOSCRIPTS as a means to find data files. This is mostly useful for testing purposes or to be "self-hosting". The new DH_DATAFILES is more general than DH_AUTOSCRIPTS and enable us to add new data file sources without inventing new environment variables. * Dh_Lib.pm: Require perl v5.24 (available in Debian oldstable) to enable more modern features. * Dh_Lib.pm: Fix a bug in variable substitution where ${Tab} incorrectly expanded to "\b" rather than "\t". * dh_installchangelogs: Loosely document which file names that dh_installchangelogs uses as guesses for finding an upstream changelog file. Thanks to Laurent Bigonville for suggesting the change. (Closes: #933224) * Dh_Lib.pm: When setting HOME or XDG_RUNTIME_DIR in compat 13, use an absolute path. Thanks to Dmitry Shachnev for reporting the issue. (Closes: #959731) * dh_installsystemd: Copy the description for the --no-stop-on-upgrade option from dh_installinit. * dh_installsystemd: Have --no-start or --no-stop-on-upgrade disable --restart-after-upgrade as the documentation says it will. Thanks to Axel Beckert for reporting the issue. (Closes: #959678) * dh_installinit: Ditto. * dh: Explicitly document that hook targets can cause complications when they are made unconditional by a makefile target and suggest alternatives. Thanks to Marcin Owsiany for reporting this. (Closes: #645873) * cmake.pm: Rollback -DCMAKE_AUTOGEN_VERBOSE=ON temporarily as it trips bhlc due to a bug in cmake. Thanks to Nicolas Braud-Santoni and "anoteng" for reporting the issue. (Closes: #959494) * dh_clean: Rephrase the description of dh_clean to avoid confusion about when it is run. Thanks to Hugh McMaster for the suggestion. (Closes: #960110) * dh_missing: Update documentation to reflect that the --fail-missing option is now the default in compat 13. Thanks to Hugh McMaster and Christoph Berg for the report. (Closes: #960107, #960697) * dh: Filter out the root-sequence in "--list" output and reject attempts to activate or deactivate the sequence as it is an implementation detail. * dh_installalternatives: New helper that can setup alternatives (update-alternatives) based on a declarative format. Currently, the format is converted to calls to update-alternatives, which are inserted into the maintscripts of the package. Thanks to David Engel and Fumitoshi UKAI for the original requests. (Closes: #43720) * dh_missing: Attempt to guess if missing files might be caused by the packager installing the same file via a different path and let them know of this. (Closes: #960781) [ Guillem Jover ] * autoconf.pm: Pass --disable-option-checking to ./configure scripts to avoid warnings about unknown options. (Closes: #942813) [ Translations ] * Fix typo in German translation. (Andreas Bombe) debhelper (13) unstable; urgency=medium [ Niels Thykier ] * debian/changelog: Fix typo of a bug number in the 12.10 entry. Thanks to Andy Caldwell for reporting it. * Dh_Lib.pm: Flag compat 9 as deprecated as announced in https://lists.debian.org/debian-devel-announce/2020/02/msg00000.html * dh_install: Remove trailing slashes from value to the --sourcedir parameter. This avoids dh_install computing an incorrect directory name. Thanks to Mihai Moldovan for reporting the issue. (Closes: #955568) * dh_missing: Ditto. * SequencerUtil.pm/dh: Fix bug where the long forms of --builddirectory and --sourcedirectory might be ignored by dh causing it to skip dh_auto_* when it should not. This is in practice only a problem in compat 13 as long form of arguments are not optimized in compat 12 or earlier. [ Chris Leick ] * debhelper.pod: Fix typos. * dh_makeshlibs: Ditto. * dh: Ditto. [ Helmut Grohne ] * perl_makemaker.pm: Add missing import of "warning" function. debhelper (12.10) unstable; urgency=medium [ Niels Thykier ] * dh_installsystemd: Improve documentation about tmpfiles that are now handled by dh_installtmpfiles in compat 13. * dh_installtmpfiles: Prefer debian/package.tmpfiles over debian/package.tmpfile, but accept the old path with a warning. Thanks to Michael Biebl for suggesting the change. * dh_strip: Automatically strip Link-Time Optimization (LTO) symbols from static archives. The format is not stable between compiler versions. Thanks to Matthias Klose for the suggestion and for providing the exact options. (Closes: #939656) * dh: Tweak the command-skipping optimization to skip commands in a few more cases when the command is known not to react to command line options. * dh,dh_installsytemd*: Work around broken NOOP promise caused by dh_installsystemd* using nonstandard "package@" prefix for pkgfiles. Thanks to Badreddin Aboubakr and Andy Caldwell for reporting it. (Closes: #950723, #951820) [ Nicholas Guriev ] * cmake: Verbose autogen rules. * cmake: Skip install all dependency with compatibility level 13 and above. [ Andy Caldwell ] * dh_installsystemduser: Fix bug that prevented dh_installsystemduser from installing parameterized services. (Closes: #951819) [ Translations ] * Update German translation (Chris Leick) (Closes: #951917) debhelper (12.9) unstable; urgency=medium [ Niels Thykier ] * debhelper.7: Clarify how DH_OPTIONS works and that some third-party tools may ignore it if they do not support it. Thanks to Andrej Shadura for reporting the issue over IRC. * doc/PROGRAMMING: Introduce a section on the NOOP PROMISE comment. * dh: In compat 13, skip calls to hook and override targets for dh_auto_test, dh_dwz and dh_strip. Thanks to Mike Hommey for suggesting it. (Closes: #568897) * Dh_Getopt.pm: Remove support for "--ignore". No package uses it any more. For most parts, it has been replaced by the "3.0 (quilt)" source format. * debian/changelog: Clarify that substitutions change in 12.8 only apply to the maintscript file (and not maintainer scripts) for dh_installdeb. * debhelper.7: Improve text in compat 13 section. * autoconf.pm: Only consider "configure" as an autoconf script if it is a file (and not a directory). Thanks to Andrius Merkys for reporting the bug and providing a patch. (Closes: #949396) * debian/control: Bump Standards-Version to 4.5.0 - no changes required. * dh_shlibdeps: Pass "--" in front of filenames passed to file(1). Thanks to Christoph Biedl for the suggestion. (Closes: #949538) * dh_strip: Ditto * dh.1: Improve documentation for override targets and include a section on the new hook target. (Closes: #885994) * Dh_Lib.pm: Make it possible to disable the command logging by passing "inhibit_log => 1" to the init sub. Furthermore, the logging is now only enabled when init is called (and not disabled by that option or inhibit_log()). This prevents Dh_Lib from triggering a log write just by being loaded. * dh: Refactor addon loading. As a side-effect, dh no longer leaks as many functions into the scope of addons. Addons depending on the previous behaviour may now fail due to calls to undefined subroutines and will need to be fixed. * dh_installinitramfs.1: Correct the name of localized versions of dh_installinitramfs so that man can find them. [ Thorsten Glaser ] * dh_auto_*: Make it possible to disable build systems by passing --buildsystem=none. Previously this would require overriding each and every dh_auto_* tool. (Closes: #949635) debhelper (12.8) unstable; urgency=medium [ Niels Thykier ] * Dh_Lib.pm: Simplify internal logging of which commands have been run. We are no longer interested in whether it was an override target or not. * dh: Support "execute_before_X" and "execute_after_X" targets in debian/rules. This is useful for injecting commands before or after the command "X" that dh runs. Note this feature requires compat 10 or later due to internal limitations in debhelper. Attempts to use it in compat 9 will trigger an error. Thanks to Christoph Berg for the suggestion. (Closes: #885994) * dh: Detect and warn about override and hook targets for known obsolete commands. In compat 13, this will be an error instead of a warning. * dh: Reset umask to 0022 as a consistent default value. Thanks to Thorsten Glaser for the suggestion. (Closes: #944691) * dh_missing: The --fail-missing parameter is now default in compat 13. Thanks to Mattia Rizzolo for the suggestion. (Closes: #917368) * dh_installtmpfiles: New command extracted from dh_installsystem that will handle tmpfiles.d configuration. Thanks to Michael Biebl for the suggestion. (Closes: #944478) * dh_installsystemd: In compat 13, this command will no longer manage tmpfiles.d configuration. * dh: Run dh_installtmpfiles by default in compat 13. * Dh_Lib.pm: Emit "error" and "warning" with error and warning messages. Thanks to Paul Wise for the suggestion. (Closes: #906723) * Dh_Lib.pm: Support colored output for warnings and errors (enabled by default). The colors can be controlled by setting DH_COLORS or DPKG_COLORS. The latter will also affect dpkg-related tools. Note: NO_COLOR is respected in the absence of DH_COLORS and DPKG_COLORS. * Dh_Lib.pm: Support substitution variables in files handled by filearray and filedoublearray in compat 13. This also applies to executable configuration files. As the substitution occurs after splitting the files into tokens, it can be used to include spaces in the tokens (often file names). (Closes: #198507) * dh_install: Support substitution configuration files. * dh_clean: Ditto. * dh_installcatalogs: Ditto. * dh_installdeb: Ditto (debian/*.maintscripts only). * dh_installdirs: Ditto. * dh_installdocs: Ditto. * dh_installexamples: Ditto. * dh_installinfo: Ditto. * dh_installman: Ditto. * dh_installwm: Ditto. * dh_link: Ditto. * dh_missing: Ditto. * dh_ucf: Ditto. * debian/rules: Remove override for dh_missing as the --fail-missing parameter is default now. [ Helmut Grohne ] * Warn about missing perl-xs-dev for perl_* buildsystems. debhelper (12.7.3) unstable; urgency=medium [ Niels Thykier ] * dh_perl: Use perl:any for perl module in addition to perl programs. Thanks to Helmut Grohne and Niko Tyni for the suggestion and analysis. (Closes: #946655) * dh_gencontrol: Clear the "Built-Using" flag for dbgsym packages. It is irrelevant as the original binary will have the field plus the field can cause lintian warnings. (Closes: #947506) * lintian-overrides: Override no-dh-sequencer as it is a false-positive that lintian cannot be expected to know. [ Debian Janitor ] * Fix day-of-week for changelog entry 4.0.0. debhelper (12.7.2) unstable; urgency=medium [ Niels Thykier ] * dh: Skip conditional dh sequence addons in the clean target. This avoids FTBFS with conditional addons where the build-dependency is not satisfied. (Closes: #944225) * meson.pm: Fix bug where dh_auto_test would break horribly under compat 13 due to an uninitialized variable. Thanks to Benjamin Jacobs for reporting the issue. (Closes: #945149) * dh_installman: Fix non-deterministic behaviour when there multiple definitions of the same manpage in a package. In compat 13, this is resolved by aborting with an error. In older compat levels, dh_installman will deterministically pick a canonical version (via sort) along with emitting a warning. Thanks to Colin Watson for reporting the issue. (Closes: #943705) * dh_auto_*: In compat 13+, reset HOME and XDG_* environment variables. Some are cleared and some are set to a writable directory that persist until dh_clean. Thanks to Simon McVittie for reporting the issue. (Closes: #942111) * dh_auto_*: As a side-effect of the above, debhelper in compat 13+ no longer trips a FTBFS in sbuild for meson packages when ccache is installed but not configured/used explicitly. Thanks to Simon McVittie for reporting the issue. (Closes: #933799) * d/control: Bump Standards-Versions to 4.4.1 - no changes required. [ Andrius Merkys ] * debhelper.pod: Document changes to the gradle third-party build system in compat 13. [ Translations ] * Update German translation (Chris Leick) (Closes: #943853) debhelper (12.7.1) unstable; urgency=medium [ Colin Watson ] * dh_installman: Correctly handle compressed manpages when dh_installman uses man-recode. (Closes: #943376) debhelper (12.7) unstable; urgency=medium [ Niels Thykier ] * dh_installman: Avoid error message when man-db is not installed (only occurs in debhelper's own build as man-db is a mandatory dependency). * dh_installman: Use man-recode(1) when available to massively speed up re-encoding performance for any package with a non- trivial amount of manpages. Thanks to Robert Luberda for reporting the issue and Colin Watson for writing man-recode (Closes: #933576) * debhelper.pod: Actively discourage compat 11 as it has an issue that causes services not to start correctly in all cases (e.g. install, remove-but-not-purge, install again), which cannot be fixed. * dh_auto_*: Support a new --reload-all-buildenv-variables option for resetting the cache (of e.g. dpkg-buildflags). This is needed by e.g. parted which does two builds with different CFLAGS. * dh_makeshlibs: Suggest/Document that --no-add-udeb can be relevant for some udebs where the shared library for the udeb is embedded in a different package (e.g. the main udeb package). Thanks to Nicolas Braud-Santoni for reporting the issue. (Closes: #942454) * meson.pm: Fix invalid call under compat 13. Thanks to Jeremy Bicha for testing it. (Closes: #942690) [ Helmut Grohne ] * cmake buildsystem: Fix CMAKE_SYSTEM_PROCESSOR for 32bit arms. (Closes: #941245) [ Niko Tyni ] * Basic support cross building XS modules: + perl_makemaker: run Makefile.PL with host arch Config.pm + perl_build: run Build.PL and Build with host arch Config.pm + dh_perl: scan host arch include directories for Perl plugins debhelper (12.6.1) unstable; urgency=medium * Upload to unstable now that libdebhelper-perl has been through the NEW queue. debhelper (12.6) experimental; urgency=medium [ Niels Thykier ] * dh_makeshlibs: Fix regression where versionless SONAMEs could trigger a rejection of the "generated" shlibs file (despite dh_makeshlibs not generating any "shlibs" files). (Closes: #939635) * dh_strip: Avoid impossible copy of .../debug/.dwz/ to itself when a manual debug package contained ELF files and was processed by dh_dwz before dh_strip. (Closes: #939164) [ Sven Joachim ] * Split debhelper into debhelper (the tools) and libdebhelper-perl (the Perl libraries). (Closes: #821130) * d/rules: Call dh_missing --fail-missing to catch bugs where files are not installed anywhere. debhelper (12.5.4) unstable; urgency=medium * dh_installxfonts: Remove version in dependency on xfonts-utils added to ${misc:Depends}. The version requirement has been satisfied for the past 3-4 releases. * dh_makeshlibs: Correct a control check that was only intended for automatic udeb detection, which incorrectly also checked when --add-udeb was passed. Thanks to Andreas Metzler for reporting the issue. (Closes: #935577) * dh: Fix bug where overrides for dh_dwz, dh_strip, dh_makeshlibs or dh_shlibdeps could be triggered via binary-indep in compat 12 and earlier. Thanks to Andreas Beckmann for reporting the issue. (Closes: #935780) debhelper (12.5.3) unstable; urgency=medium * Dh_Getopt.pm: Skip compat call if d/control cannot be found and just assume that auto-abbreviation can be disabled in that case. This avoids breaking options such as --help and --list. (Closes: #935017) * Dh_Lib.pm: Jump to hoops to only parse the Build-Dependency field in dh without breaking dh's own --list or --help parameter. This fixes a regression since 12.5 where dh's --help and --list options were broken. * dh_builddeb: Revert removal of --destdir for now. It is in fact used to hardcode paths in some cases e.g. v4l2loopback's debian/rules.modules. * dh_makeshlibs: Disable auto-filtering of udeb libraries. It cannot be implemented without violating the requirements for the noudeb build-profile. * dh_makeshlibs: Fix invalid error under the noudeb profile where the absence of udeb content is expected rather than an in issue. (Closes: #934999) debhelper (12.5.2) unstable; urgency=medium * dh_makeshlibs: Fix regression in compat 10 and earlier where dh_makeshlibs now failed on error. This safety check was intended to be a compat 11 or later feature. * dh: Ensure addon API functions return 1 to avoid gratuitous breakage of addons due to perl's idiosyncrasy of requiring a truth value at the end of modules. (See #935016) debhelper (12.5.1) unstable; urgency=medium * dh_installdeb: Allow "+" to appear in token names as it is a valid character for package names. * dh_installdeb: Reject invalid token names passed to -D or --define (in most cases). * dh_makeshlibs: Fix bug in -X where it would no longer match as expected. A regression since 12.5 - thanks to Aurelien Jarno for reporting the issue over IRC. debhelper (12.5) unstable; urgency=medium [ Niels Thykier ] * dh_strip: Skip stripping of guile-2.2 files by skipping all all files matching "/guile/.*\.go$". Thanks to Jeremy Bicha and Rob Browning. (Closes: #907061) * dh_auto_*: Officially adopt --sourcedir and --builddir as official parameters. They have always worked since debhelper defaulted to supporting auto-abbreviated parameters, so this is simply documenting fait accompli for the most common abbreviation. * dh_*: Disable auto-abbreviation of command line parameters in compat 13. * dh: Optimize out redundant helpers even when passed long options in compat 13. * dh_builddeb: Remove --destdir. It has never been useful as everyone expects the debs to be placed in "..". * Dh_Lib.pm: Add a hint to resolve the error caused by having the compat level specified both as a build-dependency and in debian/compat. Thanks to Alessandro Grassi for reporting the issue on IRC. * dh_makeshlibs: Fix bug where --no-add-udeb could trigger the auto-detection code. (Closes: #934891) * dh_makeshlibs: When using the auto-detection of udeb, automatically exclude "udeb:" lines for libraries omitted from the udeb. At the same time, verbosely fail if the udeb contains a library not present in the deb (overridable with --add-udeb). (Closes: #934889) * dh: Support making "dh-sequence-ADDON" Build-Depends relation conditional on build-profiles (etc.). If the relation is ignored due to the current build-profiles (etc.), then addon is silently skipped. * dh: Support running addons in "arch-only" or "indep-only" mode by adding "dh-sequence-ADDON" in Build-Depends-Arch or Build-Depends-Indep (respectively). Not all addons support this and will trigger an error at load time. Addon providers should ensure that their package provide "dh-sequence-ADDON" and review the doc/PROGRAMMING document (in the debhelper source) if they are considering to make their addon compatible with these requirements. (Closes: #836699) * dh,elf_tools.pm: Extract the ELF related debhelper tools (dh_strip, dh_dwz, dh_makeshlibs, dh_shlibdeps) into their own addon called "elf-tools" enabled by the default. * debian/control: Provide dh-sequence-elf-tools. * dh: In compat 13, the "elf-tools" addon is considered an implicit "arch-only" addon (i.e. they are only available in "-arch" sequences and are always passed a "-a"). If you need the ELF tools for arch:all packages, please add an explicit Builds-Depends on dh-sequence-elf-tools. [ Frank Schaefer ] * dh_installmodules: Also look for compressed kernel modules in addition to uncompressed kernel modules (gz, bz2 or xz). [ Adam Borowski ] * d/s/lintian-overrides: Override lintian warning about debhelper not using debhelper. debhelper (12.4) unstable; urgency=medium * dh: Retroactively remove support for manual dh sequence operators (--until, --after, --before and --remaining). This breaks about 8 source packages that still rely on this feature and have not yet migrated away. (Closes: #932537) Please see the debhelper bug for relevant bug numbers and package names. debhelper (12.3) unstable; urgency=medium [ Translations ] * Update Portuguese translation (Américo Monteiro) (Closes: #927394) [ Niels Thykier ] * dh_installsystemduser: Fix bug that would neuter sorting of unit files and make the resulting maintscripts unreproducible. Thanks to Daniel Kahn Gillmor for reporting the bug. (Closes: #932646) * dh_dwz: Remove the -q flag when calling dwz(1). It is sufficiently silently with -q and aids with debugging for others. (Closes: #933561, #931792) * dh_dwz: Gracefully handle when dwz fails to create a multifile but succeeds anyway by default. The previous behaviour of insisting on a multifile can be obtained by explicitly passing --dwz-multifile. (Closes: #933541) * dh_dwz: Skip multifile generation for udeb packages. (Closes: #933212) * dh_makeshlibs: Attempt to automatically detect udeb packages for a given (non-udeb) library package. In simple cases, it can replace the need for an explicit --add-udeb parameter. However, there are many cases where the auto-detection falls short and --add-udeb is still needed (see dh_makeshlibs(1) for details). Packagers are advised to verify the resulting shlibs file before removing --add-udeb in an upload. debhelper (12.2.3) unstable; urgency=medium * dh_installinit: Revert "Fail with an error if --name is given but there is no matching init script.". (Closes: #932073, Reopens: #462389) * Dh_Getopt.pm: Produce a better error message when -p<pkg> is ignored in an architecture constrained override (e.g. during an architecture specific build and the -p argument refers to an arch:all package). Thanks to Helmut Grohne for reporting the issue. (Closes: #932262) debhelper (12.2.2) unstable; urgency=medium * dh_shlibdeps: Remove regex anchor when parsing file(1) to avoid regressions with setuid/setgid binaries. Thanks to James Cowgill for reporting the issue. (Closes: #932240) * dh_strip: Ditto. debhelper (12.2.1) unstable; urgency=medium [ Dmitry Bogatov ] * dh_installinit: Fix regression where dh_installinit bailed out on --name if only one of the acted on packages had an init script file. Thanks to Helmut Grohne for reporting the issue. (Closes: #932073) debhelper (12.2) unstable; urgency=medium [ Niels Thykier ] * Dh_Lib.pm: Ensure the error function always triggers the same exit code on termination. Previously, it depended on the value of the last error (if any). * Buildsystem/make: Fix regression where cross-flags were passed in a non-cross build. (Closes: #925175) * dh_perl: Fix code to prune (skip) /usr/share/doc which never worked. * doc/PROGRAMMING: Document that the environment variable DH_AUTOSCRIPTDIR can be used for testing purposes to shadow existing or test new autoscript snippets. Thanks to Dmitry Bogatov for the suggestion. (Closes: #925281) * dh_compress: Exclude .haddock and .hs files (as this is customary for haskell packages). * dh_installinfo: Update NOOP PROMISE to account for dh_missing's needs. Thanks to Daniel Kahn Gillmor for reporting the issue. (Closes: #930689) * debhelper.pod: Document that debhelper will use dpkg-buildflags for setting CFLAGS et al and that it is recommended to rely on dpkg-buildflags's features for extending the default. (Closes: #923626) * dh_strip: Make dh_strip more robust with issues from file(1). Thanks to Christoph Biedl for reporting the issue. (Closes: #931995) * dh_shlibdeps: Pass --brief to file(1) and anchor the output parsing regex to avoid false-positive misdetections. Thanks to Christoph Biedl for the suggestion. (Closes: #931996) * dh_strip: Ditto. * dh_installman: Improve documentation to be more clear about exactly which new features dh_installman got in compat 11. Thanks to Laurent Bigonville for pointing out the issue. (Closes: #912999) * dh_strip: Pass --no-sandbox to file(1) when run under fakeroot and file(1) appear to support the option. Thanks to Christoph Biedl for requesting the feature. (Closes: #932006) * Dh_Lib.pm: Support substituting additional variables into the generated maintainer scripts. These include DEB_(BUILD|HOST|TARGET)_* and ENV.* which point to the variables from dpkg-architecture(1) and variables from the environment (respectively). * dh_installdeb: Support additional substitution variables on the commandline via -DTOKEN=VALUE to replace #TOKEN# with VALUE. (Closes: #25235) * d/control: Bump Standards-Version to 4.4.0 - no changes required. [ Helmut Grohne ] * Buildsystem/cmake: Fix CMAKE_SYSTEM_PROCESSOR for mips64el. (Closes: #926815) [ Dmitry Bogatov ] * dh_installinit: Fail with an error if --name is given but there is no matching init script. Thanks to A Mennucc for reporting the issue. (Closes: #462389) [ Translations ] * Update Portuguese translation (Américo Monteiro) (Closes: #886279)
-
- Jan 12, 2021
-
-
Walter Lozano authored
Release commit for debhelper version 12.1.1co2 Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
Currently dh_installdocs doesn't handle properly installing the license scan report when the package is a virtual one which uses a link to the actual data causing a build error. In order to fix the issue move the installation of the report after validating the destination folder. The only additional consequence is that this process will not be performed if the package is udeb or if the installation is skipped. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Dec 16, 2020
-
-
Walter Lozano authored
Release commit for debhelper version 12.1.1co1 Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
- Dec 14, 2020
-
-
Walter Lozano authored
As part of the installation process install also the license scan report which is located in debian/apertis/copyright. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-
Walter Lozano authored
As some packages overrides default dh rules hook the dh_dwarf2sources script in dh_dwz and dh_strip. It is necesary to do the hook in both as dh_dwz only runs when !compat(11) and after running might tweak the DWARF debug information in a way that makes difficult to extract the list of source file names.
-
Walter Lozano authored
To provide a list of source file names used to build binaries add a new debhelper script which uses dwarf2sources to extract the list from DWARF debug information. This script runs before dh_dwz and dh_strip as they manipulate or remove the DWARF debug information. Also allow the possibility to disable this feature by adding nodwarf2sources to DEB_BUILD_OPTIONS. Signed-off-by:
Walter Lozano <walter.lozano@collabora.com>
-