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

RPM macro "%{_arch}" in source URL is not evaluated #22

Open
okurz opened this issue Jan 3, 2018 · 4 comments
Open

RPM macro "%{_arch}" in source URL is not evaluated #22

okurz opened this issue Jan 3, 2018 · 4 comments

Comments

@okurz
Copy link
Member

okurz commented Jan 3, 2018

Observation

https://build.opensuse.org/request/show/560971 fails because the source validator fails to parse the rpm macro %{_arch} and therefore rejecting the SR.

Steps to reproduce

osc bco network:telephony skype
osc service localrun download_files

Problem

Seems like https://github.com/openSUSE/obs-service-download_files/blob/master/download_files#L225 evaluates RPM macros but not %{_arch}?

@okurz
Copy link
Member Author

okurz commented Jan 3, 2018

Is there a workaround possible?

@marcus-h
Copy link
Member

marcus-h commented Jan 3, 2018 via email

@DimStar77
Copy link

Erm.. Mis clicked... So again a summary:
As pointed out by @marcus-h, the src.rpm would result being differnt depending on arch this is built on.

The right thing, after thinking about it, would probably be to avoid the arch macro and list the supported ones as source1..source(n) (they have to be in parallel to an ExclusiveArch anyway, as any nonlisted arch would potenitally lead to a non existing source anyway... )

@okurz
Copy link
Member Author

okurz commented Jan 4, 2018

ok, I replaced the macro with explicit statement of x86_64. If you don't want to act on this issue in any way, e.g. improve the error feedback, we could close the issue.

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

No branches or pull requests

3 participants