Found it! The offending line (defining %__arch_install_post) had been
put into my ~/.rpmmacros by rpmdev-setuptree. One of my colleagues
pointed that out as he had been bitten by it before.
Andrew
Andrew Ford wrote:
Marcela Maslanova wrote:
> [snip]
>
>> With the perl516-build package installed the build trips over on
>> check-rpaths:
>>
>> ERROR: 0002: file '/opt/rh/perl516/root/usr/bin/perl5.16.1' contains
>> an
>> invalid rpath '/opt/rh/perl516/root/usr/lib64/perl/CORE' in
>> [/opt/rh/perl516/root/usr/lib64/perl5/CORE]
>>
>>
> Um, I thought we got rid off rpaths, I need to look at this one.
>
Do you mean that rpaths had been gotten rid of from the perl spec
file, or from rpmbuild itself?
I am digging around to try and find what is invoking check-rpaths and
the the generated rpm-tmp install scriptlet ends with:
##mkdir -p $RPM_BUILD_ROOT/opt/rh/perl516/root/etc/profile.d/
##install -p -c -m 644
/home/aford/symperl/builds/perl-5.16.1/SOURCES/manpage.sh
$RPM_BUILD_ROOT/opt/rh/perl516/root/etc/profile.d/
/usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
SCL_TMP=$RPM_BUILD_ROOT;
RPM_BUILD_ROOT=$SCL_TMP/opt/rh/perl516/root;
/usr/lib/rpm/redhat/brp-compress
/usr/lib/rpm/redhat/brp-strip /usr/bin/strip
/usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
/usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
/usr/lib/rpm/brp-python-bytecompile
/usr/lib/rpm/redhat/brp-java-repack-jars
RPM_BUILD_ROOT=$SCL_TMP
The two commented lines are the last two lines of the %install
scriptlet from the spec file and the line SCL_TMP=$RPM_BUILD_ROOT;...
is the setting of %__os_install_post from macros.scl, with the
following lines being the previous value of that macro, includedin the
macros.scl redefinition. But I cannot work out what is inserting the
check-rpaths line immediately before. I cannot find the string
"check-rpaths" in the files in /usr/lib/rpm or /etc/rpm - any idea
where it is coming from?
Andrew
_______________________________________________
softwarecollections mailing list
softwarecollections(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/softwarecollections
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________
--
Andrew Ford
South Wing Compton House
Compton Green, Redmarley
Gloucester, GL19 3JB, UK
Telephone: +44 1531 829900
Mobile: +44 7785 258278