Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 66196 invoked from network); 22 Nov 2007 01:44:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2007 01:44:21 -0000 Received: (qmail 82240 invoked by uid 500); 22 Nov 2007 01:44:08 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 82131 invoked by uid 500); 22 Nov 2007 01:44:07 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 82120 invoked by uid 99); 22 Nov 2007 01:44:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2007 17:44:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bojan@rexursive.com designates 203.171.74.242 as permitted sender) Received: from [203.171.74.242] (HELO beauty.rexursive.com) (203.171.74.242) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2007 01:44:10 +0000 Received: from [172.27.0.24] (shrek.rexursive.com [172.27.0.24]) by beauty.rexursive.com (Postfix) with ESMTP id 3E2964038F for ; Thu, 22 Nov 2007 12:43:48 +1100 (EST) Subject: [RFC] Multilib issues of apreq2-config From: Bojan Smojver To: APREQ List Content-Type: text/plain Date: Thu, 22 Nov 2007 12:43:47 +1100 Message-Id: <1195695827.10628.29.camel@shrek.rexursive.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 (2.12.1-3.fc8) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As the maintainer of libapreq2 for Fedora, I had to do a bit of pkgconfig hacking recently on current libapreq2 (2.09-rc2) in order to get it to be multilib compliant. You can see that work here: http://cvs.fedoraproject.org/viewcvs/rpms/libapreq2/devel/ The files in question are libapreq2.pc.in, libapreq2-2.09-pkgconfig.patch and libapreq2.spec (you can see sed-ing done in there to facilitate the changes). Essentially, current configuration script apreq2-config, which gets installed in /usr/bin, turns out to be different for 32-bit and 64-bit versions of the library (both of which can be installed in parallel), something that is not desirable and prevents getting the correct information from the script for one of the architectures. So, instead of hardcoding variables into the script, they are taken from the pkgconfig file (located in /usr/lib/pkgconfig and /usr/lib64/pkgconfig respectively), keeping the script the same for both architectures. The new script then contains something like this: libdir=`pkg-config --variable=libdir libapreq2` LIBS=`pkg-config --libs libapreq2` LDFLAGS=`pkg-config --libs libapreq2` INCLUDES=`pkg-config --cflags-only-I libapreq2` LDFLAGS=`pkg-config --libs libapreq2` Would the patches along those lines be useful to the project or should I continue having this as Fedora specific patches? -- Bojan