From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/files/, dev-db/sqlite/
Date: Thu, 28 Sep 2017 17:18:50 +0000 (UTC) [thread overview]
Message-ID: <1506618657.5f80a5be1a768e5964f4d4f3399eb3b91912c81f.floppym@gentoo> (raw)
commit: 5f80a5be1a768e5964f4d4f3399eb3b91912c81f
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Thu Sep 28 15:26:19 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Sep 28 17:10:57 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f80a5be
dev-db/sqlite: Fix csv extension on ppc/ppc64 (bug #630698).
...ite-3.20.1-full_tarball-csv-unsigned_char.patch | 33 ++++++++++++++++++++++
...qlite-3.20.1.ebuild => sqlite-3.20.1-r1.ebuild} | 1 +
2 files changed, 34 insertions(+)
diff --git a/dev-db/sqlite/files/sqlite-3.20.1-full_tarball-csv-unsigned_char.patch b/dev-db/sqlite/files/sqlite-3.20.1-full_tarball-csv-unsigned_char.patch
new file mode 100644
index 00000000000..86236c4b4bf
--- /dev/null
+++ b/dev-db/sqlite/files/sqlite-3.20.1-full_tarball-csv-unsigned_char.patch
@@ -0,0 +1,33 @@
+https://sqlite.org/src/info/42f0777555675875
+
+--- ext/misc/csv.c
++++ ext/misc/csv.c
+@@ -78,7 +78,7 @@
+ int nAlloc; /* Space allocated for z[] */
+ int nLine; /* Current line number */
+ int bNotFirst; /* True if prior text has been seen */
+- char cTerm; /* Character that terminated the most recent field */
++ int cTerm; /* Character that terminated the most recent field */
+ size_t iIn; /* Next unread character in the input buffer */
+ size_t nIn; /* Number of characters in the input buffer */
+ char *zIn; /* The input buffer */
+@@ -166,7 +166,7 @@
+ if( p->in!=0 ) return csv_getc_refill(p);
+ return EOF;
+ }
+- return p->zIn[p->iIn++];
++ return ((unsigned char*)p->zIn)[p->iIn++];
+ }
+
+ /* Increase the size of p->z and append character c to the end.
+--- test/releasetest.tcl
++++ test/releasetest.tcl
+@@ -114,7 +114,7 @@
+ }
+ "Debug-One" {
+ --disable-shared
+- -O2
++ -O2 -funsigned-char
+ -DSQLITE_DEBUG=1
+ -DSQLITE_MEMDEBUG=1
+ -DSQLITE_MUTEX_NOOP=1
diff --git a/dev-db/sqlite/sqlite-3.20.1.ebuild b/dev-db/sqlite/sqlite-3.20.1-r1.ebuild
similarity index 99%
rename from dev-db/sqlite/sqlite-3.20.1.ebuild
rename to dev-db/sqlite/sqlite-3.20.1-r1.ebuild
index ee52cadc0f7..7b6ce7814c0 100644
--- a/dev-db/sqlite/sqlite-3.20.1.ebuild
+++ b/dev-db/sqlite/sqlite-3.20.1-r1.ebuild
@@ -50,6 +50,7 @@ pkg_setup() {
src_prepare() {
if full_tarball; then
eapply -p0 "${FILESDIR}/${PN}-3.20.0-full_tarball-build.patch"
+ eapply -p0 "${FILESDIR}/${PN}-3.20.1-full_tarball-csv-unsigned_char.patch"
eapply_user
next reply other threads:[~2017-09-28 17:18 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 17:18 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-10 22:44 [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlite/files/, dev-db/sqlite/ Sam James
2024-11-06 11:03 Sam James
2024-03-21 3:46 Sam James
2024-01-07 8:12 Sam James
2023-12-12 5:43 Sam James
2022-02-02 12:15 Jakov Smolić
2022-01-16 18:33 Jakov Smolić
2021-12-12 23:42 Sam James
2020-09-15 18:34 Mike Gilbert
2020-07-29 18:46 Mike Gilbert
2020-03-09 19:29 Mike Gilbert
2019-08-16 17:03 Mike Gilbert
2019-08-09 18:39 Mike Gilbert
2019-05-05 19:05 Mike Gilbert
2019-02-27 22:35 Mike Gilbert
2019-02-27 22:35 Mike Gilbert
2018-04-26 15:14 Mike Gilbert
2017-04-04 19:50 Mike Gilbert
2017-01-27 17:34 Mike Gilbert
2016-11-29 9:16 Lars Wendler
2016-05-30 21:01 Mike Gilbert
2016-04-28 21:07 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1506618657.5f80a5be1a768e5964f4d4f3399eb3b91912c81f.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox