OpenARC icon indicating copy to clipboard operation
OpenARC copied to clipboard

openSUSE build service failures for RHEL7

Open seriv opened this issue 7 years ago • 2 comments

There are a few issues.

  1. 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'.
  2. 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.

seriv avatar Aug 01 '18 16:08 seriv

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/ )

andreasschulze avatar Aug 01 '18 16:08 andreasschulze

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:

andreasschulze avatar Aug 01 '18 20:08 andreasschulze