Github messages for voidlinux
 help / color / mirror / Atom feed
From: ndowens <ndowens@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] nautilus-python: fix cross-build
Date: Fri, 25 Dec 2020 05:03:01 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27416@inbox.vuxu.org> (raw)

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

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages nautilus-python
https://github.com/void-linux/void-packages/pull/27416

nautilus-python: fix cross-build


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

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

From fe607a6dcc5edc4b5e31cde2b5d1ef3b961d2df5 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Thu, 24 Dec 2020 22:04:09 -0600
Subject: [PATCH] nautilus-python: fix cross-build

---
 srcpkgs/nautilus-python/template | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/nautilus-python/template b/srcpkgs/nautilus-python/template
index d4d7d72122b..072aeedb20f 100644
--- a/srcpkgs/nautilus-python/template
+++ b/srcpkgs/nautilus-python/template
@@ -3,8 +3,11 @@ pkgname=nautilus-python
 version=1.2.3
 revision=3
 build_style=gnu-configure
-configure_args="--enable-gtk-doc PYTHON=python3"
-hostmakedepends="automake libtool pkg-config which"
+configure_args="--enable-gtk-doc PYTHON=python3
+ am_cv_python_pythondir=${XBPS_CROSS_BASE}/${py3_lib}/site-packages
+ am_cv_python_pyexecdir=${XBPS_CROSS_BASE}/${py3_lib}/site-packages
+ PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/${py3_inc}"
+hostmakedepends="automake libtool pkg-config which python3"
 makedepends="python3-devel python3-gobject-devel gtk-doc nautilus-devel"
 depends="nautilus python3-gobject"
 short_desc="Python bindings for the Nautilus extension framework"
@@ -13,6 +16,13 @@ license="GPL-2.0-or-later"
 homepage="https://wiki.gnome.org/Projects/NautilusPython"
 distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
 checksum=073ce0297282259937ab473d189b97a04f42b97197c9292fc3bde9d135282098
-nocross="could not find Python headers"
 
 CFLAGS="-fcommon"
+
+pre_build() {
+	# Needs itself to build HTML_DATA
+	# which fails to be found if cross-built
+	if [ "$CROSS_BUILD" ]; then
+		vsed -i '/DATA/s;$(HTML_DATA);;' docs/Makefile
+	fi
+}

             reply	other threads:[~2020-12-25  4:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-25  4:03 ndowens [this message]
2020-12-26  0:05 ` [PR REVIEW] " sgn
2020-12-26  0:06 ` sgn
2020-12-26  0:15 ` [PR PATCH] [Updated] " ndowens
2020-12-26  4:48 ` [PR REVIEW] " sgn
2020-12-26  9:38 ` mnabid
2020-12-27  4:28 ` [PR PATCH] [Closed]: " sgn

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-27416@inbox.vuxu.org \
    --to=ndowens@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).