Package: x2goserver

When installing the nightly build or a rebuilt package, I encounter the following error:

/var/tmp/rpm-tmp.e1X31q: line 1: fg: no job control
error: %pre(x2goserver- scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package x2goserver-

The package fails to installs.

When digging for the PREIN scriplet, I find the only %pre in the x2goserver is this line:
485: %systemd_pre x2goserver.service

These are the built-in macros related to systemd on a fresh CentOS 7 install:

[root@centos7 SPECS]# rpmbuild --showrc | grep systemd_
-14: systemd_post
-14: systemd_postun
-14: systemd_postun_with_restart
-14: systemd_preun
-14: systemd_requires

It seems the %systemd_pre macro is not available.

When commenting the line out, the package builds and installs successfully.


Jasmin Levesque
Senior system analyst
Vlan! Technologie