-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian 11 Source DKMS Build Fails Due to 'alien' and 'dh' #11650
Comments
I've noticed this same error in the truenas/zfs CI builds for TrueNAS SCALE. Strangely, the same commit was previously building just fine, but upon rebuilding today, it fails. Here it was working 9 days ago: https://github.com/truenas/zfs/actions/runs/569652024 And here is the same commit failing today: https://github.com/truenas/zfs/actions/runs/549063961 |
Disregard the top bit, it's inaccurate, skip to "One more edit"
So something about the specific combination of alien+debhelper versions is required for this breakage; either version on its own is not sufficient. Unfortunately, this doesn't exactly narrow down who's to blame, and manually invoking alien with --veryverbose isn't verbose enough to reveal what's being done differently. edit: Well, after a quick hackaround to examine the generated debian/rules from alien 8.95.3 and alien 8.95, alien 8.95.3 generates just a call to "dh" for most commands, while 8.95 generates a more explicit debian/rules that does not invoke "dh", just various helpers. Also, I may be mad, because I just tried alien 8.95.3 and debhelper 12.1.1 again, and it broke. :( So I guess this is a bug in alien, and should probably be reported as such, except alien is orphaned and in need of a new maintainer in Debian, so it's not particularly likely to get fixed anytime soon? One more edit: It seems like the bug is that alien is emitting, in debian/rules:
when what it wants to be emitting is:
Patching debian/rules in an emitted debian/ directory from alien lets the package build successfully. The actual patch to alien is pretty simple too:
one final edit: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983492 |
I am experiencing this problem in Debian bullseye/testing, as well. I get this right after
Here's the package versions:
It didn't help my problem with Debian that I copied the directories to an Ubuntu machine and finished compiling there, but at least it got done. |
I don't recommend trying to actually patch it that way, I just did it while debugging. The simplest way to fix this would be to patch /usr/share/perl5/Alien/Package/Deb.pm with the patch outlined in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983492 . edited to add: I am pretty surprised that running alien on an Ubuntu system worked; AFAICT they have the same bug in their alien source tree. |
@rincebrain I've recently been trying to use an alien version built with your suggested patch, but it seems the debs generated have installed the headers in /include instead of /usr/include. I'm thinking there may be other problems with this version of alien, even if things do at least build now. |
@freqlabs Neat. I'm 95% sure that's not the patch's fault, given its simplicity, so I wonder how it's broken. I'll see if I can reproduce that. |
Reverting 9b5622f8f289613ce806f390aa8fa4622d2a9a5c in https://salsa.debian.org/debian/alien works. |
also, it would be nice to just not use alien for making debian packages. debian |
@freqlabs I created a patch which fixes this for me, you can find it attached to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985835 . I'm not entirely happy with it, but it works. |
I can confirm that building the DEB packages now works again in Debian 11 Bullseye RC1! The upstream issue with |
System information
Describe the problem you're observing
On a fresh installation of Debian 11 Testing (currently in a Soft Freeze), it is impossible to build the required *.deb packages due to an error with
alien
(which actually shows an error fromdh
). Apparently the build process first creates RPMs (regardless of the distribution) and then tries (and fails) to convert them to other formats.On a somewhat related note, I was able to build OpenZFS 2.0.0 in the past on Debian 10 Buster/Stable without any issues.
Describe how to reproduce the problem
I am following the Debian and Ubuntu DKMS installation guide. Download OpenZFS 2.0.3 on Debian 11 and build with these settings:
Include any warning/errors/backtraces from the system logs
Here is the actual error reported by the
make
command:This error also occurs when using the
alien
command manually. Is this the official alien project? It has been untouched since 2011.As an alternative, I tried using fpm but it failed to properly convert the packages. Various errors existed with the *.deb packages it created.
The text was updated successfully, but these errors were encountered: