bugGPSD - Bugs: bug #45342, SConstruct generates wrong *.pc...

 
 

bug #45342: SConstruct generates wrong *.pc files

Submitted by:  None
Submitted on:  Wed 17 Jun 2015 01:20:51 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eric S. Raymond <esr>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 17 Jun 2015 01:20:51 PM UTC, original submission:

Using:
SCons by Steven Knight et al.:
script: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu
engine: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 The SCons Foundation

GPSd version 3.12~dev

System: Kubuntu 15.04

I noticed that, starting from the following libgps.pc.in template

prefix=@prefix@
exec_prefix=${prefix}
libdir=@libdir@
includedir=${prefix}/include

Name: GPSD
Description: GPS Daemon communication library
Version: @VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lgps

SConstruct generates a libgps.pc file where libdir path is wrong

cat /usr/local/lib/pkgconfig/libgps.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=lib
includedir=${prefix}/include

Name: GPSD
Description: GPS Daemon communication library
Version: 3.12~dev
Cflags: -I${includedir}
Libs: -L${libdir} -lgps

also libgpsd.pc is created wrong. From the template libgpsd.pc.in

prefix=@prefix@
exec_prefix=${prefix}
libdir=${exec_prefix}@libdir@
includedir=${prefix}/include

Name: libgpsd
Description: Lowlevel GPSD control library
Version: @VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lgpsd

here is the libgpsd.pc file

cat /usr/local/lib/pkgconfig/libgpsd.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}lib
includedir=${prefix}/include

Name: libgpsd
Description: Lowlevel GPSD control library
Version: 3.12~dev
Cflags: -I${includedir}
Libs: -L${libdir} -lgpsd

I would suggest the following changes

diff -Naur libgpsd.pc.in /tmp/libgpsd.pc.in
--- libgpsd.pc.in 2015-05-19 08:54:38.964771435 +0200
+++ /tmp/libgpsd.pc.in 2015-06-17 15:11:39.868902003 +0200
@@ -1,6 +1,6 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=${exec_prefix}@libdir@
+libdir=${exec_prefix}/@libdir@
includedir=${prefix}/include

Name: libgpsd

diff -Naur libgps.pc.in /tmp/libgps.pc.in
--- libgps.pc.in 2015-05-19 08:54:38.952771526 +0200
+++ /tmp/libgps.pc.in 2015-06-17 15:11:19.625107038 +0200
@@ -1,6 +1,6 @@
prefix=@prefix@
exec_prefix=${prefix}
-libdir=@libdir@
+libdir=${exec_prefix}/@libdir@
includedir=${prefix}/include

Name: GPSD

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by esr (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 Sep 2017 04:36:29 AM UTCesrOpen/ClosedOpen=>Closed
    Mon 04 Jan 2016 10:04:26 PM UTCesrStatusNone=>Fixed
      Assigned toNone=>esr

    Back to the top


    Powered by Savane 3.1-cleanup1