Package: alien
Version: 8.95.3
Severity: important
Tags: patch
X-Debbugs-Cc: rincebr...@gmail.com

Dear Maintainer,

alien incorrectly copies files when it's generating packages on my system, 
resulting in packages
where instead of, say, /usr/include/... and /usr/sbin/..., it puts things in 
/include/... and 
/sbin/...

I've created a patch, which I'm not entirely happy with, that fixes it for the 
test case I was
reproducing it on (generating deb packages from the upstream zfsonlinux source 
packages, which
use alien to turn their generated rpms into debs).

Thanks,
- Rich Ercolani

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.11.8 (SMP w/6 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages alien depends on:
ii  cpio       2.13+dfsg-4
ii  debhelper  13.3.4
ii  dpkg-dev   1.20.7.1
ii  make       4.3-4
ii  perl       5.32.1-3
ii  rpm        4.16.1.2+dfsg1-0.4
ii  rpm2cpio   4.16.1.2+dfsg1-0.4

alien recommends no packages.

Versions of packages alien suggests:
ii  bzip2            1.0.8-4
pn  lintian          <none>
ii  patch            2.7.6-7
ii  xz-utils [lzma]  5.2.5-1.0

-- no debconf information
--- Alien/Package/Deb.pm.aside  2021-03-24 12:46:48.445705086 -0400
+++ Alien/Package/Deb.pm        2021-03-24 12:46:54.829597635 -0400
@@ -482,9 +482,11 @@
 override_dh_auto_build:
 
 override_dh_auto_install:
+       mkdir -p debian/\$(PACKAGE)
        # Copy the packages's files.
        find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \\
-               xargs -0 -r -i cp -a {} debian/\$(PACKAGE)
+               sed -e s#'./'##g | \\
+               xargs -0 -r -i cp -a ./{} debian/\$(PACKAGE)/{}
 #
 # If you need to move files around in debian/\$(PACKAGE) or do some
 # binary patching, do it here

Reply via email to