dustymabe created an issue (rpm-software-management/rpm#3682)

**Describe the bug**

`rpmbuild -rs` seems to no longer create a needed directory since 
`4.20.1-1.fc41`. It works fine in `4.20.0-1.fc41`.



**To Reproduce**

```
# podman run -it --rm --pull=always quay.io/fedora/fedora:41
# dnf install -y rpm-build
# mkdir -p mytmp/rpmbuild
# cd mytmp
# dnf download --source cowsay
# rpmbuild -vv -rs --nodeps -D "%_topdir $PWD/rpmbuild" -D "%_tmppath 
%{_topdir}/tmp" cowsay-*fc41.src.rpm
```

```
[root@479eb7cae370 mytmp]# rpmbuild -vv -rs --nodeps -D "%_topdir 
$PWD/rpmbuild" -D "%_tmppath %{_topdir}/tmp" cowsay-3.8.4-1.fc41.src.rpm 
Installing cowsay-3.8.4-1.fc41.src.rpm
D: loading keyring from rpmdb
D: PRAGMA secure_delete = OFF: 0
D:  read h#     125 
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-e99d6ad1-64d2612c to keyring
D: cowsay-3.8.4-1.fc41.src.rpm: Header V4 RSA/SHA256 Signature, key ID 
e99d6ad1: OK
D: cowsay-3.8.4-1.fc41.src.rpm: Header SHA256 digest: OK
D: cowsay-3.8.4-1.fc41.src.rpm: Header SHA1 digest: OK
D:   install: cowsay-3.8.4-1.fc41.noarch has 4 files
D: create     100755  1 (   0,   0)   323 
/mytmp/rpmbuild/SOURCES/animalsay;67e364e5
D: create     100644  1 (   0,   0) 41206 
/mytmp/rpmbuild/SOURCES/cowsay-3.8.4.tar.gz;67e364e5
D: create     100644  1 (   0,   0)  1055 
/mytmp/rpmbuild/SOURCES/cowsay.bashcomp;67e364e5
D: create     100644  1 (   0,   0)  9978 
/mytmp/rpmbuild/SPECS/cowsay.spec;67e364e5
D: /mytmp/rpmbuild/SOURCES directory created with perms 0755
D: /mytmp/rpmbuild/SPECS directory created with perms 0755
Building target platforms: noarch
Building for target noarch
D: created directory(s) /mytmp/rpmbuild/BUILD mode 0755
D: created directory(s) /mytmp/rpmbuild/RPMS mode 0755
D: created directory(s) /mytmp/rpmbuild/SRPMS mode 0755
setting SOURCE_DATE_EPOCH=1733097600
D: Signature: size(4404)+pad(4)
D: Signature: size(4404)+pad(4)
Wrote: /mytmp/rpmbuild/SRPMS/cowsay-3.8.4-1.fc41.src.rpm
D: created directory(s) /mytmp/rpmbuild/tmp mode 0755
Executing(rmbuild): /bin/sh -e /mytmp/rpmbuild/tmp/rpm-tmp.4ZfrXo
D:      execv(/bin/sh) pid 74
+ umask 022
+ cd /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build
/mytmp/rpmbuild/tmp/rpm-tmp.4ZfrXo: line 33: cd: 
/mytmp/rpmbuild/BUILD/cowsay-3.8.4-build: No such file or directory
D:      waitpid(74) rc 74 status 100
D: /bin/sh failed: 100
error: Bad exit status from /mytmp/rpmbuild/tmp/rpm-tmp.4ZfrXo (rmbuild)

RPM build errors:
    Bad exit status from /mytmp/rpmbuild/tmp/rpm-tmp.4ZfrXo (rmbuild)
```

Please link or attach the packages or spec files involved.

**Expected behavior**

You can see the expected outcome by downgrading to `4.20.0-1.fc41`:

```
# [root@479eb7cae370 mytmp]# dnf downgrade rpmbuild --disablerepo=* 
--enablerepo=fedora  -y
[root@479eb7cae370 mytmp]# rpmbuild -vv -rs --nodeps -D "%_topdir 
$PWD/rpmbuild" -D "%_tmppath %{_topdir}/tmp" cowsay-3.8.4-1.fc41.src.rpm 
Installing cowsay-3.8.4-1.fc41.src.rpm
D: loading keyring from rpmdb
D: PRAGMA secure_delete = OFF: 0
D:  read h#     125 
Header SHA256 digest: OK
Header SHA1 digest: OK
D: added key gpg-pubkey-e99d6ad1-64d2612c to keyring
D: cowsay-3.8.4-1.fc41.src.rpm: Header V4 RSA/SHA256 Signature, key ID 
e99d6ad1: OK
D: cowsay-3.8.4-1.fc41.src.rpm: Header SHA256 digest: OK
D: cowsay-3.8.4-1.fc41.src.rpm: Header SHA1 digest: OK
D:   install: cowsay-3.8.4-1.fc41.noarch has 4 files
D: create     100755  1 (   0,   0)   323 
/mytmp/rpmbuild/SOURCES/animalsay;67e36565
D: create     100644  1 (   0,   0) 41206 
/mytmp/rpmbuild/SOURCES/cowsay-3.8.4.tar.gz;67e36565
D: create     100644  1 (   0,   0)  1055 
/mytmp/rpmbuild/SOURCES/cowsay.bashcomp;67e36565
D: create     100644  1 (   0,   0)  9978 
/mytmp/rpmbuild/SPECS/cowsay.spec;67e36565
Building target platforms: noarch
Building for target noarch
D: created directory(s) /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build mode 0755
setting SOURCE_DATE_EPOCH=1733097600
D: Signature: size(4404)+pad(4)
D: Signature: size(4404)+pad(4)
Wrote: /mytmp/rpmbuild/SRPMS/cowsay-3.8.4-1.fc41.src.rpm
Executing(rmbuild): /bin/sh -e /mytmp/rpmbuild/tmp/rpm-tmp.gmeGPo
D:      execv(/bin/sh) pid 103
+ umask 022
+ cd /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build
+ test -d /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build
+ rm -rf /mytmp/rpmbuild/BUILD/cowsay-3.8.4-build
+ RPM_EC=0
++ jobs -p
+ exit 0
D:      waitpid(103) rc 103 status 0
```



-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3682
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to