[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] build local HTCondor rpm with pip dependencies



Hi Jason,

thanks a lot for your answer.

I have build local HTCondor rpms [1] corresponding to the PR [2] using the CentOS7 container and the condor spec file [3].

I wanted to test afterwards the installation of the rpms.

When doing a "yum localinstall xxx" for condor-credmon-oauth (where the "xxx" are all the rpms listed in [1] expect vault and mytoken), I got:

Error: Package: condor-credmon-oauth-23.2.0-0.202310300858.el7.x86_64 (/condor-credmon-oauth-23.2.0-0.202310300858.el7.x86_64)
ÂÂÂÂÂÂÂÂÂÂ Requires: python2-scitokens

When doing a "yum localinstall xxx" for condor-credmon-mytoken (where the "xxx" are all the rpms listed in [1] expect vault and oauth), I got:

Error: Package: condor-credmon-mytoken-23.2.0-0.202310300858.el7.x86_64 (/condor-credmon-mytoken-23.2.0-0.202310300858.el7.x86_64)
Requires: flaat

I had previously pip-installed both packages on my host.

Thanks a lot in advance for your help!

Cheers,
Benoit

[1] condor-upgrade-checks-23.2.0-0.202310300137.el7.x86_64.rpm condor-debuginfo-23.2.0-0.202310300137.el7.x86_64.rpm condor-vm-gahp-23.2.0-0.202310300137.el7.x86_64.rpm condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-devel-23.2.0-0.202310300137.el7.x86_64.rpm minicondor-23.2.0-0.202310300137.el7.x86_64.rpm condor-annex-ec2-23.2.0-0.202310300137.el7.x86_64.rpm condor-kbdd-23.2.0-0.202310300137.el7.x86_64.rpm python2-condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-credmon-mytoken-23.2.0-0.202310300137.el7.x86_64.rpm condor-tarball-23.2.0-0.202310300137.el7.x86_64.rpm python3-condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-test-23.2.0-0.202310300137.el7.x86_64.rpm

[2] https://github.com/htcondor/htcondor/pull/1857

[3] https://github.com/htcondor/htcondor/blob/main/build/packaging/rpm/condor.spec

On 30/10/2023 15:59, Jason Patton via HTCondor-users wrote:
Hi Benoit,

Can you clarify what you mean by "issue with some dependencies installed via pip (flaat and cryptography)"? Are the credmons complaining that they cannot load flaat and/or cryptography? We may need to add some (rpm-based) dependencies, the credmon installs should not depend on packages being installed from pip.

Jason

On Mon, Oct 30, 2023 at 3:20âAM Benoit Roland <benoit.roland@xxxxxxx> wrote:
Dear all,

with Tim's advice, I have build a local HTCondor rpm corresponding to the PR [1].

I am building the rpm within the CentOS7 container.

I have modified the condor spec file to include the new executables and corresponding configuration.

The rpm building seems to be successful, and I got at the end a collection of rpms [2].

To test the rpm, I wanted to make an installation using "yum localinstall" followed by the list of rpms [2].

At this level, I got some issue with some dependencies installed via pip (flaat and cryptography).

I guess that "yum" can not detect packages installed via pip.

On the other end, some other packages, like the "credmon-oauth" and the "credmon-vault", are also specifying pip-installed dependencies
in the condor spec file. So there should be some way to circumvent this issue.

Thanks a lot in advance for your help!

Cheers,
Benoit

[1] https://github.com/htcondor/htcondor/pull/1857

[2] condor-upgrade-checks-23.2.0-0.202310300137.el7.x86_64.rpm condor-debuginfo-23.2.0-0.202310300137.el7.x86_64.rpm condor-vm-gahp-23.2.0-0.202310300137.el7.x86_64.rpm condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-devel-23.2.0-0.202310300137.el7.x86_64.rpm minicondor-23.2.0-0.202310300137.el7.x86_64.rpm condor-annex-ec2-23.2.0-0.202310300137.el7.x86_64.rpm condor-kbdd-23.2.0-0.202310300137.el7.x86_64.rpm python2-condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-credmon-mytoken-23.2.0-0.202310300137.el7.x86_64.rpm condor-tarball-23.2.0-0.202310300137.el7.x86_64.rpm python3-condor-23.2.0-0.202310300137.el7.x86_64.rpm condor-test-23.2.0-0.202310300137.el7.x86_64.rpm

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/