Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

RPM build error "This macro requires some arguments" occurs on Fedora 31 #53

Closed
syuu1228 opened this issue Dec 5, 2019 · 3 comments
Closed

Comments

@syuu1228
Copy link
Contributor

syuu1228 commented Dec 5, 2019

It seems like rpm macro %systemd_postun requires one argument starting from Fedora 31, otherwise it causes the error.
The solution is passing systemd unit name just like %systemd_post and %systemd_preun.
see: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TU3T2ZYY67SMAJFR2TD4HY6SCPPDVS5V/

@hagitsegev
Copy link

hagitsegev commented Dec 5, 2019

I also just faced it on https://jenkins.scylladb.com/job/scylla-master/job/debug-jobs/job/centos-rpm-debug/53/consoleFull Ran on muninn using dbuild. If I run with no dbuild, I'm OK.

avikivity pushed a commit to scylladb/scylla-jmx that referenced this issue Dec 5, 2019
Same as scylladb/scylla-ami#53, it seems like rpm macro %systemd_postun requires
 one argument starting from Fedora 31, otherwise it causes the error.
The solution is passing systemd unit name just like
%systemd_post and %systemd_preun.

see: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TU3T2ZYY67SMAJFR2TD4HY6SCPPDVS5V/

Fixes #87

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <20191205120514.9382-1-syuu@scylladb.com>
@hagitsegev
Copy link

@syuu1228 I tried to build centos-rpm using dbuild, and get syntax error:
https://jenkins.scylladb.com/view/master/job/scylla-master/job/debug-jobs/job/centos-rpm-debug/56/console

14:04:05  find: 'debug': No such file or directory
14:04:05  + /usr/lib/rpm/check-buildroot
14:04:05  + /usr/lib/rpm/redhat/brp-ldconfig
14:04:05  + /usr/lib/rpm/brp-compress
14:04:05  + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
14:04:06  + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0
14:04:06  Bytecompiling .py files below /jenkins/slave/workspace/scylla-master/debug-jobs/centos-rpm-debug/scylla-tools-java/build/redhat/BUILDROOT/scylla-tools-666.development-20191208.35906df2a0d.x86_64/usr/lib/python3.7 using /usr/bin/python3.7
14:04:06  *** Error compiling '/jenkins/slave/workspace/scylla-master/debug-jobs/centos-rpm-debug/scylla-tools-java/build/redhat/BUILDROOT/scylla-tools-666.development-20191208.35906df2a0d.x86_64/usr/lib/python3.7/site-packages/cqlshlib/copyutil.py'...
14:04:06    File "/usr/lib/python3.7/copyutil.py", line 141
14:04:06      except Exception, e:

and more errors.

@hagitsegev hagitsegev reopened this Dec 8, 2019
@avikivity
Copy link
Member

If it's a new problem, open a new issue, don't reopen an unrelated issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants