Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been tasked with creating some RPMs for AIX. I am building the packages on RHEL 5.2 x86_64. While trying to build the packages using rpmbuild they are unable to install the packages on AIX unless they use --ignoreos. They do not want to use the ignoreos flag. What am I missing?
Here is the spec file, it is a test one right now to put a file on the server
[root@rhel52 SPECS]# cat test.spec
Summary: rpmbuild test
Name: test
Version: 1
Release: 1
Source: %{name}.tar
License: commercial
Group: System Environment/Utilities
Buildroot: %{_builddir}/%{name}-%{version}-root
#Requires: kickweb
AutoReqProv: no
Buildarch: noarch
I don't deal with AIX but somehow I get the idea stuff is mssing, like os_compat doesn't include aix.*? Could you please also post 'rpm --showrc' from one of your AIX?
I do see in the /usr/lib/rpm/rpmrc aix, ppc, and all the other os_canon, arch_canon, and os_compat lines. Attached is the output of the rpm --showrc on aix.
OK. Have a look at Building for other platforms of the rpm5.org RPM Guide: "Warning. Set the target with care. Make sure you can really build executable programs for that architecture. If you try to compile a system that uses the GNU configure system to configure the build, your target will likely be ignored", then move to Creating Non-Linux RPMS: " The key issues with cross-building are the following: *You must compile any executables with a cross compiler for the proper target platform. *You must set the target platform in the RPMs you build. *You must manage dependencies, and likely need to turn off the automatic generation of dependencies.".
Does the doc help you get started?
I read through a lot of the max rpm book and will do so again. I am not compiling any packages, just taking repositories of files and tarring up for placement on target systems. I will look through the link that you posted as well. I was just curious to see if anyone has gotten this to work, and what flags they used, or files they modified.
I am not compiling any packages, just taking repositories of files and tarring up for placement on target systems.
Ah, I see. That's not exactly what "creating some RPMs for AIX." and "I am building the packages" conveyed to me. Since you must set the target platform in the RPMs I guess the "Buildarch: noarch" should be aix6.1-something. If that isn't enough you'll have to find out exactly what "--target ppc64-ibm-AIX" should define and %_define it manually. Those defines you could read from your AIX --showrc output.
I have been tasked with creating some RPMs for AIX. I am building the packages on RHEL 5.2 x86_64. While trying to build the packages using rpmbuild they are unable to install the packages on AIX unless they use --ignoreos. They do not want to use the ignoreos flag. What am I missing?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.