rpmbuild for AIX


 
Thread Tools Search this Thread
Operating Systems AIX rpmbuild for AIX
# 1  
Old 01-04-2011
rpmbuild for AIX

Help !

Could someone please tell me where I can get the "rpmbuild" binary for AIX ?
I'm on AIX 6.1 and a web site
Code:
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/ezinstall.html

has the RPM for "rpm-build" but all it contains is a few scripts etc. and it doesn't include the rpmbuild binary.
The output from the "rpm -ql rpm-build" command is as follows;
Code:
[root@rawdphs201l] scripts # rpm -ql rpm-build
/opt/freeware/lib/rpm/check-prereqs
/opt/freeware/lib/rpm/cpanflute
/opt/freeware/lib/rpm/find-lang.sh
/opt/freeware/lib/rpm/find-provides.perl
/opt/freeware/lib/rpm/find-requires.perl
/opt/freeware/lib/rpm/get_magic.pl
/opt/freeware/lib/rpm/getpo.sh
/opt/freeware/lib/rpm/http.req
/opt/freeware/lib/rpm/magic.prov
/opt/freeware/lib/rpm/magic.req
/opt/freeware/lib/rpm/perl.prov
/opt/freeware/lib/rpm/perl.req
/opt/freeware/lib/rpm/rpmdiff
/opt/freeware/lib/rpm/rpmdiff.cgi
/opt/freeware/lib/rpm/rpmgettext
/opt/freeware/lib/rpm/rpmputtext
/opt/freeware/lib/rpm/u_pkg.sh

Regards,

Harry Werkman

Last edited by zaxxon; 01-11-2011 at 05:02 AM.. Reason: code tags
# 2  
Old 01-04-2011
try: rpm -bb <specfile>
# 3  
Old 01-04-2011
rpm -bb works a treat, however the resultant rpm filename has aix6.1 in it even when I specify "BuildArch: noarch" in the SPEC file.
Any idea's ?

Regards,

Harry W.
# 4  
Old 01-05-2011
Try this
# 5  
Old 01-10-2011
Almost got it working now.
When I try and deploy the rpm to a Linux x86 machine using the command;
Code:
rpm -i --ignoreos --nodeps /mnt/build/phoenix/phoenix-8-0.4.5.aix6.1.noarch.rpm

i get an error;
error: unpacking of archive failed on file : cpio: Archive file not in header

The RPM only contains scripts and config files for Oracle Enterprise Service Bus and no binaries.

The output from the RPM build phase (on an AIX 6.1 machine) is as follows;
Code:
Building target platforms: x86_64-redhat-linux-gnu
Building for target x86_64-redhat-linux-gnu
Executing(%prep): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.14019
+ umask 022
+ cd /home/phoenix/release/BUILD
+ cd /home/phoenix/release/BUILD
+ rm -rf phoenix-8
+ tar -xf /home/phoenix/release/SOURCES/phoenix-8.0.4.5.tar
+ cd phoenix-8
+ /bin/id -u
+ [ 0 = 0 ]
+ /bin/chown -Rhf root .
+ /bin/id -u
+ [ 0 = 0 ]
+ /bin/chgrp -Rhf system .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.31766
+ umask 022
+ cd /home/phoenix/release/BUILD
+ cd phoenix-8
+ exit 0
Executing(%install): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.31766
+ umask 022
+ cd /home/phoenix/release/BUILD
+ cd phoenix-8
+ cp -rf /home/phoenix/release/BUILD/phoenix-8 /var/tmp/phoenix-buildroot
+ exit 0
Processing files: phoenix-8-0.4.5
Finding  Provides: (using /opt/freeware/lib/rpm/find-provides)...
Finding  Requires: (using /opt/freeware/lib/rpm/find-requires)...
PreReq: /bin/sh
Requires: /bin/bash /bin/sh /usr/bin/bash
Wrote: /home/phoenix/release/RPMS/noarch/phoenix-8-0.4.5.aix6.1.noarch.rpm
Executing(%clean): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.815
+ umask 022
+ cd /home/phoenix/release/BUILD
+ cd phoenix-8
+ [ /var/tmp/phoenix-buildroot != / ]
+ rm -rf /var/tmp/phoenix-buildroot
+ exit 0

Moderator's Comments:
Mod Comment Start using code tags - you got a PM with a guide, thanks.

Last edited by zaxxon; 01-11-2011 at 05:02 AM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Linux

Building a combined package for 32-bit and 64-bit using rpmbuild

I have a combined package for 32-bit and 64-bit Linux platform. On 64-bit system, all files are getting installed whatever mentioned in the %files section of the spec file.(Both 32-bit and 64-bit files). On 32-bit system also, all files are getting installed whatever mentioned in the %files... (1 Reply)
Discussion started by: snreddy_gopu
1 Replies

4. AIX

Nim on AIX 7.1 used to migrate AIX 5.3 to AIX 6.1...is possible?

Using nimadm: nimadm -j nimadmvg -c sap024 -s spot_6100 -l lpp_6100 -d "hdisk1" -Y Initializing the NIM master. Initializing NIM client sap024. 0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT spot_6100 (6.1.3.4) does not match the NIM master's level (7.1.1.2).... (2 Replies)
Discussion started by: sciacca75
2 Replies

5. Linux

rpmbuild, how to specify a different source and destination path for files

I'd like to specify a different build and deployment path for files, by default the same path is used for both build and install, I wasn't able to find a way to make these different. With Solaris pkgadd, one can specify different paths in prototype, so I would assume something like that is possible... (0 Replies)
Discussion started by: tiburblium
0 Replies

6. Red Hat

rpmbuild error --- Symlink points to BuildRoot:

hi all, i am trying to create rpm for bzip2, in building i am getting following error message. also i am building as non-root user. + rm -rf /home/rpmuser/rpmbuild/BUILDROOT/bzip2-1.0.6-6.i386/usr/local/bin/bzcmp + ln -s -f... (0 Replies)
Discussion started by: alexzander18
0 Replies

7. Linux

rpmbuild on CentOS

Hi I have installed Linux CentOS release 5.3 (kernel 2.6.18-128.EL5PAE) on the server with following details : Model : HP ProLiant BL460c G7 After installing OS I’m not able to see the NICs installed on the machine. I installed rpm file from the link: ... (0 Replies)
Discussion started by: girish_shukla
0 Replies

8. AIX

How to upgrade AIX Firmware & TL Maintenance Level in AIX

Steps to upgrade AIX TL ( technology Level ) / Maintenance Level in AIX ( including Firmware HMC VIOS ) This article or post covers upgrades for - Hardware Management Console ( HMC ) - Firmware ( also known as microcode ) - VIO ( Virtual I/O Server = PowerVM ) - AIX Version, Technology... (2 Replies)
Discussion started by: filosophizer
2 Replies

9. Red Hat

rpmbuild error

Hi, So i am trying to wu-ftpd on my centos 5 Machine I download src.rpm file from redhat site. File name is : wu-ftpd-2.6.1-20.src.rpm This is what i did to install. rpm -ivh wu-ftpd-2.6.1-20.src.rpm cd /usr/src/redhat/SPECS/ after this i ran this command: rpmbuild -bb... (0 Replies)
Discussion started by: email-lalit
0 Replies
Login or Register to Ask a Question