Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] splint: Fix cross-build
@ 2020-12-13 18:56 ndowens
  2020-12-13 19:00 ` [PR PATCH] [Updated] " ndowens
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ndowens @ 2020-12-13 18:56 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-14  1:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 18:56 [PR PATCH] splint: Fix cross-build ndowens
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

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).