PDA

View Full Version : pSeries



hitkrdnk
November 17th, 2006, 09:32 AM
Are there any compiled versions that are compatible with SuSE Enterprise 9 and IBM pSeries?

paddy
November 17th, 2006, 09:41 AM
Zmanda does not have rpms for SLES9 and PowerPC architecture. We can help in building one if you have the hardware.

Paddy

hitkrdnk
November 17th, 2006, 09:48 AM
I have the hardware and the time

paddy
November 17th, 2006, 09:51 AM
Great.

1. Download source rpms from the Zmanda downloads (http://www.zmanda.com/downloads.html) page

2. You will have to modify amanda.spec file for powerpc build. Let me know if you need help with this. It will take couple of iterations to get it right.

Thanks,
Paddy

hitkrdnk
November 17th, 2006, 10:22 AM
I don't see the "amanda.spec" file in the source that I downloaded (tar file)

paddy
November 17th, 2006, 10:24 AM
If you want to build rpms for amanda, download source rpm. If you install the rpm, you should find the spec file /usr/src/redhat/SPECS directory.

Paddy

hitkrdnk
November 17th, 2006, 10:49 AM
# rpm -ih amanda-2.5.1p2-1.src.rpm
warning: amanda-2.5.1p2-1.src.rpm: V3 DSA signature: NOKEY, key ID 3c5d1c92
warning: user paddy does not exist - using root
warning: group paddy does not exist - using root
warning: user paddy does not exist - using root7%)
warning: group paddy does not exist - using root
########################################### [100%]
warning: user paddy does not exist - using root
warning: group paddy does not exist - using root


however when I run "rpm -qa | grep -i amanda" it comes back empty

paddy
November 17th, 2006, 11:02 AM
Check for the following files in /usr/src/redhat/{SOURCES, SPECS} directory.

amanda-2.5.1p2.tar.gz
amanda.spec
community-rpm-Makefiles.patch.gz

Padd

hitkrdnk
November 17th, 2006, 11:06 AM
okay I found the amanda.spec file in /usr/src/packages/SPECS/

Can you help me out with what needs to be changed?

paddy
November 17th, 2006, 03:22 PM
I guess you are building for powerpc on sles9. Make the following change in amanda.spec

--- amanda.spec 2 Oct 2006 19:16:38 -0000 1.55
+++ amanda.spec 18 Nov 2006 00:01:24 -0000
@@ -89,7 +89,7 @@
%if %{is_sles9} || %{is_sles10}
%define dist SuSE
%define disttag sles
-%define build_host i586-suse-linux
+%define build_host powerpc-suse-linux
%define distver %(cat /etc/SuSE-release | grep VERSION | awk '{split($_,v); print v[3]}')
%define rpm_group Productivity/Archiving/Backup
%endif

If you are building 64bit binaries, you have to remove -m32 from CFLAGS and CXXFLAGS.

Paddy

hitkrdnk
November 20th, 2006, 05:36 AM
Where does the amanda.spec file get read in? I can't find it anywhere in the source.

paddy
November 20th, 2006, 08:36 AM
amanda.spec is read by rpmbuild

After making modifications to amanda.spec

Run rpmbuild -bb --define "build_sles9 1" <path to amanda.spec>/amanda.spec

Paddy

hitkrdnk
November 20th, 2006, 10:00 AM
I had some pre-requisites when I attempted to do the rpmbuild. I went and found the SuSE CDs for POWER and it already had an rpm for amanda on it. All I had to do was install the RPM and I should be up and running. Thank you for your help.