Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 2229872 - perl-Test-File-1.99.3-3.fc39 FTBFS: perl-Test-File.spec: line 3: Macro %rpmversion is a built-in
Summary: perl-Test-File-1.99.3-3.fc39 FTBFS: perl-Test-File.spec: line 3: Macro %rpmve...
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Test-File
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F39FTBFS
TreeView+ depends on / blocked
Reported: 2023-08-08 06:39 UTC by Petr Pisar
Modified: 2023-08-08 08:41 UTC (History)
3 users (show)

Fixed In Version: perl-Test-File-1.99.3-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-08-08 08:41:59 UTC
Type: Bug

Attachments (Terms of Use)

Description Petr Pisar 2023-08-08 06:39:49 UTC
perl-Test-File-1.99.3-3.fc39 fails to build in Fedora 39:

Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '783d41a0fa1541348a89720a7346f877', '-D', '/var/lib/mock/fedorarebuild-x86_64-pmfgj9xmiw/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tvv1tpkm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/perl-Test-File.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False
error: /builddir/build/SPECS/perl-Test-File.spec: line 3: Macro %rpmversion is a built-in (%global)
  0<  (%global)
Building target platforms: x86_64
Building for target x86_64
Child return code was: 1

This is triggered by upgrading rpm from 4.18.91-8.fc39 to 4.18.92-1.fc39. The new rpm made rpmversion macro a builtin and spec files cannot redefine it any longer.

Comment 1 Fedora Update System 2023-08-08 08:37:31 UTC
FEDORA-2023-0b03635bd8 has been submitted as an update to Fedora 39.

Comment 2 Fedora Update System 2023-08-08 08:41:59 UTC
FEDORA-2023-0b03635bd8 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.