This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFU] sqlite3-3.5.8-1


>>>>> Warren Young writes:

    > Dr. Volker Zell wrote:
    >> When building and packaging with your .cygport file I do not get
    >> shared
    >> libs.

    > It may not be possible.  It's set to try to build shared libraries,
    > but you get this during the build:

    > libtool: link: warning: undefined symbols not allowed in
    > i686-pc-cygwin shared libraries

    > I seem to recall seeing a thread about this many moons ago that said
    > there was no workaround to this short of changing the source code to
    > avoid the need for undefined symbols.

    > I don't see much incentive to do this, though, because SQLite is
    > public domain, and relatively small.  The intent of the library is to
    > embed it deeply in your program for use as low-level infrastructure.
    > It's not really meant to be upgraded separately from the program that
    > uses it.

    >> Is it possible that your .src patch is missing ?

    > No source patches are necessary.  It builds perfectly OOTB.


Try the following:

------------------ cut here --------------------
diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x autom4te.cache -x config.cache -x config.log -x config.status -x config.h -x config.h.in -x ABOUT-NLS -x Makefile.in.in -x Makevars.template -x '*SlackBuild*' -x '*.egg-info' -x '*.class' -x '*.pyc' -x '*.mo' -x '*.gmo' -x at-3.1.8-31.install.orig -x hdf5-1.6.7-1.src.patch.orig -x libmad-0.15.1b-1.sh.orig -x libmcrypt-2.5.8-1.src.patch.orig -x postgresql-8.1.4-1.cygport.orig -x rcs-5.7-4.src.patch.orig -x template-package.sh.orig -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x COPYING -x INSTALL -x compile -x config-ml.in -x config.guess -x config.sub -x depcomp -x elisp-comp -x install-sh -x libtool.m4 -x ltoptions.m4 -x ltsugar.m4 -x ltversion.m4 -x 'lt~obsolete.m4' -x ltmain.sh -x mdate-sh -x missing -x mkinstalldirs -x py-compile -x symlink-tree -x texinfo.tex -x ylwrap -x config.rpath -x configure -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x intltool-extract -x intltool-extract.in -x intltool-merge -x intltool-merge.in -x intltool-update -x intltool-update.in origsrc/sqlite-3.5.8/Makefile.in src/sqlite-3.5.8/Makefile.in
--- origsrc/sqlite-3.5.8/Makefile.in	2008-04-14 02:49:45.000000000 +0200
+++ src/sqlite-3.5.8/Makefile.in	2008-05-10 11:18:27.140625000 +0200
@@ -408,13 +408,13 @@
 
 libsqlite3.la:	$(LIBOBJ)
 	$(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \
-		${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
+		${ALLOWRELEASE} -rpath "$(libdir)" -no-undefined -version-info "8:6:8"
 
 libtclsqlite3.la:	tclsqlite.lo libsqlite3.la
 	$(LTLINK) -o $@ tclsqlite.lo \
-		$(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(TLIBS) \
+		$(LIBOBJ) @TCL_LIB_SPEC@ $(TLIBS) \
                 -rpath "$(libdir)/sqlite" \
-		-version-info "8:6:8"
+		-no-undefined -version-info "8:6:8"
 
 sqlite3$(TEXE):	$(TOP)/src/shell.c libsqlite3.la sqlite3.h
 	$(LTLINK) $(READLINE_FLAGS) \
diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x autom4te.cache -x config.cache -x config.log -x config.status -x config.h -x config.h.in -x ABOUT-NLS -x Makefile.in.in -x Makevars.template -x '*SlackBuild*' -x '*.egg-info' -x '*.class' -x '*.pyc' -x '*.mo' -x '*.gmo' -x at-3.1.8-31.install.orig -x hdf5-1.6.7-1.src.patch.orig -x libmad-0.15.1b-1.sh.orig -x libmcrypt-2.5.8-1.src.patch.orig -x postgresql-8.1.4-1.cygport.orig -x rcs-5.7-4.src.patch.orig -x template-package.sh.orig -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x COPYING -x INSTALL -x compile -x config-ml.in -x config.guess -x config.sub -x depcomp -x elisp-comp -x install-sh -x libtool.m4 -x ltoptions.m4 -x ltsugar.m4 -x ltversion.m4 -x 'lt~obsolete.m4' -x ltmain.sh -x mdate-sh -x missing -x mkinstalldirs -x py-compile -x symlink-tree -x texinfo.tex -x ylwrap -x config.rpath -x configure -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x intltool-extract -x intltool-extract.in -x intltool-merge -x intltool-merge.in -x intltool-update -x intltool-update.in origsrc/sqlite-3.5.8/tclinstaller.tcl src/sqlite-3.5.8/tclinstaller.tcl
--- origsrc/sqlite-3.5.8/tclinstaller.tcl	2008-03-14 19:01:53.000000000 +0100
+++ src/sqlite-3.5.8/tclinstaller.tcl	2008-05-10 11:20:41.437500000 +0200
@@ -5,7 +5,7 @@
 #    tclsh tclinstaller.tcl 3.0
 #
 set VERSION [lindex $argv 0]
-set LIBFILE .libs/libtclsqlite3[info sharedlibextension]
+set LIBFILE .libs/cygtclsqlite3-0[info sharedlibextension]
 if { ![info exists env(DESTDIR)] } { set env(DESTDIR) "" }
 if { ![info exists env(TCLLIBDIR)] } { set env(TCLLIBDIR) [lindex $auto_path 0] }
 set LIBDIR $env(DESTDIR)$env(TCLLIBDIR)
@@ -13,11 +13,12 @@
 set LIBNAME [file tail $LIBFILE]
 set LIB $LIBDIR/sqlite3/$LIBNAME
 set LIB_INSTALL $LIBDIR_INSTALL/sqlite3/$LIBNAME
+set SQLLITELIB [lindex $auto_path 0]/sqlite3/$LIBNAME
 
 file delete -force $LIBDIR/sqlite3
 file mkdir $LIBDIR/sqlite3
 set fd [open $LIBDIR/sqlite3/pkgIndex.tcl w]
-puts $fd "package ifneeded sqlite3 $VERSION \[list load $LIB_INSTALL sqlite3\]"
+puts $fd "package ifneeded sqlite3 $VERSION \[list load $SQLLITELIB sqlite3\]"
 close $fd
 
 # We cannot use [file copy] because that will just make a copy of
------------------ cut here --------------------

------------------ cut here --------------------
diff -urN origsrc/sqlite-3.5.8/CYGWIN-PATCHES/README src/sqlite-3.5.8/CYGWIN-PATCHES/README
--- origsrc/sqlite-3.5.8/CYGWIN-PATCHES/README	1970-01-01 01:00:00.000000000 +0100
+++ src/sqlite-3.5.8/CYGWIN-PATCHES/README	2008-05-10 11:58:13.921875000 +0200
@@ -0,0 +1,104 @@
+sqlite3
+-------------------------------------------
+SQLite is a C library that implements an embeddable SQL database engine.
+Programs that link with the SQLite library can have SQL database access
+without running a separate RDBMS process. The distribution comes with a
+standalone command-line access program (sqlite) that can be used to
+administer an SQLite database and which serves as an example of how to 
+use the SQLite library.
+
+Runtime requirements:
+  cygwin-1.5.25-7
+  libreadline6-5.2.7-9
+
+Build requirements:
+(besides corresponding devel packages)
+  autoconf2.5-2.61-1
+  binutils-20060817-1
+  cygport-0.3.8-1
+  gawk-3.1.6-1
+  gcc-core-3.4.4-3
+  libtool1.5-1.5.23a-2
+  make-3.81-1
+  sed-4.1.5-2
+
+Canonical homepage:
+  http://www.sqlite.org/
+
+-------------------------------------------
+
+Build instructions:
+  unpack sqlite3-3.5.8-1-src.tar.bz2
+    if you use setup to install this src package, it will be
+	 unpacked under /usr/src automatically
+  cd /usr/src
+  cygport ./sqlite3-3.5.8-1.cygport all
+
+This will create:
+  /usr/src/libsqlite3-devel-3.5.8-1.tar.bz2
+  /usr/src/libsqlite3_0-3.5.8-1.tar.bz2
+  /usr/src/sqlite3-3.5.8-1-src.tar.bz2
+  /usr/src/sqlite3-3.5.8-1.tar.bz2
+
+-------------------------------------------
+
+Files included in the binary packages:
+
+To find out the files included in the binary distribution, you can
+use "cygcheck -l sqlite3 libsqlite3_0 libsqlite3-devel", or browse the listing
+for the appropriate version at <http://cygwin.com/packages/>.
+
+------------------
+
+Port Notes:
+
+----- version 3.5.8-1 -----
+Fork of Cygwin Ports version, removing Tcl support since Cygwin doesn't
+distribute Tcl anymore.
+
+----- version 3.5.6-1 -----
+Version bump.
+Enabled the load_extension API for the PHP bindings.
+
+----- version 3.5.4-1 -----
+Version bump.
+
+----- version 3.5.3-1 -----
+Version bump.
+
+----- version 3.5.2-1 -----
+Version bump.
+
+----- version 3.3.17-1 -----
+Version bump.
+
+----- version 3.3.12-1 -----
+Version bump.
+
+----- version 3.3.10-1 -----
+Version bump.
+
+----- version 3.3.7-1 -----
+Version bump.  Broke out separate binary packages.
+
+----- version 3.3.5-1 -----
+Version bump.
+
+----- version 3.2.8-1 -----
+Version bump.
+
+----- version 3.2.7-1 -----
+Version bump.
+
+----- version 3.2.6-1 -----
+Version bump.
+
+----- version 3.2.1-1 -----
+Version bump for 3.0 branch.
+
+----- version 3.0.8-1 -----
+Initial release of the 3.0 branch for Cygwin.
+This package can be installed in parallel with sqlite-2.8.x.
+
+
+Cygwin port maintained by Warren Young
diff -urN origsrc/sqlite-3.5.8/CYGWIN-PATCHES/devel.hint src/sqlite-3.5.8/CYGWIN-PATCHES/devel.hint
--- origsrc/sqlite-3.5.8/CYGWIN-PATCHES/devel.hint	1970-01-01 01:00:00.000000000 +0100
+++ src/sqlite-3.5.8/CYGWIN-PATCHES/devel.hint	2008-05-10 11:52:59.734375000 +0200
@@ -0,0 +1,10 @@
+category: Database Libs
+requires: cygwin libsqlite3_0
+external-source: sqlite3
+sdesc: "An embeddable SQL database engine (3.x development)"
+ldesc: "SQLite is a C library that implements an embeddable SQL 
+database engine.  Programs that link with the SQLite library can have 
+SQL database access without running a separate RDBMS process. The 
+distribution comes with a standalone command-line access program 
+(sqlite) that can be used to administer an SQLite database and which 
+serves as an example of how to use the SQLite library."
diff -urN origsrc/sqlite-3.5.8/CYGWIN-PATCHES/lib.hint src/sqlite-3.5.8/CYGWIN-PATCHES/lib.hint
--- origsrc/sqlite-3.5.8/CYGWIN-PATCHES/lib.hint	1970-01-01 01:00:00.000000000 +0100
+++ src/sqlite-3.5.8/CYGWIN-PATCHES/lib.hint	2008-05-10 11:52:59.734375000 +0200
@@ -0,0 +1,10 @@
+category: Database Libs
+requires: cygwin
+external-source: sqlite3
+sdesc: "An embeddable SQL database engine (3.x runtime)"
+ldesc: "SQLite is a C library that implements an embeddable SQL 
+database engine.  Programs that link with the SQLite library can have 
+SQL database access without running a separate RDBMS process. The 
+distribution comes with a standalone command-line access program 
+(sqlite) that can be used to administer an SQLite database and which 
+serves as an example of how to use the SQLite library."
diff -urN origsrc/sqlite-3.5.8/CYGWIN-PATCHES/setup.hint src/sqlite-3.5.8/CYGWIN-PATCHES/setup.hint
--- origsrc/sqlite-3.5.8/CYGWIN-PATCHES/setup.hint	1970-01-01 01:00:00.000000000 +0100
+++ src/sqlite-3.5.8/CYGWIN-PATCHES/setup.hint	2008-05-10 11:52:59.734375000 +0200
@@ -0,0 +1,9 @@
+category: Database
+requires: cygwin libreadline6 libsqlite3_0
+sdesc: "An embeddable SQL database engine (3.x apps and docs)"
+ldesc: "SQLite is a C library that implements an embeddable SQL 
+database engine.  Programs that link with the SQLite library can have 
+SQL database access without running a separate RDBMS process. The 
+distribution comes with a standalone command-line access program 
+(sqlite) that can be used to administer an SQLite database and which 
+serves as an example of how to use the SQLite library."
------------------ cut here --------------------

------------------ cut here --------------------
ORIG_PN="sqlite"

DESCRIPTION="SQLite database library"
HOMEPAGE="http://www.sqlite.org/";
SRC_URI="http://www.sqlite.org/${ORIG_PN}-${PV}.tar.gz";

PKG_NAMES="${PN} lib${PN}_0 lib${PN}-devel"
PKG_HINTS='setup lib devel'
PKG_CONTENTS[0]='usr/bin/*.exe usr/share/'
PKG_CONTENTS[1]='usr/bin/*.dll'
PKG_CONTENTS[2]='usr/lib/ usr/include/'

NO_AUTOHEADER=1

src_compile() {
	cd ${S}
	cygautoreconf

	cd ${B}
	cygconf --disable-tcl --disable-utf8 --enable-incore-db --enable-tempdb-in-ram
	cygmake
}

src_install() {
	cd ${B}
	cyginstall

	newbin lemon.exe lemon3.exe
	doman ${S}/sqlite3.1

	docinto html
	dodoc ${B}/doc/* ${S}/doc/lemon.html
}
------------------ cut here --------------------

Ciao
  Volker
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]