ubuntu-defaults-builder doesn't build and doesn't generate depends/recommends in Ubuntu 18.04 and newer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Default settings and artwork for Baltix OS |
Triaged
|
Critical
|
Mantas Kriaučiūnas | ||
ubuntu-defaults-builder (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The package fails to build in bionic, artful and newer, as far as I can tell because dh_ubuntu_defaults uses deprecated perl features:
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE distro_
debian/rules:7: recipe for target 'override_
make[4]: *** [override_
I've patched bin/dh_
--- /usr/bin/
+++ bin/dh_
@@ -97,7 +97,7 @@
while (/\$\{(\w+)\}/) {
my $var = $1;
error "unknown macro: $var" unless exists $macros{$var};
- s/\${$var}
+ s/\$[{]
}
push @lines, $_;
Now tests doesn't fail, but when I build defaults package dh_ubuntu_defaults doesn't generate depends/recommends in Ubuntu 18.04 and newer if there is a folder "ubiquity-
dh_install
dh_ubuntu_defaults --disable-
dh_ubuntu_defaults: doit() + doit_*() calls will no longer spawn a shell in compat 12 for single string arguments (please use complex_doit instead)
dh_ubuntu_defaults: This feature will be removed in compat 12.
dh_ubuntu_defaults: doit() + doit_*() calls will no longer spawn a shell in compat 12 for single string arguments (please use complex_doit instead)
dh_ubuntu_defaults: This feature will be removed in compat 12.
dh_ubuntu_defaults: doit() + doit_*() calls will no longer spawn a shell in compat 12 for single string arguments (please use complex_doit instead)
dh_ubuntu_defaults: This feature will be removed in compat 12.
make[1]: Leaving directory '/home/
dh_installdocs
dh_installch
dh_installgs
dh_icons
dh_perl
dh_configpackage
dh_link
dh_strip_
dh_compress
dh_fixperms
dh_missing
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: Depends field of package ubuntu-
dpkg-gencontrol: warning: Recommends field of package ubuntu-
I'd rather someone who knew perl better than me take a look at this.
summary: |
- ftbfs in artful + ubuntu-defaults-builder doesn't build and doesn't generate + depends/recommends in Ubuntu 18.04 and newer |
tags: | added: bionic focal perl |
description: | updated |
description: | updated |
description: | updated |
Changed in baltix-default-settings: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Mantas Kriaučiūnas (mantas) |
Status changed to 'Confirmed' because the bug affects multiple users.