open-sw / pkg-cacher

This is a transparent cache for Debian and RedHat packages (.deb and .rpm). It is based on apt-cacher available on Debian. It has been enhanced to handle RedHat repositories and files whose names are the same but the contents are different.
15 stars 12 forks source link

Addition of UnLzma and UuXz breaks RPM for rhel6 #21

Open jkugler opened 10 years ago

jkugler commented 10 years ago

So the latest merge, which adds support for quite a few things (and fixes SSL. I think. Haven't been able to test it) means the RPM can no longer be installed on RHEL6 because there are no packages for IO::Uncompress:UnLzma nor IO::Uncompress::UnXz, nor are there packages in EPEL. Building and installing the dependency chain needed for said modules would not be easy right now*.

Would it be possible to have an RHEL6 spec file (and maybe a make rhel6rpms) that would exclude those as dependencies? Maybe wrap some check code around the code that invokes UnLzma and UnXz? It could then spit something to the error log about that feature not being available due to missing packages.

Of course, I'm open to other ideas too. I might have to break down and build all the dependencies required, then install them on the builders, then build more dependencies, etc., until I'm to the place where I can build the required end product. :)

Robert-Nelson commented 10 years ago

Ok, I'll make them optional. They're only needed for Debian caches so it just means that Debian might not work if pkg-cacher is run on RHEL.

----- Original Message -----

| From: "Joshua Kugler" notifications@github.com | To: "open-sw/pkg-cacher" pkg-cacher@noreply.github.com | Sent: Tuesday, April 8, 2014 3:45:43 PM | Subject: [pkg-cacher] Addition of UnLzma and UuXz breaks RPM for rhel6 (#21)

| So the latest merge, which adds support for quite a few things (and fixes | SSL. I think. Haven't been able to test it) means the RPM can no longer be | installed on RHEL6 because there are no packages for IO::Uncompress:UnLzma | nor IO::Uncompress::UnXz, nor are there packages in EPEL. Building and | installing the dependency chain needed for said modules would not be easy | right now*.

| Would it be possible to have an RHEL6 spec file (and maybe a make rhel6rpms) | that would exclude those as dependencies? Maybe wrap some check code around | the code that invokes UnLzma and UnXz? It could then spit something to the | error log about that feature not being available due to missing packages.

| Of course, I'm open to other ideas too. I might have to break down and build | all the dependencies required, then install them on the builders, then build | more dependencies, etc., until I'm to the place where I can build the | required end product. :)

| * No, we can't just do "cpan install" because we need RPMs (either built by | us, or built by others) for automated installs of packages.

| — | Reply to this email directly or view it on GitHub .

jkugler commented 10 years ago

Yeah, I figured that would be the basic outcome. I suppose document the limitation, and go from there.