-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix for #1627 #2053
Fix for #1627 #2053
Conversation
When packaging a deb sometimes the architecture comes through as part of the provides (not sure why) but this causes problems with the deb package as it seems to only ever expect one set of round brackets which is the version indicator
When packaging a deb sometimes a path to a binary comes into the requires field i.e. /bin/sh but this isn't valid for control files. Strip this out
When packaging a deb sometimes a path to a binary comes into the requires field i.e. /bin/sh but this isn't valid for control files. Strip this out
Strip rpmlib dependencies
I haven’t tested this, but the change seems like it’s a good solution. @JordanStopford you ok with me merging? |
We’ve done some testing internally (mainly Ubuntu on PowerPC little endian)
and it does fix the issue with our RPM conversion.
I found another similar issue today with dependency scanning and have
pushed some more commits to my repo. Do you want those in a separate PR?
These changes centered around two issues:
1. Dependencies on binaries (like /bin/sh) don’t seem to be allowed in dpkg
control files so these are now stripped out
2. RPM specific dependencies (like rpmlib) were being passed through and
shouldn’t be
…On Tue, 23 Apr 2024 at 20:54, Jordan Sissel ***@***.***> wrote:
I haven’t tested this, but the change seems like it’s a good solution.
@JordanStopford <https://github.com/JordanStopford> you ok with me
merging?
—
Reply to this email directly, view it on GitHub
<#2053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEN7W2V4FHDAVJG2CMQ2D3Y624ANAVCNFSM6AAAAABEMTAAL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZTGMZDEOBTGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It’s ok 👍 to include multiple changes in a single PR. My request for keeping this one PR is to update the PR description to refer to the things you improve. Otherwise, yes, all changes look like good improvements :) |
@jordansissel I've amended the PR description above. Thanks for your feedback! |
I tested manually with the example from #1627 (
Testing your patch looks good:
|
When packaging a deb sometimes the architecture comes through as part of the provides (not sure why) but this causes problems with the deb package as it seems to only ever expect one set of round brackets which is the version indicator
Also fixed another issue where ppc64le packages from RPM wouldn't install properly on DEB based systems as they use ppc64el.
Also fixed another issue where invalid dependencies were being put in the control file (rpmlib dependencies and file path dependencies i.e. RPMs that depend on /bin/sh)
This has got fpm working for RPMs->DEBs on our systems for ppc64le packages. Appreciate that this fix might not be "complete" or comprehensive in any way, shape or form so any feedback is welcome.