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

Dependency tracking does not work with macros in BuildRequires #2665

Open
dschmidt opened this issue Feb 13, 2017 · 2 comments
Open

Dependency tracking does not work with macros in BuildRequires #2665

dschmidt opened this issue Feb 13, 2017 · 2 comments
Labels
Backend Things regarding the OBS backend Bug

Comments

@dschmidt
Copy link

dschmidt commented Feb 13, 2017

Problem description or feature wish

I created a dep-filesystem package and a dep-somepackage that depends on the filesystem package. Both times the dep-Prefix is defined in prjconf as %{_dep_pkg_prefix}. Accordingly the spec files contain only references to %{_dep_pkg_prefix}-filesystem and %{_dep_pkg_prefix}-somepackage

Currently on initial build dep-somepackage stays unresolvable until dep-filesystem succeeded.

This has another unwanted consequence:
If there's a third package dep-somelib, that depends on dep-filesystem and dep-somepackage depends on that and dep-filesystem it will be rebuilt when either of them finishes its build, triggering way too many rebuilds.

Expected result

When an RPM spec file provides packages with macros in their names, they should be correctly tracked.
When building the repository dep-somepackage should be blocked by dep-filesystem.

A reference to a public OBS instance showing the issue

https://build.opensuse.org/project/monitor/home:pansenmann:dependencies

@jnweiger
Copy link
Member

jnweiger commented Feb 13, 2017

Mabye unrelated, but today I had a situation, where changing prjconf did not start any rebuilds. Manually triggered rebuilds started immediately.

@hennevogel hennevogel added Backend Things regarding the OBS backend Bug labels Feb 15, 2017
@m407
Copy link

m407 commented Jul 13, 2017

May by it is unrelated but I found that versions are also ignored in BuildRequires:
My spec contains
BuildRequires: php >= 7.0.0
But while build process I get
[ 4s] [138/141] cumulate php5-5.5.14-63.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Things regarding the OBS backend Bug
Projects
None yet
Development

No branches or pull requests

4 participants