Public bug reported:

Hi,
I'm trying to rebuild a traditional server installer, therefore I've to build 
Debian-Installer udeb Packages. But this does not work with debhelper 
13.6ubuntu1 on the actual ubuntu 22.04 prerelease. I found the root cause: It's 
ubuntu specific patch on debhelper described in debian changelog as "Imply 
'<!noudeb>' profile if not set on package type udeb". I reverted that patch and 
now the build of udebs works again.

Greetings,
André

######################
Reverting the buggy ubuntu specific patch
######################
--- Dh_Lib.pm.orig      2022-03-22 21:27:31.984788688 +0100
+++ Dh_Lib.pm   2022-03-22 21:27:51.352850840 +0100
@@ -1974,9 +1974,6 @@
                                }
 
                                $package_types{$package} = 
_strip_spaces($field_values{'package-type'} // 'deb');
-                if ($package_types{$package} eq 'udeb' and 
!defined($build_profiles)) {
-                       $build_profiles = '<!noudeb>';
-                }
                                $package_arches{$package} = $arch;
                                $package_multiarches{$package} = 
_strip_spaces($field_values{'multi-arch'} // '');
                                $package_sections{$package} = 
_strip_spaces($field_values{'section'} // $source_section);;

#####################
Howto reproduce the bug:
#####################
$wget 
http://deb.debian.org/debian/pool/main/p/partman-auto-raid/partman-auto-raid_47.dsc
$wget 
http://deb.debian.org/debian/pool/main/p/partman-auto-raid/partman-auto-raid_47.tar.xz
$dpkg-source -x partman-auto-raid_47.dsc
$cd partman-auto-raid-47/
$dpkg-buildpackage -us -uc -A
dpkg-buildpackage: info: source package partman-auto-raid
dpkg-buildpackage: info: source version 47
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Holger Wansing <hwans...@mailbox.org>
 dpkg-source --before-build .
 fakeroot debian/rules clean
dh clean --with d-i
dh: warning: No packages to build. Possible architecture mismatch: amd64, want: 
all
 debian/rules build-indep
dh build-indep --with d-i
dh: warning: No packages to build. Possible architecture mismatch: amd64, want: 
all
 fakeroot debian/rules binary-indep
dh binary-indep --with d-i
dh: warning: No packages to build. Possible architecture mismatch: amd64, want: 
all
 dpkg-genbuildinfo --build=all -O../partman-auto-raid_47_all.buildinfo
dpkg-genbuildinfo: error: binary build with no binary artifacts found; 
.buildinfo is meaningless
dpkg-buildpackage: error: dpkg-genbuildinfo --build=all 
-O../partman-auto-raid_47_all.buildinfo subprocess returned exit status 255

########################
After applying my patch, i.e. reverting the ubuntu specific patch
#######################
$wget 
http://deb.debian.org/debian/pool/main/p/partman-auto-raid/partman-auto-raid_47.dsc
$wget 
http://deb.debian.org/debian/pool/main/p/partman-auto-raid/partman-auto-raid_47.tar.xz
$dpkg-source -x partman-auto-raid_47.dsc
$cd partman-auto-raid-47/
$dpkg-buildpackage -us -uc -A
dpkg-buildpackage: info: source package partman-auto-raid
dpkg-buildpackage: info: source version 47
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Holger Wansing <hwans...@mailbox.org>
 dpkg-source --before-build .
 fakeroot debian/rules clean
dh clean --with d-i
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_di_kernel_gencontrol
   dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in 
use)
 debian/rules build-indep
dh build-indep --with d-i
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_di_kernel_gencontrol -i
   dh_update_autotools_config -i
 fakeroot debian/rules binary-indep
dh binary-indep --with d-i
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_testroot -i
   dh_prep -i
   dh_auto_install --destdir=debian/partman-auto-raid/ -i
dh_auto_install: warning: Compatibility levels before 10 are deprecated (level 
9 in use)
   dh_install -i
dh_install: warning: Compatibility levels before 10 are deprecated (level 9 in 
use)
   dh_di_kernel_install -i
   dh_di_numbers -i
dh_di_numbers: warning: Compatibility levels before 10 are deprecated (level 9 
in use)
   dh_installdocs -i
dh_installdocs: warning: Compatibility levels before 10 are deprecated (level 9 
in use)
   dh_installchangelogs -i
   dh_installdebconf -i
   dh_perl -i
   dh_link -i
   dh_strip_nondeterminism -i
   dh_compress -i
dh_compress: warning: Compatibility levels before 10 are deprecated (level 9 in 
use)
   dh_fixperms -i
   dh_missing -i
dh_missing: warning: Compatibility levels before 10 are deprecated (level 9 in 
use)
   dh_installdeb -i
   dh_gencontrol -i
   dh_md5sums -i
   dh_builddeb -i
dpkg-deb: building package 'partman-auto-raid' in 
'debian/.debhelper/scratch-space/build-partman-auto-raid/partman-auto-raid_47_all.deb'.
        Renaming partman-auto-raid_47_all.deb to partman-auto-raid_47_all.udeb
 dpkg-genbuildinfo --build=all -O../partman-auto-raid_47_all.buildinfo
 dpkg-genchanges --build=all -O../partman-auto-raid_47_all.changes
dpkg-genchanges: info: binary-only arch-indep upload (source code and 
arch-specific packages not included)
 dpkg-source --after-build .
dpkg-buildpackage: info: source-only upload: Debian-native package

** Affects: debhelper (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1965984

Title:
  Cannot build udeb with debhelper 13.6ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debhelper/+bug/1965984/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to