Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for %autosetup -C option #3392

Closed
edewata opened this issue Aug 28, 2024 · 2 comments
Closed

Missing support for %autosetup -C option #3392

edewata opened this issue Aug 28, 2024 · 2 comments

Comments

@edewata
Copy link

edewata commented Aug 28, 2024

The latest RPM spec file for jakarta-activation package (and some other packages too) in Fedora uses %autosetup -C option:
https://src.fedoraproject.org/rpms/jakarta-activation/blob/rawhide/f/jakarta-activation.spec#_38:

%autosetup -p1 -C

However, building this package in COPR is failing since the option is currently not supported:
https://copr.fedorainfracloud.org/coprs/edewata/pki/build/7951256/
https://download.copr.fedorainfracloud.org/results/edewata/pki/srpm-builds/07951256/builder-live.log.gz:

autosetup: invalid option -- 'C'
error: /var/lib/copr-rpmbuild/results/jakarta-activation.spec: line 48: Unknown option C in autosetup(a:b:cDn:TvNS:p:)

Please add the support for -C option so that these packages can be built in COPR. Thanks!

@praiskup
Copy link
Member

The %autosetup macro is defined in the /usr/lib/rpm/macros file, which is RPM:

$ rpm -qf /usr/lib/rpm/macros
rpm-4.19.1.1-1.fc40.x86_64

Copr is just building against official distribution repositories that we do
not own/maintain (we can't fix the packages).

I see C option only available in Fedora Rawhide; so you may try to request backporting
the option to older Fedora variants (not sure how likely that is).

@praiskup praiskup moved this from Needs triage to Done in CPT Kanban Aug 29, 2024
@edewata
Copy link
Author

edewata commented Aug 29, 2024

OK, I was able to build using the RPM spec from the f41 branch. I think this is sufficient for now. Thanks!
https://src.fedoraproject.org/rpms/jakarta-activation/blob/f41/f/jakarta-activation.spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants