[Rpm-maint] [rpm-software-management/rpm] %prep working directory different when using --build-in-place in Fedora 40 vs Fedora Rawhide (Issue #3208)
Daan De Meyer
notifications at github.com
Tue Jul 16 06:25:52 UTC 2024
**Describe the bug**
Something is still different between rpm from Fedora 40 and rpm from Fedora Rawhide when it comes to `--build-in-place`:
Fedora 40:
```
➜ mkosi git:(cache) ✗ mkosi -r 40 --debug-shell -f
Create subvolume '/home/daandemeyer/.cache/mkosi/mkosi-workspace-4b0haoi_/root'
‣ Building default image
Create subvolume '/home/daandemeyer/.cache/mkosi/mkosi-workspace-d39y103x/root'
‣ Copying cached trees
Create snapshot of '/home/daandemeyer/projects/mkosi/mkosi.cache/fedora~40~x86-64.cache' in '/home/daandemeyer/.cache/mkosi/mkosi-workspace-d39y103x/root'
‣ Running build script /home/daandemeyer/projects/mkosi/mkosi.conf.d/30-selinux/mkosi.build.chroot…
++ '[' 0 = 0 ']'
++ echo --nocheck
+ env --chdir=selinux-policy rpmbuild -bb --build-in-place --nocheck --define '_topdir /var/tmp' --define '_sourcedir rpm' --define '_rpmdir /work/packages' --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' rpm/selinux-policy.spec
setting SOURCE_DATE_EPOCH=1720483200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JV8ykS
+ umask 022
+ cd /work/src/selinux-policy
+ ls
COPYING Changelog Changelog.old INSTALL Makefile README README.md Rules.modular Rules.monolithic VERSION base.conf build.conf config doc man packit.yaml plans policy rpm scripts support tmp
```
Fedora Rawhide:
```
➜ mkosi git:(cache) ✗ mkosi -r rawhide --debug-shell -f
Create subvolume '/home/daandemeyer/.cache/mkosi/mkosi-workspace-tgzzecju/root'
‣ Building default image
Create subvolume '/home/daandemeyer/.cache/mkosi/mkosi-workspace-mvzellct/root'
‣ Copying cached trees
Create snapshot of '/home/daandemeyer/projects/mkosi/mkosi.cache/fedora~rawhide~x86-64.cache' in '/home/daandemeyer/.cache/mkosi/mkosi-workspace-mvzellct/root'
‣ Running build script /home/daandemeyer/projects/mkosi/mkosi.conf.d/30-selinux/mkosi.build.chroot…
++ '[' 0 = 0 ']'
++ echo --nocheck
+ env --chdir=selinux-policy rpmbuild -bb --build-in-place --nocheck --define '_topdir /var/tmp' --define '_sourcedir rpm' --define '_rpmdir /work/packages' --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' rpm/selinux-policy.spec
Building target platforms: noarch
Building for target noarch
setting SOURCE_DATE_EPOCH=1720483200
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.M95J37
+ umask 022
+ cd /var/tmp/BUILD/selinux-policy-41.7-build
+ test -d /var/tmp/BUILD/selinux-policy-41.7-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /var/tmp/BUILD/selinux-policy-41.7-build
+ /usr/bin/rm -rf /var/tmp/BUILD/selinux-policy-41.7-build
+ /usr/bin/mkdir -p /var/tmp/BUILD/selinux-policy-41.7-build
+ /usr/bin/mkdir -p /var/tmp/BUILD/selinux-policy-41.7-build/SPECPARTS
+ /usr/bin/ln -s /work/src/selinux-policy /var/tmp/BUILD/selinux-policy-41.7-build/selinux-policy-41.7
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AwsOez
+ umask 022
+ cd /var/tmp/BUILD/selinux-policy-41.7-build
+ ls
SPECPARTS selinux-policy-41.7
```
The %prep section that's being executed:
```
%prep
%autosetup -p 1 -n %{name}-%{commit}
```
**To Reproduce**
Steps to reproduce the behavior:
1. Try to build the selinux-policy rpm from Rawhide on both Fedora 40 and Fedora rawhide
https://src.fedoraproject.org/rpms/selinux-policy/blob/rawhide/f/selinux-policy.spec
**Expected behavior**
The working directory in the %prep section is the same for both Fedora 40 and Fedora Rawhide
**Output**
See above
**Environment**
See above
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3208
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3208 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240715/12a4d9bc/attachment.html>
More information about the Rpm-maint
mailing list