From unknown Mon May 18 00:43:26 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#698: RPM spec file with non-existant macro on CentOS 7
Reply-To: Jasmin =?UTF-8?Q?L=C3=A9vesque?= <jasminlevesque@gmail.com>, 698@bugs.x2go.org
Resent-From: Jasmin =?UTF-8?Q?L=C3=A9vesque?= <jasminlevesque@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 11 Dec 2014 00:25:01 +0000
Resent-Message-ID: <handler.698.B.14182574164324@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 698
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.14182574164324
          (code B); Thu, 11 Dec 2014 00:25:01 +0000
Received: (at submit) by bugs.x2go.org; 11 Dec 2014 00:23:36 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	HTML_MESSAGE,T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id B5F8C5E0EB
	for <submit@bugs.x2go.org>; Thu, 11 Dec 2014 01:23:34 +0100 (CET)
Received: by mail-wi0-f182.google.com with SMTP id h11so6954829wiw.9
        for <submit@bugs.x2go.org>; Wed, 10 Dec 2014 16:23:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to:content-type;
        bh=/xSub5PLGmq7laDMbzz4OOEifURa6vlnt7f2Or4cHao=;
        b=HABRVG34FNWRlY9b6TkPr5RrJ2cMq+E/7PLO6AXxaIMZ7ogRtjLsiVAmZWNYaYwW9g
         FqLEdzMxJyHDHTc3Z4s+Q+8MtaUMg5mnlAkwfJNc6b0VbCW+ezIpwjcTT2MkzEUltS0t
         th1gvWVaaYcCY5ozJourvEmC508Tn5GPWLZHCXfvee4IJFTZL1tTJBX0vwuLq9xy6AQj
         LE37XnkCYrZg80B7EAoA0vgkmaNWyrH3jD36iHTe8k4RVSq2llFYOgoQ5Q8tvJIJitSg
         sOYQx9BQLdoIEwuX0LntRE1+U6oDrrC+yuEsNvJJlWnnKMgTNIPPh2m3rYROv4kCZPWI
         udYw==
X-Received: by 10.180.96.10 with SMTP id do10mr10873356wib.16.1418257414476;
 Wed, 10 Dec 2014 16:23:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.217.51.137 with HTTP; Wed, 10 Dec 2014 16:23:14 -0800 (PST)
From: Jasmin =?UTF-8?Q?L=C3=A9vesque?= <jasminlevesque@gmail.com>
Date: Wed, 10 Dec 2014 19:23:14 -0500
Message-ID: <CAJzfp8nAB-1VTT-9W8dDK1W6vS_ObZQE=NspjtMVcJMx9bxtig@mail.gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=f46d044480c563d9550509e5c9c3

--f46d044480c563d9550509e5c9c3
Content-Type: text/plain; charset=UTF-8

Package: x2goserver
Version: 4.1.0.0-0.0x2go1.0.git20141208.1203.heuler.el7.centos.x86_64

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-4.1.0.0-0.0x2go1.0.git20141208.1203.heuler.el7.centos.x86_64)
scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package
x2goserver-4.1.0.0-0.0x2go1.0.git20141208.1203.heuler.el7.centos.x86_64

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.

Thanks,


Jasmin Levesque
Senior system analyst
Vlan! Technologie

--f46d044480c563d9550509e5c9c3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div>Package: x2goserver<br>Version: <=
span style=3D"font-family:monospace">4.1.0.0-0.0x2go1.0.git20141208.1203.he=
uler.el7.centos.x86_64</span><br><br></div>When installing the nightly buil=
d or a rebuilt package, I encounter the following error:<br><br><span style=
=3D"font-family:monospace">/var/tmp/rpm-tmp.e1X31q: line 1: fg: no job cont=
rol<br>error: %pre(x2goserver-4.1.0.0-0.0x2go1.0.git20141208.1203.heuler.el=
7.centos.x86_64) scriptlet failed, exit status 1<br>Error in PREIN scriptle=
t in rpm package x2goserver-4.1.0.0-0.0x2go1.0.git20141208.1203.heuler.el7.=
centos.x86_64</span><br><br></div>The package fails to installs. <br><br></=
div>When digging for the PREIN scriplet, I find the only %pre in the x2gose=
rver is this line:<br>485: %systemd_pre x2goserver.service<br><br></div><di=
v>These are the built-in macros related to systemd on a fresh CentOS 7 inst=
all:<br><br>[root@centos7 SPECS]# rpmbuild --showrc | grep systemd_<br>-14:=
 systemd_post<br>-14: systemd_postun<br>-14: systemd_postun_with_restart<br=
>-14: systemd_preun<br>-14: systemd_requires<br><br></div><div>It seems the=
 %systemd_pre macro is not available.<br></div><div><br></div>When commenti=
ng the line out, the package builds and installs successfully. <br><br></di=
v><div>Thanks,<br><br><br>Jasmin Levesque<br>Senior system analyst<br></div=
><div>Vlan! Technologie<br></div><br><div><br></div></div>

--f46d044480c563d9550509e5c9c3--
