Github messages for voidlinux
 help / color / mirror / Atom feed
From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] gnucash: update to 5.0, enable SQL support + add libdbi packages
Date: Mon, 31 Jul 2023 19:09:03 +0200	[thread overview]
Message-ID: <20230731170903.JOoOreZ7DGPEhemKuSEIfw9ExooCP-DwPdCd9A4Fhhw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43386@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

There is an updated pull request by cinerea0 against master on the void-packages repository

https://github.com/cinerea0/void-packages gnucash
https://github.com/void-linux/void-packages/pull/43386

[WIP] gnucash: update to 5.0, enable SQL support + add libdbi packages
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- These new packages conform to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc (crossbuilds disabled for gnucash)

---

**cc: @manfredu**


A patch file from https://github.com/void-linux/void-packages/pull/43386.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnucash-43386.patch --]
[-- Type: text/x-diff, Size: 5684 bytes --]

From ff506df2d13ad74de63af432eb5c9a2ae050da47 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 31 Jul 2023 12:44:22 -0400
Subject: [PATCH 1/2] New package: libdbi-0.9.0

---
 common/shlibs           |  1 +
 srcpkgs/libdbi-devel    |  1 +
 srcpkgs/libdbi-doc      |  1 +
 srcpkgs/libdbi/template | 31 +++++++++++++++++++++++++++++++
 4 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/libdbi-devel
 create mode 120000 srcpkgs/libdbi-doc
 create mode 100644 srcpkgs/libdbi/template

diff --git a/common/shlibs b/common/shlibs
index a521ea1b66ae1..ed7fb0c6faae3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4324,3 +4324,4 @@ libtext-engine-0.1.so.0 text-engine-0.1.1_1
 libvmaf.so.1 vmaf-2.3.1_1
 liblc3.so.1 liblc3-1.0.3_1
 libmimalloc.so.2 mimalloc-2.1.2_1
+libdbi.so.1 libdbi-0.9.0_1
diff --git a/srcpkgs/libdbi-devel b/srcpkgs/libdbi-devel
new file mode 120000
index 0000000000000..461034ca75ea7
--- /dev/null
+++ b/srcpkgs/libdbi-devel
@@ -0,0 +1 @@
+libdbi
\ No newline at end of file
diff --git a/srcpkgs/libdbi-doc b/srcpkgs/libdbi-doc
new file mode 120000
index 0000000000000..461034ca75ea7
--- /dev/null
+++ b/srcpkgs/libdbi-doc
@@ -0,0 +1 @@
+libdbi
\ No newline at end of file
diff --git a/srcpkgs/libdbi/template b/srcpkgs/libdbi/template
new file mode 100644
index 0000000000000..dcdaf1cf19a8e
--- /dev/null
+++ b/srcpkgs/libdbi/template
@@ -0,0 +1,31 @@
+# Template file for 'libdbi'
+pkgname=libdbi
+version=0.9.0
+revision=1
+build_style=gnu-configure
+short_desc="Database independent abstraction layer for C"
+maintainer="cinerea0 <cinerea0@protonmail.com>"
+license="LGPL-2.1-only"
+homepage="https://libdbi.sourceforge.net/"
+changelog="https://sourceforge.net/p/libdbi/libdbi/ci/master/tree/NEWS"
+distfiles="${SOURCEFORGE_SITE}/libdbi/libdbi-${version}.tar.gz"
+checksum=dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503
+
+libdbi-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/*.a"
+	}
+}
+
+libdbi-doc_package() {
+	short_desc+=" - documentation"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/share/doc
+	}
+}

From 6dbbf471a09b0ff4e28425332553e6ea6fe77040 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 31 Jul 2023 13:08:50 -0400
Subject: [PATCH 2/2] New package: libdbi-drivers-0.9.0

---
 srcpkgs/libdbdmysql             |  1 +
 srcpkgs/libdbdpgsql             |  1 +
 srcpkgs/libdbdsqlite            |  1 +
 srcpkgs/libdbi-drivers-devel    |  1 +
 srcpkgs/libdbi-drivers/template | 56 +++++++++++++++++++++++++++++++++
 5 files changed, 60 insertions(+)
 create mode 120000 srcpkgs/libdbdmysql
 create mode 120000 srcpkgs/libdbdpgsql
 create mode 120000 srcpkgs/libdbdsqlite
 create mode 120000 srcpkgs/libdbi-drivers-devel
 create mode 100644 srcpkgs/libdbi-drivers/template

diff --git a/srcpkgs/libdbdmysql b/srcpkgs/libdbdmysql
new file mode 120000
index 0000000000000..28d3bc25c5fcb
--- /dev/null
+++ b/srcpkgs/libdbdmysql
@@ -0,0 +1 @@
+libdbi-drivers
\ No newline at end of file
diff --git a/srcpkgs/libdbdpgsql b/srcpkgs/libdbdpgsql
new file mode 120000
index 0000000000000..28d3bc25c5fcb
--- /dev/null
+++ b/srcpkgs/libdbdpgsql
@@ -0,0 +1 @@
+libdbi-drivers
\ No newline at end of file
diff --git a/srcpkgs/libdbdsqlite b/srcpkgs/libdbdsqlite
new file mode 120000
index 0000000000000..28d3bc25c5fcb
--- /dev/null
+++ b/srcpkgs/libdbdsqlite
@@ -0,0 +1 @@
+libdbi-drivers
\ No newline at end of file
diff --git a/srcpkgs/libdbi-drivers-devel b/srcpkgs/libdbi-drivers-devel
new file mode 120000
index 0000000000000..28d3bc25c5fcb
--- /dev/null
+++ b/srcpkgs/libdbi-drivers-devel
@@ -0,0 +1 @@
+libdbi-drivers
\ No newline at end of file
diff --git a/srcpkgs/libdbi-drivers/template b/srcpkgs/libdbi-drivers/template
new file mode 100644
index 0000000000000..fcf56b63decde
--- /dev/null
+++ b/srcpkgs/libdbi-drivers/template
@@ -0,0 +1,56 @@
+# Template file for 'libdbi-drivers'
+pkgname=libdbi-drivers
+version=0.9.0
+revision=1
+build_style=gnu-configure
+configure_args="--with-mysql --with-pgsql --with-sqlite3"
+hostmakedepends="automake docbook docbook-dsssl libtool openjade
+ postgresql-libs-devel"
+makedepends="libdbi-devel libmariadbclient-devel postgresql-libs-devel
+ sqlite-devel zlib-devel"
+depends="libdbdmysql libdbdpgsql libdbdsqlite"
+short_desc="Database drivers for libdbi (MySQL, PostgreSQL, and SQLite)"
+maintainer="cinerea0 <cinerea0@protonmail.com>"
+license="LGPL-2.1-only"
+homepage="https://libdbi-drivers.sourceforge.net/"
+changelog="https://sourceforge.net/p/libdbi-drivers/libdbi-drivers/ci/master/tree/NEWS"
+distfiles="${SOURCEFORGE_SITE}/libdbi-drivers/libdbi-drivers-${version}.tar.gz"
+checksum=43d2eacd573a4faff296fa925dd97fbf2aedbf1ae35c6263478210c61004c854
+make_check=no  # tests require full DB environments and hang
+
+if [ "${CROSS_BUILD}" ]; then
+	configure_args+=" --with-dbi-libdir=${XBPS_CROSS_BASE}/usr/lib"
+fi
+
+pre_configure() {
+	autoreconf -fi
+}
+
+libdbdmysql_package() {
+	short_desc="MySQL driver for libdbi"
+	pkg_install() {
+		vmove usr/lib/dbd/libdbdmysql.so
+	}
+}
+
+libdbdpgsql_package() {
+	short_desc="PostgreSQL driver for libdbi"
+	pkg_install() {
+		vmove usr/lib/dbd/libdbdpgsql.so
+	}
+}
+
+libdbdsqlite_package() {
+	short_desc="SQLite driver for libdbi"
+	pkg_install() {
+		vmove usr/lib/dbd/libdbdsqlite3.so
+	}
+}
+
+libdbi-drivers-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove "usr/lib/dbd/*.a"
+	}
+}

  parent reply	other threads:[~2023-07-31 17:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-11  3:52 [PR PATCH] " cinerea0
2023-04-11  4:00 ` cinerea0
2023-04-11  4:14 ` [PR PATCH] [Updated] " cinerea0
2023-04-11  4:48 ` sgn
2023-04-11  5:20 ` cinerea0
2023-04-11 14:30 ` sgn
2023-04-11 18:17 ` cinerea0
2023-04-12  4:59 ` sgn
2023-04-12 17:23 ` [PR PATCH] [Updated] " cinerea0
2023-04-12 18:14 ` cinerea0
2023-04-14  1:58 ` cinerea0
2023-04-14  2:29 ` cinerea0
2023-04-14  2:39 ` cinerea0
2023-04-14  2:46 ` cinerea0
2023-06-27 17:49 ` [PR PATCH] [Updated] [WIP] " cinerea0
2023-06-27 18:03 ` cinerea0
2023-06-27 18:09 ` cinerea0
2023-06-27 18:20 ` cinerea0
2023-06-27 18:41 ` cinerea0
2023-06-27 19:08 ` cinerea0
2023-06-27 19:26 ` cinerea0
2023-07-31 16:45 ` cinerea0
2023-07-31 17:00 ` cinerea0
2023-07-31 17:09 ` cinerea0 [this message]
2023-07-31 17:15 ` cinerea0
2023-08-06 18:57 ` [PR PATCH] [Updated] gnucash: update to 5.3, " cinerea0
2023-08-09 17:26 ` [PR PATCH] [Merged]: " Duncaen

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=20230731170903.JOoOreZ7DGPEhemKuSEIfw9ExooCP-DwPdCd9A4Fhhw@z \
    --to=cinerea0@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).