Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: duckdb-0.10.1
Date: Tue, 19 Mar 2024 09:13:27 +0100	[thread overview]
Message-ID: <20240319081327.2E47E28E19@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49367@inbox.vuxu.org>

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

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

https://github.com/icp1994/void-packages duckdb
https://github.com/void-linux/void-packages/pull/49367

New package: duckdb-0.10.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

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

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

From 36a73f63c498e95e2b62d25bc6565c68291ecda6 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Tue, 4 Apr 2023 21:41:12 +0530
Subject: [PATCH] New package: duckdb-0.10.1

---
 srcpkgs/duckdb-devel                  |  1 +
 srcpkgs/duckdb/patches/fix-musl.patch | 10 +++++
 srcpkgs/duckdb/template               | 57 +++++++++++++++++++++++++++
 srcpkgs/python3-duckdb                |  1 +
 4 files changed, 69 insertions(+)
 create mode 120000 srcpkgs/duckdb-devel
 create mode 100644 srcpkgs/duckdb/patches/fix-musl.patch
 create mode 100644 srcpkgs/duckdb/template
 create mode 120000 srcpkgs/python3-duckdb

diff --git a/srcpkgs/duckdb-devel b/srcpkgs/duckdb-devel
new file mode 120000
index 00000000000000..3da59dfc722faf
--- /dev/null
+++ b/srcpkgs/duckdb-devel
@@ -0,0 +1 @@
+duckdb
\ No newline at end of file
diff --git a/srcpkgs/duckdb/patches/fix-musl.patch b/srcpkgs/duckdb/patches/fix-musl.patch
new file mode 100644
index 00000000000000..6db141ef614ed1
--- /dev/null
+++ b/srcpkgs/duckdb/patches/fix-musl.patch
@@ -0,0 +1,10 @@
+--- a/tools/shell/linenoise/terminal.cpp
++++ b/tools/shell/linenoise/terminal.cpp
+@@ -10,6 +10,7 @@
+ #include <stdlib.h>
+ #include <ctype.h>
+ #include <sys/ioctl.h>
++#include <sys/select.h>
+ 
+ namespace duckdb {
+ 
diff --git a/srcpkgs/duckdb/template b/srcpkgs/duckdb/template
new file mode 100644
index 00000000000000..0955124e193955
--- /dev/null
+++ b/srcpkgs/duckdb/template
@@ -0,0 +1,57 @@
+# Template file for 'duckdb'
+pkgname=duckdb
+version=0.10.1
+revision=1
+archs="x86_64* aarch64*" # 32-bit FTBFS
+build_style=cmake
+build_helper="python3"
+configure_args="-DOVERRIDE_GIT_DESCRIBE=v${version}-0-gdeadbeeff
+ -DBUILD_EXTENSIONS='autocomplete;icu;fts;httpfs;json;parquet'"
+hostmakedepends="pkg-config python3-build python3-installer python3-setuptools_scm
+ python3-wheel python3-pybind11"
+makedepends="openssl-devel"
+short_desc="In-process SQL OLAP database management system"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://duckdb.org"
+changelog="https://github.com/duckdb/duckdb/releases"
+distfiles="https://github.com/duckdb/duckdb/archive/refs/tags/v${version}.tar.gz"
+checksum=83bd4944c070fd0bd287fbe62919fa887f35d7422ba0fa66e13d4ed098f3791a
+
+case "${XBPS_TARGET_MACHINE}" in
+	x86_64*) configure_args+=" -DDUCKDB_EXPLICIT_PLATFORM=linux_amd64" ;;
+	aarch64*) configure_args+=" -DDUCKDB_EXPLICIT_PLATFORM=linux_arm64" ;;
+esac
+
+post_build() {
+	OVERRIDE_GIT_DESCRIBE="v${version}-0-gdeadbeeff" python3 -m build \
+		--no-isolation --wheel tools/pythonpkg
+}
+
+post_install() {
+	python3 -m installer --destdir "${DESTDIR}" --no-compile-bytecode \
+		tools/pythonpkg/dist/duckdb-${version}-*-*-*.whl
+
+	rm "${DESTDIR}/usr/"{includes,sources}.list
+	rm -r "${DESTDIR}/usr/duckdb_build"
+
+	vlicense LICENSE
+}
+
+duckdb-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/cmake
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
+
+python3-duckdb_package() {
+	short_desc+=" - python bindings"
+	pkg_install() {
+		vmove "${py3_sitelib}"
+	}
+}
diff --git a/srcpkgs/python3-duckdb b/srcpkgs/python3-duckdb
new file mode 120000
index 00000000000000..3da59dfc722faf
--- /dev/null
+++ b/srcpkgs/python3-duckdb
@@ -0,0 +1 @@
+duckdb
\ No newline at end of file

  reply	other threads:[~2024-03-19  8:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19  7:15 [PR PATCH] " icp1994
2024-03-19  8:13 ` icp1994 [this message]
2024-03-22 16:12 ` [PR REVIEW] " leahneukirchen
2024-03-22 16:17 ` leahneukirchen
2024-03-22 16:55 ` [PR REVIEW] " icp1994

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=20240319081327.2E47E28E19@inbox.vuxu.org \
    --to=icp1994@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).