* [gentoo-commits] repo/gentoo:master commit in: dev-perl/DBD-SQLite/files/, dev-perl/DBD-SQLite/
@ 2020-07-09 2:02 Kent Fredric
0 siblings, 0 replies; only message in thread
From: Kent Fredric @ 2020-07-09 2:02 UTC (permalink / raw
To: gentoo-commits
commit: 5aa87584945e5ae652c70e9504273ed6de9baa2f
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 9 01:59:37 2020 +0000
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Jul 9 02:01:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aa87584
dev-perl/DBD-SQLite: Bump to version 1.640.0
- EAPI7
- Increase Min SQLITE for system-sqlite to 3.29
- Simplify system-sqlite patching/pruning
- Isolate config-only stuff to src_configure
- Ensure CFLAGS passed to make/compiler
Upstream:
- Upgrade bundled SQLite to 3.29.0 for
* security fixes
* ALTER TABLE ... RENAME COLUMN
* UPSERT
- Add ::GetInfo
- Fix to use a PV value as a virtual table column value where
appropriate
- Add deferability to foreign_key_info
- Added ability to configure SQLITE_MAX_LENGTH via ENV
- Add $dbh->sqlite_limit to change runtime limits
- Update constants
- Add sqlite_backup_{from_dbh,to_dbh} methods
- Add $dbh->sqlite_prefer_numeric_type to prefer arrays of ints instead
of arrays of strings in TYPE statemetns
- Add sqlite_db_config method and related constants
- Add sqlite_defensive option to prohibit dangerous SQLite features
- Expose some hidden extended result codes
- Ensure an internal HV is initialized
- Handle 'unknown' op in DBD::SQLite::VirtualTable::PerlData
- Avoid segmentation fault on big-endian 32bit
https://github.com/DBD-SQLite/DBD-SQLite/issues/45
- Fix ->quote($blob, SQL_BLOB) to quote correctly (injection risk)
https://github.com/DBD-SQLite/DBD-SQLite/issues/51
- Add sqlite_get_autocommit private query method
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
dev-perl/DBD-SQLite/DBD-SQLite-1.640.0.ebuild | 58 ++++++++++++++++++++++
dev-perl/DBD-SQLite/Manifest | 1 +
.../files/DBD-SQLite-1.64-no-bundle.patch | 25 ++++++++++
3 files changed, 84 insertions(+)
diff --git a/dev-perl/DBD-SQLite/DBD-SQLite-1.640.0.ebuild b/dev-perl/DBD-SQLite/DBD-SQLite-1.640.0.ebuild
new file mode 100644
index 00000000000..c0067291509
--- /dev/null
+++ b/dev-perl/DBD-SQLite/DBD-SQLite-1.640.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=ISHIGAKI
+DIST_VERSION=1.64
+inherit perl-module
+
+DESCRIPTION="Self Contained RDBMS in a DBI Driver"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="test system-sqlite"
+RESTRICT="!test? ( test )"
+
+# Please read https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/DBD-SQLite
+# when bumping versions re: system-sqlite interop
+SYSTEM_SQLITE_DEP="
+ >=dev-db/sqlite-3.29.0[extensions(+)]
+"
+RDEPEND="
+ system-sqlite? ( ${SYSTEM_SQLITE_DEP} )
+ >=dev-perl/DBI-1.570.0
+ !<dev-perl/DBD-SQLite-1
+ virtual/perl-Scalar-List-Utils
+"
+DEPEND="
+ system-sqlite? ( ${SYSTEM_SQLITE_DEP} )
+"
+BDEPEND="${RDEPEND}
+ >=virtual/perl-ExtUtils-MakeMaker-6.480.0
+ test? (
+ >=virtual/perl-File-Spec-0.820.0
+ >=virtual/perl-Test-Simple-0.880.0
+ )
+"
+
+src_prepare() {
+ perl-module_src_prepare
+ if use system-sqlite; then
+ einfo "Removing bundled SQLite"
+ eapply "${FILESDIR}/${PN}-1.64-no-bundle.patch"
+ # remove bundled sqlite (rt.cpan#61361)
+ perl_rm_files sqlite3{.c,.h,ext.h}
+ fi
+}
+src_configure() {
+ use system-sqlite && myconf="SQLITE_LOCATION=${EPREFIX}/usr"
+ perl-module_src_configure
+}
+
+src_compile() {
+ mymake=(
+ "OPTIMIZE=${CFLAGS}"
+ )
+ perl-module_src_compile
+}
diff --git a/dev-perl/DBD-SQLite/Manifest b/dev-perl/DBD-SQLite/Manifest
index e75f4fd7d32..2269a9aef62 100644
--- a/dev-perl/DBD-SQLite/Manifest
+++ b/dev-perl/DBD-SQLite/Manifest
@@ -1,2 +1,3 @@
DIST DBD-SQLite-1.56.tar.gz 2248699 BLAKE2B d6af8efed8149ff2ec5c68cc071355805f4a24e234e015c180d5326a4def4eab33352d168e9e41c06b2de28a0137f0d39a864749bfa972d28f8ec9221379bdc1 SHA512 1c9be3557691f76a9e543fe4bd6656a6b82f53fba4bc05261a55affa0a38b4eaa1cf876da975234c9c09985ba25b21f6f7a735f1cc47104169edf7fdd3a2e314
DIST DBD-SQLite-1.58.tar.gz 2248800 BLAKE2B 54cb94d0c64389984290361104e723be4cc9c7352e2f1c80838efa15d8f3d9d671705117422a1076203821b24ef63e06bf95244a0bdd7b710394e655041af18e SHA512 080d1e304fb0d43926ce0345df3367132c317ba113bdc11952c0a159bc68d988a024828a28e66be267f82e07731dee225723854fb80914ba7c476b27dbdeb212
+DIST DBD-SQLite-1.64.tar.gz 2416842 BLAKE2B c2223492bc5662d6babfd4cc9c31697c48c9d2a55cf7228ccd55d351134f6380ca173f96a5ed99e1d377d2427b4a3e9b09e72104937e508a484d9263c15e9e40 SHA512 36a227193b4544c7cec24eec50ee51f46c00a2dad99ab7b8899b0417ea928a1e223f4052fb75f2d641cbfa4408192492ba8943fdb92520dc9888014467f503a4
diff --git a/dev-perl/DBD-SQLite/files/DBD-SQLite-1.64-no-bundle.patch b/dev-perl/DBD-SQLite/files/DBD-SQLite-1.64-no-bundle.patch
new file mode 100644
index 00000000000..99f10adec3b
--- /dev/null
+++ b/dev-perl/DBD-SQLite/files/DBD-SQLite-1.64-no-bundle.patch
@@ -0,0 +1,25 @@
+From dc0684bc73ca2124a5d278eaaa34848b0d8fd9d9 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Thu, 9 Jul 2020 12:44:07 +1200
+Subject: Disable using bundled SQLite
+
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 5c832af..5f308ab 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -129,7 +129,7 @@ SCOPE: {
+ # a system sqlite is also sophisticated enough to have a patching system
+ # that can change the if ( 0 ) to if ( 1 )
+ my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
+-if ( 0 ) {
++if ( 1 ) {
+ require File::Spec;
+ if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
+ $sqlite_base =~ /=(.*)/;
+--
+2.27.0
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-09 2:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-09 2:02 [gentoo-commits] repo/gentoo:master commit in: dev-perl/DBD-SQLite/files/, dev-perl/DBD-SQLite/ Kent Fredric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox