-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Add AIX platform capability to rpm builds #821
Comments
Documentation from IBM that may be useful: |
You may need to map the According to https://developer.ibm.com/articles/configure-yum-on-aix/ it could be I would try setting the info.RPM.Arch as |
Same is true for the OS error https://www.unix.com/aix/266963-tip-problem-rpm-different-operating-system.html Looks like it needs to be |
I'm not sure that will help. It is building PPC for Linux just fine. It seems to just be ignoring it for AIX period. It isn't that they fail to work, it is that they just don't get generated at all. |
I forgot to come back to this, but the rpm it generates is empty. I guess that is more accurate than it doesn't get generated at all. |
when I used # nfpm example configuration file
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
name: "aix-somefile"
arch: "ppc64"
platform: "aix6.1"
version: "1.0.0"
maintainer: "Fake Guy"
rpm:
arch: ppc
contents:
- src: someFile
dst: /usr/lib/someFile
type: config|noreplace
file_info:
mode: 0644
owner: root
group: root and had |
Okay, I'll go over my config again (I only included a stripped down version here as an example, our production config is very large covering many OSes), as it sounds like I may have screwed something else up somewhere. Then I'll try your other suggestions. Thank you. Assuming your other suggestions work, it would just be a simple PR to add the mapping to nfpm it looks like. I'm happy to make that. |
So, a mapping in the code you linked wont work, because it only applies to AIX (Linux builds are correctly ppc for 32bit and ppc64 for 64 bit). That said, overriding them manually like you did in your example, worked perfectly as far as I can tell. However, this doesn't work for goreleaser itself, because it isn't aware of the platform and rpm/arch fields. We can address those in goreleaser/goreleaser#4853 |
Is your feature request related to a problem? Please describe.
I need to support AIX, and currently I can only do this by using tar packages. Goreleaser supports building AIX binaries, so it would be nice to be able to make their RPM files using nfpm/goreleaser
Describe the solution you'd like
Add AIX as a supported platform for nfpm's rpm packager.
Describe alternatives you've considered
None, we use goreleaser exclusively, so nfpm is a perfect fit.
Search
Code of Conduct
Additional context
I did try this very simple nfpm configuration as a test:
However, this was the result:
The os error makes sense, but the arch error doesn't.
The text was updated successfully, but these errors were encountered: