X2Go Bug report logs - #698
RPM spec file with non-existant macro on CentOS 7

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Jasmin Lévesque <jasminlevesque@gmail.com>

Date: Thu, 11 Dec 2014 00:25:01 UTC

Severity: normal

Tags: pending, rpm-packages

Fixed in version

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log

Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 11 Dec 2014 00:23:36 +0000
From jasminlevesque@gmail.com  Thu Dec 11 01:23:34 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
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 [])
	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;
X-Received: by with SMTP id do10mr10873356wib.16.1418257414476;
 Wed, 10 Dec 2014 16:23:34 -0800 (PST)
MIME-Version: 1.0
Received: by with HTTP; Wed, 10 Dec 2014 16:23:14 -0800 (PST)
From: Jasmin Lévesque <jasminlevesque@gmail.com>
Date: Wed, 10 Dec 2014 19:23:14 -0500
Message-ID: <CAJzfp8nAB-1VTT-9W8dDK1W6vS_ObZQE=NspjtMVcJMx9bxtig@mail.gmail.com>
Subject: RPM spec file with non-existant macro on CentOS 7
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=f46d044480c563d9550509e5c9c3
[Message part 1 (text/plain, inline)]
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
scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package

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

[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
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Feb 3 20:34:23 2023; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.