From: ndowens <ndowens@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] splint: Fix cross-build
Date: Sun, 13 Dec 2020 19:56:46 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27124@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
There is a new pull request by ndowens against master on the void-packages repository
https://github.com/ndowens/void-packages splint
https://github.com/void-linux/void-packages/pull/27124
splint: Fix cross-build
A patch file from https://github.com/void-linux/void-packages/pull/27124.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-splint-27124.patch --]
[-- Type: text/x-diff, Size: 1168 bytes --]
From 8cdef6d4b9d32540a9594c8510a61aaed7414ed8 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Sun, 13 Dec 2020 12:57:34 -0600
Subject: [PATCH] splint: Fix cross-build
---
srcpkgs/splint/template | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/splint/template b/srcpkgs/splint/template
index 4e3a93eaf29..5420a6cfc4b 100644
--- a/srcpkgs/splint/template
+++ b/srcpkgs/splint/template
@@ -1,7 +1,7 @@
# Template file for 'splint'
pkgname=splint
version=3.1.2
-revision=4
+revision=5
wrksrc="${pkgname}-${version}.orig"
build_style=gnu-configure
hostmakedepends="flex"
@@ -13,9 +13,16 @@ license="GPL-2"
distfiles="${DEBIAN_SITE}/main/s/splint/${pkgname}_${version}+dfsg.orig.tar.xz"
checksum=51cd7ba978a366ae1ededac2b927058fd5f45d5455e5a9d640b75ab4e45b748a
disable_parallel_build=yes
-nocross=yes
post_patch() {
vsed -i 's/__pid_t/pid_t/g' src/osd.c
vsed -i -e '/RM.*[.]tab[.]h/d' src/Makefile.am src/Makefile.in
}
+
+post_configure() {
+ # Test tries to run program. If cross-building
+ # this will fail.
+ if [ "$CROSS_BUILD" ]; then
+ vsed -i '/SUBDIRS/s|test||' Makefile
+ fi
+}
next reply other threads:[~2020-12-13 18:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-13 18:56 ndowens [this message]
2020-12-13 19:00 ` [PR PATCH] [Updated] " ndowens
2020-12-13 19:16 ` [PR REVIEW] " ericonr
2020-12-13 19:24 ` [PR PATCH] [Updated] " ndowens
2020-12-13 20:07 ` ericonr
2020-12-13 23:20 ` ndowens
2020-12-13 23:24 ` ndowens
2020-12-14 1:07 ` 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-27124@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).