openSUSE build service failures for RHEL7
There are a few issues.
- Binary package openarc-1.0.0.Beta0-3.1.x86_64.rpm is not installable without '--noscript' because both Centos-7 and RHEL-7 does not define SUSE macros '%service_add_pre' and '%service_add_post'.
- If installed with '--noscript', service fail to start because it can not create /var/run/openarc folders after privileges dropping, usual fix for it is to add lines
+PermissionsStartOnly=true +ExecStartPre=-/usr/bin/mkdir /var/run/openarc +ExecStartPre=/usr/bin/chown -R openarc:openarc /var/run/openarc/
to the service unit. 3. Source RPM package can not be rebuild in mock (chrooted) environment because RedHat should be discovered not as SUSE tries with macros '%{?centos_version}' or '%{?redhat_version}', but with something like
%if 0%{?rhel} >= 7
Otherwise SPEC fails to require libbsd-dev and sendmail-dev for package building.
do you mean these packages?
feel free to send patches for the openarc.spec used there ( which is different from https://github.com/trusteddomainproject/OpenARC/tree/master/contrib/spec/ )
Point 1+ 2 are addressed (fixed?) with openarc-1.0.0.Beta0-8+ packages build today (20180801) To fix point 3 I would like to see a reference, not a suggestion/example :smile: