Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299294 - dev-db/sqlite-3.6.21 ebuild patch for FreeMiNT
Summary: dev-db/sqlite-3.6.21 ebuild patch for FreeMiNT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All FreeMiNT
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-02 00:00 UTC by Alan Hourihane
Modified: 2010-01-10 21:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hourihane 2010-01-02 00:00:03 UTC
sqlite needs this ebuild fix for FreeMiNT.

@@ -43,6 +43,8 @@
 }
 
 src_configure() {
+	local myconf
+
 	# Support column metadata, bug #266651
 	append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
 
@@ -77,8 +79,11 @@
 		append-cppflags -DNDEBUG
 	fi
 
+	[[ ${CHOST} == *mint* ]] && myconf="--enable-dynamic-extensions=no"
+
 	# amalgamation doesn't have tcl
 	econf \
+		${myconf} \
 		$(use_enable readline) \
 		--with-readline-inc=-I"${EPREFIX}"/usr/include/readline \
 		$(use_enable threadsafe) \
Comment 1 SpanKY gentoo-dev 2010-01-02 03:34:20 UTC
dont check the CHOST.  use tc-is-static-only from toolchain-funcs.eclass.
Comment 2 Fabian Groffen gentoo-dev 2010-01-07 10:14:23 UTC
I committed this patch, maintainers, feel like applying this to the gx86 version?

--- sqlite-3.6.21.ebuild        (revision 55620)
+++ sqlite-3.6.21.ebuild        (working copy)
@@ -4,7 +4,7 @@
 
 EAPI="2"
 
-inherit eutils flag-o-matic multilib versionator
+inherit eutils flag-o-matic multilib versionator toolchain-funcs
 
 DESCRIPTION="an SQL Database Engine in a C Library"
 HOMEPAGE="http://www.sqlite.org/"
@@ -83,7 +83,8 @@
                --with-readline-inc=-I"${EPREFIX}"/usr/include/readline \
                $(use_enable threadsafe) \
                $(use tcl && echo --enable-tcl) \
-               $(use !tcl && use test && echo --disable-tcl)
+               $(use !tcl && use test && echo --disable-tcl) \
+               $(tc-is-static-only && echo --enable-dynamic-extensions=no)
 }
 
 src_compile() {
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2010-01-08 19:37:27 UTC
(In reply to comment #2)
> I committed this patch, maintainers, feel like applying this to the gx86
> version?
> 

Feel free on my part.
Comment 4 Fabian Groffen gentoo-dev 2010-01-08 19:53:28 UTC
I just committed this, but was notified afterwards by Arfrever that --enable-dynamic-extensions=no is only in the amalgamation sources, so should the condition be "use !tcl && tc-is-static-only"?
Comment 5 Alan Hourihane 2010-01-10 20:11:05 UTC
No. I've dont have USE="tcl" set
Comment 6 Alan Hourihane 2010-01-10 20:12:13 UTC
Actually, I guess it's yes. :-) as USE="tcl" isn't the default.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-10 21:31:49 UTC
"extensions" USE flag has been added for bug #233994. Please package.use.mask this flag in FreeMiNT profiles.
Comment 8 Fabian Groffen gentoo-dev 2010-01-10 21:49:57 UTC
done