Bug 2113937 - edk2: FTBFS in Fedora Rawhide due to %autosetup -S git_am error
Summary: edk2: FTBFS in Fedora Rawhide due to %autosetup -S git_am error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: edk2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paolo Bonzini
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.11 F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-08-02 11:21 UTC by Miro Hrončok
Modified: 2022-08-02 14:10 UTC (History)
8 users (show)

Fixed In Version: rpm-4.18.0-0.beta1.4.fc37, edk2-20220526git16779ede2d36-4.fc37
Clone Of:
Environment:
Last Closed: 2022-08-02 14:10:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2022-08-02 11:21:14 UTC
Description of problem:
Package edk2 fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
20220526git16779ede2d36-3.fc37

Steps to Reproduce:
koji build --scratch f37 edk2-20220526git16779ede2d36-3.fc37.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/edk2


The errors is:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.91NC2v
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf edk2-16779ede2d36
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/edk2-16779ede2d36.tar.xz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd edk2-16779ede2d36
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ git init -q
+ git config core.whitespace cr-at-eol
+ git config am.keepcr true
+ cd /builddir/build/BUILD
+ cd edk2-16779ede2d36
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q --initial-branch=main
warning: re-init: ignored --initial-branch=main
+ /usr/bin/git config user.name rpm-build
+ /usr/bin/git config user.email '<rpm-build>'
+ /usr/bin/git config gc.auto 0
+ /usr/bin/git add --force .
+ /usr/bin/git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m 'edk2-20220526git16779ede2d36 base'
+ /usr/bin/git branch rpm-build
+ /usr/bin/git checkout rpm-build
Switched to branch 'rpm-build'
+ /usr/bin/git branch --set-upstream-to=main
fatal: the requested upstream branch 'main' does not exist
hint: 
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint: 
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
hint: Disable this message with "git config advice.setUpstreamFailure false"
RPM build errors:
...


I've informed the RPM upstream here: https://github.com/rpm-software-management/rpm/pull/2121#issuecomment-1202349789


-----------


This package includes Python 3.10 bytecode in /usr/share/edk2/Python/ and needs to be rebuilt with Python 3.11.

Comment 1 Michal Domonkos 2022-08-02 13:11:21 UTC
Let's revert the original patch causing this, here's the build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=90395574


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