From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gts: fix cross
Date: Sat, 29 Jan 2022 01:26:12 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35280@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
There is a new pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages gts-cross
https://github.com/void-linux/void-packages/pull/35280
gts: fix cross
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
pinging package maintainers: @leahneukirchen @the-eater
A patch file from https://github.com/void-linux/void-packages/pull/35280.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gts-cross-35280.patch --]
[-- Type: text/x-diff, Size: 3780 bytes --]
From b13ded35ede8b5cd40b6bd7a53389e6870397edf Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 29 Jan 2022 01:13:20 +0100
Subject: [PATCH 1/2] gts: fix cross
---
srcpkgs/gts/patches/cross.patch | 19 +++++++++++++++++++
srcpkgs/gts/template | 1 -
2 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/gts/patches/cross.patch
diff --git a/srcpkgs/gts/patches/cross.patch b/srcpkgs/gts/patches/cross.patch
new file mode 100644
index 000000000000..8499dfa4980e
--- /dev/null
+++ b/srcpkgs/gts/patches/cross.patch
@@ -0,0 +1,19 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -84,6 +84,7 @@
+ @AMDEP_TRUE@ ./$(DEPDIR)/stripe.Plo ./$(DEPDIR)/surface.Plo \
+ @AMDEP_TRUE@ ./$(DEPDIR)/triangle.Plo ./$(DEPDIR)/tribox3.Plo \
+ @AMDEP_TRUE@ ./$(DEPDIR)/vertex.Plo ./$(DEPDIR)/vopt.Plo
++HOST_COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
+@@ -673,7 +674,7 @@
+ $(COMPILE) -c $(srcdir)/predicates.c
+
+ predicates_init: predicates_init.c rounding.h
+- $(COMPILE) $(srcdir)/predicates_init.c -o $(srcdir)/predicates_init
++ $(HOST_COMPILE) $(srcdir)/predicates_init.c -o $(srcdir)/predicates_init
+
+ predicates_init.h: predicates_init
+ ./predicates_init > $(srcdir)/predicates_init.h
diff --git a/srcpkgs/gts/template b/srcpkgs/gts/template
index f73daa3daf08..b5e7538ab09d 100644
--- a/srcpkgs/gts/template
+++ b/srcpkgs/gts/template
@@ -11,7 +11,6 @@ license="LGPL-3.0-or-later"
homepage="http://gts.sourceforge.net/index.html"
distfiles="https://netcologne.dl.sourceforge.net/project/gts/gts/${version}/gts-${version}.tar.gz"
checksum=059c3e13e3e3b796d775ec9f96abdce8f2b3b5144df8514eda0cc12e13e8b81e
-nocross="Tries to execute cross-compiled code"
gts-devel_package() {
depends="gts-${version}_${revision}"
From af99d5622e3efd0f4b97df321be006cc715c7776 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 29 Jan 2022 01:13:47 +0100
Subject: [PATCH 2/2] graphviz: enable gts on cross
---
srcpkgs/graphviz/template | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/srcpkgs/graphviz/template b/srcpkgs/graphviz/template
index b3331462e6b4..5cde2ac24863 100644
--- a/srcpkgs/graphviz/template
+++ b/srcpkgs/graphviz/template
@@ -1,20 +1,20 @@
# Template file for 'graphviz'
pkgname=graphviz
version=2.50.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--enable-lefty"
+configure_args="--enable-lefty --with-gts"
make_build_args="HOSTCC=$BUILD_CC"
hostmakedepends="automake flex libltdl-devel libtool perl pkg-config python3"
makedepends="libpng-devel gd-devel gtk+-devel librsvg-devel libltdl-devel
- libXaw-devel"
+ libXaw-devel gts-devel"
depends="liberation-fonts-ttf"
checkdepends="${depends}"
short_desc="Graph Visualization Software"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
-homepage="http://www.graphviz.org"
-changelog="https://gitlab.com/graphviz/graphviz/-/blob/main/CHANGELOG.md"
+homepage="https://www.graphviz.org"
+changelog="https://gitlab.com/graphviz/graphviz/-/raw/main/CHANGELOG.md"
distfiles="https://gitlab.com/graphviz/graphviz/-/archive/${version}/graphviz-${version}.tar.gz"
checksum=afa48581f764a35e148909cc96a0308ec2356b5225b64af12492f3392f20ef1c
@@ -27,11 +27,6 @@ checksum=afa48581f764a35e148909cc96a0308ec2356b5225b64af12492f3392f20ef1c
# They expect graphviz already installed before testing, disable
make_check=no
-if [ -z "$CROSS_BUILD" ]; then
- configure_args+=" --with-gts"
- makedepends+=" gts-devel"
-fi
-
pre_configure() {
./autogen.sh NOCONFIG
}
next reply other threads:[~2022-01-29 0:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-29 0:26 paper42 [this message]
2022-01-29 0:58 ` [PR PATCH] [Updated] " paper42
2022-01-29 18:37 ` [PR PATCH] [Merged]: " paper42
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-35280@inbox.vuxu.org \
--to=paper42@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).