[Bug 1203945] New: systemd-rpm-macros: syntax error in %tmpfiles_create_package()
https://bugzilla.suse.com/show_bug.cgi?id=1203945 Bug ID: 1203945 Summary: systemd-rpm-macros: syntax error in %tmpfiles_create_package() Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: martin.wilck@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I tried %tmpfiles_create_package in my latest package
Sep 30 23:07:23 apollon.suse.de [RPM][19156]: scriptlet %prein(multipath-tools-0.9.1+61+suse.5a0a5cd-6.1.x86_64) failure: 2 Sep 30 23:07:23 apollon.suse.de [RPM][19156]: install multipath-tools-0.9.1+61+suse.5a0a5cd-6.1.x86_64: failure
if [ -z "${TRANSACTIONAL_UPDATE}" ]; then /usr/bin/systemd-tmpfiles --replace=/usr/lib/tmpfiles.d/multipath-tools.conf --create - <
Introduced with this change:
* Thu May 20 2021 Franck Bui
https://bugzilla.suse.com/show_bug.cgi?id=1203945
Martin Wilck
https://bugzilla.suse.com/show_bug.cgi?id=1203945
https://bugzilla.suse.com/show_bug.cgi?id=1203945#c1
--- Comment #1 from Martin Wilck
# Deprecated. Use %tmpfiles_create_package instead %tmpfiles_create() ...
While at the same time rpmlint complains:
[ 30s] multipath-tools.x86_64: W: post-without-tmpfile-creation /usr/lib/tmpfiles.d/multipath-tools.conf [ 30s] Please use the %tmpfiles_create macro in %post for each of your tmpfiles.d [ 30s] files if you expect this file or directory to be available after package [ 30s] installation (and before reboot).
(this was for the package where I used the broken %tmpfiles_create_package, trying to use the latest greatest macros) Perhaps somewhat premature depreciation? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203945
https://bugzilla.suse.com/show_bug.cgi?id=1203945#c2
Franck Bui
if [ -z "${TRANSACTIONAL_UPDATE}" ]; then /usr/bin/systemd-tmpfiles --replace=/usr/lib/tmpfiles.d/multipath-tools.conf --create - <
Oops... I'll fix it ASAP. Thanks for being the first user/tester of these new RPM macros ;) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203945
Franck Bui
https://bugzilla.suse.com/show_bug.cgi?id=1203945
https://bugzilla.suse.com/show_bug.cgi?id=1203945#c3
--- Comment #3 from Franck Bui
Remark: It's kind of weird to see this in macros.systemd
# Deprecated. Use %tmpfiles_create_package instead %tmpfiles_create() ...
While at the same time rpmlint complains:
[ 30s] multipath-tools.x86_64: W: post-without-tmpfile-creation /usr/lib/tmpfiles.d/multipath-tools.conf [ 30s] Please use the %tmpfiles_create macro in %post for each of your tmpfiles.d [ 30s] files if you expect this file or directory to be available after package [ 30s] installation (and before reboot).
(this was for the package where I used the broken %tmpfiles_create_package, trying to use the latest greatest macros)
Perhaps somewhat premature depreciation?
I wasn't aware of the check done by rpmlint (or maybe I forgot). I'll open a bug report against rpmlint. Thanks for spotting. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203945
https://bugzilla.suse.com/show_bug.cgi?id=1203945#c4
--- Comment #4 from Franck Bui
I wasn't aware of the check done by rpmlint (or maybe I forgot). I'll open a bug report against rpmlint.
bsc#1203962 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1203945
https://bugzilla.suse.com/show_bug.cgi?id=1203945#c5
Franck Bui
Oops... I'll fix it ASAP.
Fix submitted via sr#1007693, hence closing. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com