From: chrysos349 <chrysos349@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python3-pybind11: add symlinks to include, cmake, pkg-config dirs
Date: Sun, 21 May 2023 03:21:51 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43981@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
There is a new pull request by chrysos349 against master on the void-packages repository
https://github.com/chrysos349/void-packages python3-pybind11
https://github.com/void-linux/void-packages/pull/43981
python3-pybind11: add symlinks to include, cmake, pkg-config dirs
#### 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-LIBC)
#### Note
Before this change, cmake and pkg-config couldn't find the library.
P.S. I could've moved the dirs, but decided to play it safe, and create symlinks instead.
A patch file from https://github.com/void-linux/void-packages/pull/43981.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-pybind11-43981.patch --]
[-- Type: text/x-diff, Size: 1326 bytes --]
From 917c7325ddb003fdccd06b35615d8d95c06bf04a Mon Sep 17 00:00:00 2001
From: chrysos349 <chrysostom349@gmail.com>
Date: Sun, 21 May 2023 04:12:33 +0300
Subject: [PATCH] python3-pybind11: add symlinks to include, cmake, pkg-config
dirs
---
srcpkgs/python3-pybind11/template | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/python3-pybind11/template b/srcpkgs/python3-pybind11/template
index 3aab06ec04a2..b1e4fcfe3df9 100644
--- a/srcpkgs/python3-pybind11/template
+++ b/srcpkgs/python3-pybind11/template
@@ -1,7 +1,7 @@
# Template file for 'python3-pybind11'
pkgname=python3-pybind11
version=2.10.4
-revision=1
+revision=2
build_style=python3-module
hostmakedepends="cmake python3-setuptools
python3-pytest python3-sphinx_rtd_theme python3-breathe"
@@ -48,4 +48,15 @@ post_install() {
_manpage=docs/.build/man/pybind11.1
vsed -i ${_manpage} -e '/^\.TH/ s/"1"/"7"/'
vman ${_manpage} pybind11.7
+
+ vmkdir /usr/include
+ vmkdir /usr/share/pkgconfig
+ vmkdir /usr/share/cmake
+
+ ln -s /${py3_sitelib}/pybind11/include/pybind11 \
+ ${DESTDIR}/usr/include/pybind11
+ ln -s /${py3_sitelib}/pybind11/share/cmake/pybind11 \
+ ${DESTDIR}/usr/share/cmake/pybind11
+ ln -s /${py3_sitelib}/pybind11/share/pkgconfig/pybind11.pc \
+ ${DESTDIR}/usr/share/pkgconfig/pybind11.pc
}
next reply other threads:[~2023-05-21 1:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-21 1:21 chrysos349 [this message]
2023-05-21 1:26 ` classabbyamp
2023-05-21 1:54 ` chrysos349
2023-05-25 18:30 ` ahesford
2023-05-26 14:34 ` chrysos349
2023-05-26 15:28 ` ahesford
2023-05-26 16:03 ` chrysos349
2023-05-26 16:03 ` [PR PATCH] [Closed]: " chrysos349
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43981@inbox.vuxu.org \
--to=chrysos349@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).