Bug 487960 - RFE: filter Perl private libs for arch-specific packages
Summary: RFE: filter Perl private libs for arch-specific packages
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdevtools
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 487958
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-01 19:06 UTC by Chris Weyl
Modified: 2009-03-01 21:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-01 20:23:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chris Weyl 2009-03-01 19:06:20 UTC
Perl arch specific packages often contain shared libraries that are private to Perl, and ought not to be publicized as "provides" for a package.

Can we apply the following patch to the Perl spec template, please?  This will filter the private libs from ever being scanned by the rpm "provides" generator.

--- XXXX	26 Feb 2009 12:39:28 -0000	1.9
+++ XXXX	28 Feb 2009 22:57:42 -0000
@@ -17,2 +17,7 @@
 
+# don't "provide" private Perl libs
+%global _use_internal_dependency_generator 0
+%global provfind /bin/sh -c "grep -v '%perl_vendorarch.*\\.so$' | %__find_provides"
+%global __find_provides %provfind
+
 %description

Comment 1 Ville Skyttä 2009-03-01 20:23:34 UTC
I don't think it's appropriate to uglify spec files or templates with things like this.  Instead, if this is a problem, it should be fixed in rpmbuild.  And I don't think this is perl specific, at least python and possibly ruby and some other things are in the same boat.

Comment 2 Chris Weyl 2009-03-01 21:47:33 UTC
Do you have a suggestion as to how to do this, addressing the issue at hand, that's less aesthetically abusive to you?

I'll ask that rpmbuild address it, but given their historical resistance to even filtering out the bits in %{_docdir}, I rather suspect it's going to be a no-go.


Note You need to log in before you can comment on or make changes to this bug.