[Lunar-commits] <moonbase> sqlite: version number fix for pkgconfig

Duncan Gibson engelsman at lunar-linux.org
Thu Feb 26 21:57:08 CET 2009


commit 034d7af435db81afe15018d5337d17f6e3a58178
Author: Paul Bredbury <brebs at sent.com>
Date:   Thu Feb 26 21:57:08 2009 +0100

    sqlite: version number fix for pkgconfig
    
    /usr/lib/pkgconfig/sqlite3.pc contains:
    Version: @RELEASE@
    
    Rather than:
    Version: 3.6.11
    
    I saw this comment at http://www.sqlite.org/cvstrac/rptview?order_by=3&order_dir=ASC&rn=39
    "2009-Feb-18 10:49:35 by anonymous:
    Thanks for adding the pkgconfig stuff to the amalgamation-sources. Unfortunately @RELEASE@ is not expanded/replaced with a correct version string by configure. Please change @RELEASE@ to @VERSION@ in sqlite3.pc.in."
    
    So this sedit in BUILD fixes the version number.
---
 sql/sqlite/BUILD |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sql/sqlite/BUILD b/sql/sqlite/BUILD
index cd68c72..9a7b05d 100644
--- a/sql/sqlite/BUILD
+++ b/sql/sqlite/BUILD
@@ -1,6 +1,8 @@
 (
+  # For "Version: 3.6.11" in /usr/lib/pkgconfig/sqlite3.pc
+  sedit 's:@RELEASE@:@VERSION@:' sqlite3.pc.in &&
 
-  LDFLAGS+=" -ldl"
+  LDFLAGS+=" -ldl" &&
 
   default_build  &&
   install -m 644 $SCRIPT_DIRECTORY/sqlite3.1 /usr/share/man/man1


More information about the Lunar-commits mailing list