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

package for Amazon Linux 2023 #218

Open
danie-dejager opened this issue Dec 27, 2024 · 2 comments
Open

package for Amazon Linux 2023 #218

danie-dejager opened this issue Dec 27, 2024 · 2 comments

Comments

@danie-dejager
Copy link

danie-dejager commented Dec 27, 2024

Hi,

Would it be possible to add AL2023 to your copr repos for Tracer? The default spec fails to build as AL2023 is based on Fedora but does not have dnf5. I removed the dependency and built tracer in my own copr repo.
https://copr.fedorainfracloud.org/coprs/faramirza/al2023/build/8450415/
Also, I do not see the dnf plugin, dnf-plugins-extras-tracer, as part of the spec file as mentioned here:
https://tracer.readthedocs.io/en/latest/get-tracer.html

@danie-dejager danie-dejager changed the title package for Amzon Linux 2023 package for Amazon Linux 2023 Dec 27, 2024
@FrostyX
Copy link
Owner

FrostyX commented Dec 31, 2024

Hello @danie-dejager,
thank you for the report.

In the specfile, we have a condition to install the DNF5 package only on Fedora:

%if 0%{?fedora}
BuildRequires:  python3-libdnf5
%endif

So this looks like an Amazon Linux bug to me. Check this out:

$ docker run -it amazonlinux:latest
bash-5.2# rpm --eval "%{?fedora}"
34

I know that Amazon Linux is based on / forked from Fedora but this surely cannot be correct, can it? For example Centos is forked from Fedora to and it evaluates the macro to nothing:

$ docker run -it quay.io/centos/centos:stream9
[root@b935674e81de /]# rpm --eval "%{?fedora}"

Also, I do not see the dnf plugin, dnf-plugins-extras-tracer, as part of the spec file as mentioned here:

The DNF plugin is in the dnf-plugins-extras repository

@FrostyX
Copy link
Owner

FrostyX commented Dec 31, 2024

Would it be possible to add AL2023 to your copr repos for Tracer?

But yes, definitely. Once we resolve the issue, I will enable those chroots.

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

2 participants