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

I have a use case to build RPM for RHEL9, First I have downloaded the source.tar.gz and used the redhat spec file. #1166

Closed
raonelakurti opened this issue Jun 24, 2023 · 3 comments
Assignees
Labels

Comments

@raonelakurti
Copy link

raonelakurti commented Jun 24, 2023

I have a use case to build RPM for RHEL9, First I have downloaded the source.tar.gz and used the redhat spec file.

To Reproduce

I have used following spec.file,
https://github.com/raw/Exa-Networks/exabgp/main/redhat/python-exabgp.spec

Expected behavior

Expectation is build and rpm in the RPM folder.

Environment (please complete the following information):

  • OS: [RHEL9]
Error:

+ DOCDIR=/Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/share/doc/exabgp-exabgp
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/share/doc/exabgp-exabgp
+ cp -pr README.md /Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/share/doc/exabgp-exabgp
+ RPM_EC=0
++ jobs -p
+ exit 0


RPM build errors:
    File not found: /Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/share/exabgp*

When I have checked the path under /Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/share/ I didn't see exabgp binaries didn't exist. And also checked /Users/rnelakurti/rpmbuild/BUILDROOT/exabgp-4.2.16-1.el9.x86_64/usr/sbin/ exabgp binaries exist. I have tried multiple combinations to over the issue, I am out of options.

@thomas-mangin

@garybuhrmaster
Copy link
Contributor

While not directly responsive to your issue, a recent version of the 4.2 branch (4.2.21) is available in EPEL9 (currently only in updates-testing as it has not yet received sufficient karma to be pushed to stable).  If you want to try to use the EPEL9 version of exabgp, you can issue a command of the form:

dnf --refresh --enablerepo=epel-testing install exabgp

The packaging has been modified from the generic spec file on this site to use (what the RH python packagers call) "modern" python build macros available in Fedora and EL9, along with various other RH distro specific adjustments (all distros have slight differences in packaging preferences).

Since it uses the modern python build macros which are only available in recent releases (and some people may still be using older exabgp releases in older OS releases) it is not clear if a PR to update to the modern build macros is appropriate for this repo (although opinions are welcome), but you can, of course, look at the spec file in the package to see how it is working.

It is the intention of the Fedora exabgp packager (that would be me) to keep the EPEL9 version in sync with the latest exabgp version(s) until/unless some dependencies cannot be met.

@garybuhrmaster
Copy link
Contributor

Since I was asked out of band, the spec file (and other associated files) being used for the EPEL9 build is located in fedora dist-git and can be found at: https://src.fedoraproject.org/rpms/python-exabgp/tree/epel9

@thomas-mangin
Copy link
Member

Thank you will update the README.

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

3 participants