|
|
cd137d5 |
Several issues came up during packaging argus for Fedora Extras:
|
|
|
cd137d5 |
|
|
|
cd137d5 |
1. the contrib/ subdirectory of the Argus clients source package
|
|
|
cd137d5 |
contains a PERL module, which causes a dependency on PERL,
|
|
|
cd137d5 |
even though the contrib directory was added using %doc, and
|
|
|
cd137d5 |
even though no executable bits were set. Here is a fix,
|
|
|
cd137d5 |
suggested by dgregor on #fedora-extras:
|
|
|
cd137d5 |
|
|
|
cd137d5 |
dgregor # Filter unwanted Requires:
|
|
|
cd137d5 |
dgregor cat << \EOF > %{name}-req
|
|
|
cd137d5 |
dgregor #!/bin/sh
|
|
|
cd137d5 |
dgregor %{__perl_provides} $* | sed -e '/.*/d'
|
|
|
cd137d5 |
dgregor EOF
|
|
|
cd137d5 |
dgregor %define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
|
|
cd137d5 |
dgregor chmod +x %{__perl_requires}
|
|
|
cd137d5 |
dgregor It seems like overkill, but everything else I tried get the broken pipe error
|
|
|
cd137d5 |
|
|
|
cd137d5 |
Currently I'm hoping for a fix to rpmbuild, allowing something like
|
|
|
cd137d5 |
'%doc(nodeps) foo' in a spec file. If that doesn't pan out, the above
|
|
|
cd137d5 |
solution will do the trick. Alternatively, creating a perl-Argus rpm
|
|
|
cd137d5 |
from the material in contrib is a possibility.
|
|
|
cd137d5 |
|
|
|
cd137d5 |
2. aside from build and makefile patches (fixing gcc 4.0.2 and
|
|
|
cd137d5 |
DESTDIR issues, respectively), I added an output formatting patch
|
|
|
cd137d5 |
from Peter Van Epp <vanepp@sfu.ca> which can be found on the Argus
|
|
|
cd137d5 |
mailing list archives
|
|
|
cd137d5 |
|
|
|
cd137d5 |
(https://lists.andrew.cmu.edu/mailman/listinfo/argus-info)
|
|
|
cd137d5 |
|
|
|
cd137d5 |
This and other fixes will be incorporated upstream into a new
|
|
|
cd137d5 |
release, as indicated by Argus's author on the list.
|