RPM Community Forums

Mailing List Message of <rpm-users>

Force removing rpmlib(PartialHardlinkSets) from an RPM

From: Marc MERLIN <marc_rpm@merlins.org>
Date: Thu 29 Oct 2009 - 07:12:04 CET
Message-ID: <20091029055328.GA13771@merlins.org>
Very long story short, I'm building rpms with 4.4.2.1 on ubuntu
and need to install on RH 7.1 with rpm 4.0.2.

When you have stopped laughing, here's the problem :)
I need to tell rpm to never put a rpmlib(PartialHardlinkSets) in
the rpms it builds.


When I add a hardlink in the rpm, rpm 4.4.2.1 "helpfully" adds a 
rpmlib(PartialHardlinkSets) that is not relevant to my case and prevents 
installing the rpm on RH 7.1 when otherwise said rpm and hardlinks therein,
work just fine.

Currently, the only way I found to fix this is:
perl -pi -e 's|rpmlib\(PartialHardlinkSets\)|rpmlib(CompressedFileNames)|' scripts-1.1.20091028-0.i386.rpm 
perl -pi -e 's|8846d64e6f6f85e7d6613958acc0a9a1464ad2ef|93d6f9fdaea5908b6693fb3235320c43d70cc15d|' scripts-1.1.20091028-0.i386.rpm 

command #1: replace property with another one of the same string length
command #2: hand fix the SHA1 signature

I'm obviously hoping that there is a way to tell rpm 4.4.2.1 to just
not bother with rpmlib(PartialHardlinkSets)?
(yes, the rpm after I hack the property out, installs and works just fine in
my use case)

Thanks much,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  
Received on Thu Oct 29 07:30:25 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.