Menu

#5 Ownership problem *.deb ==> *.rpm

1.0
open
nobody
bug deb rpm (1)
2023-05-23
2023-05-23
No

We analyzed an issue with alien 8.95-3.el7 on RHEL regarding file ownership. When converting from *.deb to *.rpm the file ownership changes to root. Adding one line print OUT "%defattr(-, -, -, -)\n"; to Rpm.pm resolved the problem we faced.

In attached file alien-deb-2-rpm-bug-ownership.zip the original Rpm.pm, the patched one and the patch are contained.

Alien version used:

$ rpm -qi alien
Name        : alien
Version     : 8.95
Release     : 3.el7
Architecture: noarch
Install Date: Sun 17 Feb 2019 09:59:52 PM CET
Group       : Applications/System
Size        : 228650
License     : GPLv2+
Signature   : RSA/SHA256, Wed 22 Mar 2017 03:57:26 AM CET, Key ID 6a2faea2352c64e5
Source RPM  : alien-8.95-3.el7.src.rpm
Build Date  : Wed 22 Mar 2017 02:41:32 AM CET
Build Host  : buildvm-aarch64-07.arm.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://sourceforge.net/projects/alien-pkg-convert/
Summary     : Converter between the rpm, dpkg, stampede slp, and Slackware tgz file formats
Description :
Alien is a program that converts between the rpm, dpkg, stampede
slp, and Slackware tgz file formats. If you want to use a package
from another distribution than the one you have installed on your
system, you can use alien to convert it to your preferred package
format and install it.

md5sum of installed Rpm.pm:

$ rpm -ql alien|egrep Rpm.pm
/usr/share/perl5/vendor_perl/Alien/Package/Rpm.pm

$ md5sum /usr/share/perl5/vendor_perl/Alien/Package/Rpm.pm
0577cf439977ec7f26a6a94c99128c86  /usr/share/perl5/vendor_perl/Alien/Package/Rpm.pm

md5sum of patched Rpm.pm:

$ md5sum Rpm.pm.PATCHED
c044fe62abe29f8ee4d732bfe308b944 *Rpm.pm.PATCHED

RPM version used:

$ rpm -qi rpm
Name        : rpm
Version     : 4.11.3
Release     : 48.el7_9
Architecture: x86_64
Install Date: Sat 19 Feb 2022 05:37:20 PM CET
Group       : System Environment/Base
Size        : 2622621
License     : GPLv2+
Signature   : RSA/SHA256, Mon 01 Nov 2021 11:46:29 AM CET, Key ID 199e2f91fd431d51
Source RPM  : rpm-4.11.3-48.el7_9.src.rpm
Build Date  : Mon 01 Nov 2021 11:12:05 AM CET
Build Host  : x86-vm-38.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://www.rpm.org/
Summary     : The RPM package management system
Description :
The RPM Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating software packages. Each software
package consists of an archive of files along with information about
the package like its version, a description, etc.
1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB