From rpm-list-admin@freshrpms.net Wed Oct 2 11:44:09 2002 Return-Path: Delivered-To: yyyy@localhost.example.com Received: from localhost (jalapeno [127.0.0.1]) by jmason.org (Postfix) with ESMTP id 77D6A16F03 for ; Wed, 2 Oct 2002 11:44:08 +0100 (IST) Received: from jalapeno [127.0.0.1] by localhost with IMAP (fetchmail-5.9.0) for jm@localhost (single-drop); Wed, 02 Oct 2002 11:44:08 +0100 (IST) Received: from egwn.net (ns2.egwn.net [193.172.5.4]) by dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g9283uK31858 for ; Wed, 2 Oct 2002 09:03:58 +0100 Received: from auth02.nl.egwn.net (localhost [127.0.0.1]) by egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g927u1f09457; Wed, 2 Oct 2002 09:56:01 +0200 Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g927sxf03169 for ; Wed, 2 Oct 2002 09:55:00 +0200 Received: from eecs.berkeley.edu ([63.192.217.110]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0H3C00KKSGNKBC@mta7.pltn13.pbi.net> for rpm-list@freshrpms.net; Wed, 02 Oct 2002 00:54:58 -0700 (PDT) From: Ben Liblit Subject: alsa-driver.spec tweak for homemade kernels To: rpm-zzzlist@freshrpms.net Message-Id: <3D9AA650.2000909@eecs.berkeley.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary_(ID_KtnWPrcWHTTzQa7OHxPjiA)" X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 X-Mailscanner: Found to be clean, Found to be clean Sender: rpm-zzzlist-admin@freshrpms.net Errors-To: rpm-zzzlist-admin@freshrpms.net X-Beenthere: rpm-zzzlist@freshrpms.net X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: rpm-zzzlist@freshrpms.net List-Help: List-Post: List-Subscribe: , List-Id: Freshrpms RPM discussion list List-Unsubscribe: , List-Archive: X-Original-Date: Wed, 02 Oct 2002 00:54:56 -0700 Date: Wed, 02 Oct 2002 00:54:56 -0700 X-Spam-Status: No, hits=0.2 required=5.0 tests=KNOWN_MAILING_LIST,RCVD_IN_MULTIHOP_DSBL, RCVD_IN_UNCONFIRMED_DSBL,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.50-cvs X-Spam-Level: This is a multi-part message in MIME format. --Boundary_(ID_KtnWPrcWHTTzQa7OHxPjiA) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT I use a mostly Red Hat 8.0 system, but prefer to configure and build my kernel by hand. I'd like to humbly offer a tweak to alsa-driver.spec that helps it build cleanly under such circumstances. I recognize that freshrpms.net packages are designed with standard Red Hat in mind, including a standard kernel RPM. However, I hope that Matthias will consider the tweak small enough to justify its incorporation. The diff is attached below. The first part of the diff contains a conditional that checks to see if the expected RPM is installed. If it is, %{karch} is set as before and a new %{krpm} flag is set to 1. If the expected RPM is not installed, then %{karch} is instead set using "uname -p", while %{krpm} is left undefined. The second part of the diff is simpler. We only require that kernel-source be installed if the kernel itself came from an RPM. (If the kernel was hand-built, the presumably the user knows enough to have retained the sources in the expected place.) Again, I realize that I'm operating "off warrantee" by not using a Red Hat kernel RPM. Matthias, if you think this tweak is reasonable and not too ugly, I'd love to see you pick it up. If not, well at least this message will sit in the archives and may help other folks in the future. --Boundary_(ID_KtnWPrcWHTTzQa7OHxPjiA) Content-type: video/mng; name=diffs Content-transfer-encoding: base64 Content-disposition: inline; filename=diffs LS0tIGFsc2EtZHJpdmVyLnNwZWMub3JpZwkyMDAyLTEwLTAxIDEzOjExOjQ0LjAwMDAwMDAw MCAtMDcwMAorKysgYWxzYS1kcml2ZXIuc3BlYwkyMDAyLTEwLTAyIDAwOjM4OjIyLjAwMDAw MDAwMCAtMDcwMApAQCAtOCw3ICs4LDEyIEBACiAlaWYgJS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W5kIE1JREkK --Boundary_(ID_KtnWPrcWHTTzQa7OHxPjiA)-- _______________________________________________ RPM-List mailing list http://lists.freshrpms.net/mailman/listinfo/rpm-list