From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id AC5AC304FC for ; Tue, 29 Aug 2000 16:25:22 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id QAA09551 for axp-list@listman.redhat.com; Tue, 29 Aug 2000 16:25:22 -0400 Received: from alpha-gw.alpha-processor.com (alpha-gw.alpha-processor.com [192.233.59.9]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id QAA09546 for ; Tue, 29 Aug 2000 16:25:22 -0400 Received: from OBSIDIAN by alpha-gw.alpha-processor.com via smtpd (for mail.redhat.com [199.183.24.239]) with SMTP; 29 Aug 2000 20:25:46 UT Received: from alphalinux.org (obsidian.alphalinux.org [127.0.0.1]) by obsidian.alphalinux.org (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id QAA11249 for ; Tue, 29 Aug 2000 16:30:24 -0500 X-Authentication-Warning: obsidian.alphalinux.org: Host obsidian.alphalinux.org [127.0.0.1] claimed to be alphalinux.org Message-ID: <39AC2B70.25A09892@alphalinux.org> Date: Tue, 29 Aug 2000 16:30:24 -0500 From: Peter Petrakis Organization: AlphaLinux Organization X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: RPM short circuit was Re: Success with KDE2b4 References: <200008291729.LAA26495@ellpspace.math.ualberta.ca> <00082914033701.14216@chaos.math.twsu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors > Yeah, but sneaking in weird stuff is so much fun. I've had to change the > source of several different packages to get them to compile. I've always ended > up re-tar.gz'ing (<- now that is an interesting word) them and having to start > everything over from scratch. It would be nice to selectively move from > compiling, to installing, and finally to wrapping a binary package one step at > a time. Yes. This would be a vaulable extention indeed. Especially when you're packaging something that takes a long time to compile like for example gcc. > > It is possible to create and use another spec file which will be doing > > mostly nothing until an installation phase. Like one for Netscape from > > DU. :-) Techically this will be a different rpm archive then the one you > > tried to build in the first place. Either redefine prep to do mostly > > nothing or prepare "sources" from your current compilation tree. > > Do not unpack on the top what you compiled or you will be starting > > from scratch again. The first action in a normal prep is 'rm -rf ...'. That's one way of doing it though I would like to keep things as simple as possible. Having a couple differnet versions of spec files that have different purposes is kind of a pain. > What is with that 'rm -rf' thing anyway? I can understand the need to delete > old binary trees, but why not do the same as the removing of the /var/tmp > build roots. Leave it as a command after the prep. Basically without that you > could simply comment out the 'rm -rf' and not have to rebuild all the object > files. Also, can I changed the default behavior of the %prep macro? Indeed. Passing a command flag that will change the default behavior of %prep would be ideal. That or you 'could' define your own macro to use instead of %prep that allowed such things in /usr/lib/rpm/macros. Peter -- www.alphalinux.org Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org "Oh my God! They killed Xena! You bastards!!" " Who the hell are you!? Name's Ash Housewares..."