RPM

%exclude /non/existent/file fails a build needlessly.

Bug #661822 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Confirmed
Undecided
Unassigned

Bug Description

SSIA

Tags: rpmbuild
Jeff Johnson (n3npq)
tags: added: rpmbuild
Changed in rpm:
status: New → Confirmed
Revision history for this message
Per Øyvind Karlsen (proyvind) wrote :

This is perfectly sane behaviour IMO, %exclude only having the purpose of excluding file from package and not from unpackaged files check is more explicit. Removing files in %install is sufficient and should help avoid ambiguity and possible packaging mistakes by using %exclude.

For rpm in Mandriva Linux, matching behaviour was recently reintroduced in rpm-4.6.1-1.

Revision history for this message
Jeff Johnson (n3npq) wrote :

Sane is always in the eye of the beholder.

Why should a directive that specifies that a file should not be included
_FAIL_ when the file is indeed not included? So that the directive can be removed?

There are _ALWAYS_ two extremes in expectations:

Revision history for this message
Jeff Johnson (n3npq) wrote :

(continued)
    FULLSTOP on any deviation from what is specified
    BESTEFFORT continue in spite of deviations

In the case of %exclude, I think BESTEFFORT is the better choice. Clearly
someone specified that a file should not be included. And if the file isn't
present at all, that does conform to "expectations" imho.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.