From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Rigby Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: RPM build for 4.0x Date: Wed, 04 Sep 2002 10:02:35 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <5.1.1.5.2.20020904095844.01a28140@imap.qut.edu.au> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: main.gmane.org 1031097760 4222 127.0.0.1 (4 Sep 2002 00:02:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 00:02:40 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17mNd0-00015y-00 for ; Wed, 04 Sep 2002 02:02:39 +0200 Original-Received: (qmail 5787 invoked by uid 5); 4 Sep 2002 00:04:10 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5778 invoked by uid 49493); 4 Sep 2002 00:04:10 -0000 Original-Received: from a.rigby@qut.edu.au by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. Clear:. Processed in 0.407337 secs); 04 Sep 2002 00:04:10 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 4 Sep 2002 00:04:10 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1W00FBG06XWD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 03 Sep 2002 20:04:10 -0400 (EDT) Original-Received: from tu01m3.qut.edu.au (mail.qut.edu.au [131.181.127.183]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1W00G4Q06R4G@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 03 Sep 2002 20:04:05 -0400 (EDT) Original-Received: from its-css-ar.qut.edu.au (css-ar.its.dias.qut.edu.au [131.181.124.122]) by mail.qut.edu.au (PMDF V5.2-33 #46659) with ESMTPA id <0H1W0ZJKL06FUA@mail.qut.edu.au> for tru64-unix-managers@ornl.gov; Wed, 04 Sep 2002 10:03:52 +1000 (EST) X-Sender: rigbya@imap.qut.edu.au Original-To: tru64-unix-managers@ornl.gov X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Xref: main.gmane.org gmane.os.tru64.managers:1571 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1571 Thanks to Ian Mortimer for all his help in providing a solution. I haven't tried the build option specified as time was short, but the binaries supplied worked a treat. Build: The attached rpm spec file shows the steps needed to get it to compile. Building required gcc and gnu make as well as a patch supplied by Ian. Binaries: From Ian (installed under /usr/local directory only) Probably built on 4.0E or F and will run under F (Ian). I actually ran them up on a 4.0d box which also worked. I'm guessing that any 4.0x release would work. Will test this further in due course. Thanks Adam. At 03:18 PM 22/08/2002 +1000, Adam Rigby wrote: >Hi all, > >I have a problem in that I have been forced to implement RPM's on Tru64 >boxes of varying versions (4.0d - 5.1a). Now, RPM as a package manager >only started being supported by the newhp from v5.1 up. > >My question is: Has anyone built RPM for a 4.0x OS release? If so, I'd >very much like to here from you. > >Cheers >Adam. RPM Spec: Summary: The Red Hat package management system. Name: rpm Version: 3.0.5 Release: 7 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-%{version}.tar.gz Patch: %{name}-%{version}.patch Copyright: GPL BuildRoot: /var/tmp/%{name}-root Prefix: /usr/local %description The Red Hat Package Manager (RPM) is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. Each software package consists of an archive of files along with information about the package like its version, a description, etc. %package devel Summary: Development files for applications which will manipulate RPM packages. Group: Development/Libraries Prefix: %{prefix} %description devel This package contains the RPM C library and header files. These development files will simplify the process of writing programs which manipulate RPM packages and databases. These file are intended to simplify the process of creating graphical package managers or any other tools that need an intimate knowledge of RPM packages in order to function. This package should be installed if you want to develop programs that will manipulate RPM packages and databases. %prep %setup -q %patch -p1 ex lib/rpmrc.c <<-! /\/etc\/rpmrc/s??%{prefix}&? wq ! ex lib/macro.c <<-! /\/usr\(\/lib\/rpm\/macros\)/s??%{prefix}\1? /\/etc\/rpm\/macros/s??%{prefix}&? wq ! %build varprefix=%{prefix}/var CFLAGS='-O2' LDFLAGS=-s ./configure \ --prefix=%{prefix} --disable-nls --with-included-gettext \ --disable-v1-packages ex rpmrc <<-! /^macrofiles:/s?/etc?%{prefix}/etc?g wq ! gmake %install rm -rf $RPM_BUILD_ROOT gmake DESTDIR="$RPM_BUILD_ROOT" install { cd $RPM_BUILD_ROOT%{prefix} strip ./bin/rpm strip ./bin/rpm2cpio } gzip -9nf $RPM_BUILD_ROOT%{prefix}/man/man*/* { cd $RPM_BUILD_ROOT%{prefix}/lib/rpm for f in $(grep -l /usr/lib/rpm *) do ex $f <<-! %g?/usr/lib/rpm?s??%{prefix}/lib/rpm?g wq ! done } # Create header for virtual package spec. cat > $RPM_BUILD_ROOT%{prefix}/lib/rpm/os-base-header.spec <