On Tue, Oct 22, 2019 at 4:32 AM Stefan Seyfried
Hi packaging gurus,
I am regularly rebuilding current Factory packages for ancient SLES releases (SLES15,
SLES12-SP1...4, sometimes even
Many current spec files have gotten deprived of their %defattr(...) lines, which causes
warnings like these:
[ 25s] python-wheel.src:102: W: files-attr-not-set
[ 25s] python-wheel.src:103: W: files-attr-not-set
[ 25s] python-wheel.src:104: W: files-attr-not-set
[ 25s] python-wheel.src:105: W: files-attr-not-set
[ 25s] python-wheel.src:106: W: files-attr-not-set
[ 25s] A file or a directory entry in a %files section does not have attributes set
[ 25s] which may result in unexpected file permissions and thus security issues in
[ 25s] the resulting binary package depending on the build environment and rpmbuild
[ 25s] version (typically < 4.4). Add default attributes using %defattr before it
[ 25s] the %files section, or use per entry %attr's.
Even SLES11-SP4 has rpm version 18.104.22.168, so maybe this can just be ignored.
Or is there some prjconf or rpm macro magic that lets me automatically insert %defattr
lines after every %file line?
In Fedora EPEL, we've used several tricks to "backport" newer
capabilities to older RHEL releases so that the delta is minimized
between RHEL and Fedora. There are limits, but we've been moderately
EL5 corresponds to SLE 11, so some of it may help here:
As for the rpmlint policy, you can override this by forking the policy
package shipped in SLE 11 and updating the rules for your SLE 11 build
真実はいつも一つ！/ Always, there's only one truth!
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner(a)opensuse.org