[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983492: alien incorrectly generates debian/rules



Package: alien
Version: 8.95.3
Severity: important

Dear Maintainer,

It appears, sometime between 8.95 and 8.95.3, alien started generating incorrect debian/rules output, resulting in it being unable to convert at least RPMs[1] into DEBs successfully (though I'm guessing it broke everything.)

In particular, it generates debian/rules that look like:

%:
        dh

when the clear intention from reading the source is to generate:

%:
        dh $@

The patch below corrects this behavior, and allows alien to correctly generate DEBs in at least the RPM packages I was testing with.

--- ./blib/lib/Alien/Package/Deb.pm.old 2021-02-24 20:25:49.896411306 -0500
+++ ./blib/lib/Alien/Package/Deb.pm     2021-02-24 20:26:06.868446646 -0500
@@ -472,7 +472,7 @@
 PACKAGE=\$(shell dh_listpackages)

 %:
-       dh $@
+       dh \$\@

 override_dh_clean:
        dh_clean -d


Hopefully someone will apply this at some point, though I'm aware alien is currently unmaintained.

- Rich

[1] - cf. https://github.com/openzfs/zfs/issues/11650 

-- System Information:
Debian Release: 10.8
  APT prefers stable
  APT policy: (1000, 'stable'), (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (500, 'stable-updates'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-13-amd64 (SMP w/16 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages alien depends on:
ii  cpio       2.12+dfsg-9
ii  debhelper  12.1.1
ii  dpkg-dev   1.19.7
ii  make       4.2.1-1.2
ii  perl       5.28.1-6+deb10u1
ii  rpm        4.14.2.1+dfsg1-1
ii  rpm2cpio   4.14.2.1+dfsg1-1

alien recommends no packages.

Versions of packages alien suggests:
ii  bzip2            1.0.6-9.2~deb10u1
ii  lintian          2.15.0
ii  lzma             9.22-2.1
ii  patch            2.7.6-3+deb10u1
ii  xz-utils [lzma]  5.2.4-1

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/perl5/Alien/Package/Deb.pm (from alien package)


Reply to: