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

 
 

bug #45342: SConstruct generates wrong *.pc files

Submitter:  None
Submitted:  Wed 17 Jun 2015 01:20:51 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-07 esr Open/ClosedOpen Closed
    2016-01-04 esr StatusNone Fixed
        Assigned toNone esr

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code