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

Spec query use bconf #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcus-h
Copy link
Member

This fixes the issues mentioned in 1b3d2ee#commitcomment-28049342

marcus@linux:~/obs-service-source_validator> ./70-baselibs ~/openSUSE\:Factory/glibc/
marcus@linux:~/obs-service-source_validator> ./70-baselibs ~/openSUSE\:Factory/gdb/
marcus@linux:~/obs-service-source_validator> ./70-baselibs ~/openSUSE\:Factory/tevent/
marcus@linux:~/obs-service-source_validator>

The question is which buildconfig we should use. For now, we use /usr/lib/build/configs/sl15.5.conf,
but this (of course) has already an outdated suse_version macro (wrt. factory).
Alternatively, we could always fetch the latest factory buildconfig from the obs... (assumptions:
internet access is possible and the source_validator is only used for factory)

@DimStar77, @bugfinder and others: any opinions?:)

This reverts commit 1b3d2ee.
Using --no-conditionals can break macro expansion. For instance,
if we have a spec file like this
%if ...
%define foo 123
%else
%define foo 456
%endif

then %{foo} always expands to 456 (in case of the 70-baselibs script
this is usually not what we want).
Without a buildconfig, macros like %suse_version etc. are not defined,
which yields to wrong results (see, for instance,
openSUSE@1b3d2ee#commitcomment-28049342).
By default, we use /usr/lib/build/configs/sl15.5.conf. Moreover,
a "--config" option is added to override the default.
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

Successfully merging this pull request may close these issues.

1 participant