From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MFCuz-0007py-Rs for garchives@archives.gentoo.org; Fri, 12 Jun 2009 20:00:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C586E0788; Fri, 12 Jun 2009 20:00:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 47978E0788 for ; Fri, 12 Jun 2009 20:00:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D9F63650FC for ; Fri, 12 Jun 2009 20:00:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.908 X-Spam-Level: X-Spam-Status: No, score=-3.908 required=5.5 tests=[AWL=-0.309, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NbzGsyFLZA9d for ; Fri, 12 Jun 2009 19:59:56 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 8EEBA66497 for ; Fri, 12 Jun 2009 19:59:55 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MFCuk-0007H5-DR for gentoo-user@gentoo.org; Fri, 12 Jun 2009 19:59:50 +0000 Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jun 2009 19:59:50 +0000 Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jun 2009 19:59:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Harry Putnam Subject: [gentoo-user] Introduce Manual manipulation during an emerge Date: Fri, 12 Jun 2009 14:59:53 -0500 Organization: Still searching... Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:3Afy8M8ZKISH6Vp2HELb0bswrS4= Sender: news X-Archives-Salt: e781d6d4-18b4-44f3-a9ee-e44bd1dc089a X-Archives-Hash: acec6b8f3e7ef08e67d884c8093c853a I'm really sorry to keep beating on this portage stuff and I guess I must be something of a dimwit since I find just about anything to do with portage and emerge that is outside `emerge -flags whatever' to be really hard to catch on to, even though (and shouldn't admit this) I've been running gentoo for at least 5 yrs and probably more. I read up on the parts I need at times when I run into trouble and get much coaching and pointers here. But then in a few mnths, with no problems I've forgotten the vast bulk of whatever I picked up. And I mean even when I've made notes... Anyway cutting to the chase: I want to do some manual manipulation to a failing emerge of procmail. emerge -v procmail (details here were posted elsewhere but involves somekind missnaming of getline in the ebuild) It fails but has a simple enough fix. It needs to have a sed exchange take place in the unpacked source. Running `sed -i -e 's/getline/get_line/g' src/*.c src/*.h' In top level of the upacked source will allow it to compile fine. So once all instances of getline are changed to get_line... it works. Now how do I go about doing that right during the emerge? For something like this it seems way overkill to have a separate custom /usr/local/portage where I build my own. Especially since I find that whole process difficult and way overkill for this problem. Further its something that will almost certainly be fixed soon and won't be something I have to attend to again. I'm pretty sure there is some way to introduce custom action during emerge and remember doing something like that before to fix cvs so root could commit. It envolved either a ./configure or make flag that portage didn't employ... somehow, with coaching here... I was able to introduce a non-default flag. Isn't there a simple way to introduce the sed run in procmail sources during emerge? Oh, and to fix cvs again too... with this new install I've started from scratch after nursing one original install and upating over yrs.