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

export environment variable for package on which depgen is run #502

Closed
ignatenkobrain opened this issue Aug 8, 2018 · 3 comments
Closed
Labels

Comments

@ignatenkobrain
Copy link
Contributor

After offline discussion with @ffesti and @Conan-Kudo, it seems that RPM runs depgens per package and seems that rpmfc has information on which package it runs depgen. So we can just export some environment variables which would represent a package so depgens can take advantage of knowing this information.

I will try to hack some impl for this.

@ignatenkobrain ignatenkobrain self-assigned this Aug 8, 2018
@ignatenkobrain
Copy link
Contributor Author

@n3npq that's implementation detail (envvar vs macro).

@ignatenkobrain
Copy link
Contributor Author

@n3npq imagine that you split -devel into -devel + -static packages. My idea was to add pkg-config file to both packages, but make sure that -devel depends on Requires stuff while -static depends on both Requires and Requires.private.

There are more use-cases in Python / Rust worlds, but this pkg-config was the simplest one I could come up with.

@ignatenkobrain
Copy link
Contributor Author

well, you already have Provides: pkgconfig(foo), so we could do something like Requires: (pkgconfig(bar) if pkgconfig-static(foo)). It might be not perfect, but it is doable even today.

@ignatenkobrain ignatenkobrain removed their assignment Oct 15, 2018
ignatenkobrain added a commit to ignatenkobrain/rpm that referenced this issue Oct 15, 2018
Fixes: rpm-software-management#502
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
ignatenkobrain added a commit to ignatenkobrain/rpm that referenced this issue Oct 17, 2018
Fixes: rpm-software-management#502
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
ignatenkobrain added a commit to ignatenkobrain/rpm that referenced this issue Oct 17, 2018
Fixes: rpm-software-management#502
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
ignatenkobrain added a commit to ignatenkobrain/rpm that referenced this issue Oct 17, 2018
Fixes: rpm-software-management#502
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
ignatenkobrain added a commit to ignatenkobrain/rpm that referenced this issue Oct 17, 2018
Fixes: rpm-software-management#502
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant