Github messages for voidlinux
 help / color / mirror / Atom feed
From: 4ricci <4ricci@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] hitch: add checkdepends; simpler patch for cross-compilation
Date: Mon, 07 Dec 2020 01:59:15 +0100	[thread overview]
Message-ID: <20201207005915._2XzoVrJkDXRvxZIyDT8oMYbAYs-LCnZIU9vNFCrxSg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27012@inbox.vuxu.org>

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

There is an updated pull request by 4ricci against master on the void-packages repository

https://github.com/4ricci/void-packages hitch-1.5.2
https://github.com/void-linux/void-packages/pull/27012

hitch: add checkdepends; simpler patch for cross-compilation


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-hitch-1.5.2-27012.patch --]
[-- Type: text/x-diff, Size: 6848 bytes --]

From cd042a92cf3b20a648044f2b2eaf960e17b8643e Mon Sep 17 00:00:00 2001
From: Roberto Ricci <ricci@disroot.org>
Date: Mon, 7 Dec 2020 01:32:04 +0100
Subject: [PATCH] hitch: add checkdepends; simpler patch for cross-compilation

---
 srcpkgs/hitch/patches/configure.patch    | 131 -----------------------
 srcpkgs/hitch/patches/cross-compile.diff |  11 ++
 srcpkgs/hitch/template                   |   9 +-
 3 files changed, 18 insertions(+), 133 deletions(-)
 delete mode 100644 srcpkgs/hitch/patches/configure.patch
 create mode 100644 srcpkgs/hitch/patches/cross-compile.diff

diff --git a/srcpkgs/hitch/patches/configure.patch b/srcpkgs/hitch/patches/configure.patch
deleted file mode 100644
index eba616119d1..00000000000
--- a/srcpkgs/hitch/patches/configure.patch
+++ /dev/null
@@ -1,131 +0,0 @@
---- configure-master	2020-04-30 18:55:31.884880427 +0200
-+++ configure	2020-04-30 19:58:12.271990731 +0200
-@@ -6798,12 +6798,6 @@
- $as_echo_n "checking whether the compiler accepts -g... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$HITCH_CFLAGS -g $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6817,7 +6811,6 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
- 	CFLAGS=$hitch_save_CFLAGS
- 
-@@ -6826,12 +6819,6 @@
- $as_echo_n "checking whether the compiler accepts -O2... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$HITCH_CFLAGS -O2 $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6845,7 +6832,6 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
- 	CFLAGS=$hitch_save_CFLAGS
- 
-@@ -6862,12 +6848,6 @@
- $as_echo_n "checking whether the compiler accepts -Wall... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$HITCH_CFLAGS -Wall $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6881,7 +6861,6 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
- 	CFLAGS=$hitch_save_CFLAGS
- 
-@@ -6890,12 +6869,6 @@
- $as_echo_n "checking whether the compiler accepts -W... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$HITCH_CFLAGS -W $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6909,7 +6882,6 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
- 	CFLAGS=$hitch_save_CFLAGS
- 
-@@ -6918,12 +6890,6 @@
- $as_echo_n "checking whether the compiler accepts -Werror... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$HITCH_CFLAGS -Werror $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6937,7 +6903,6 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
- 	CFLAGS=$hitch_save_CFLAGS
- 
-@@ -6956,12 +6921,6 @@
- $as_echo_n "checking whether the compiler accepts -fno-strict-aliasing... " >&6; }
- 	hitch_save_CFLAGS=$CFLAGS
- 	CFLAGS="$EV_CFLAGS -fno-strict-aliasing $CFLAGS"
--	if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- int main(void) { return (0); }
-@@ -6975,9 +6934,8 @@
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-   conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
- 
--	CFLAGS=$hitch_save_CFLAGS
-+	CFLAGS="$hitch_save_CFLAGS -fno-strict-aliasing"
- 
- 
- 
diff --git a/srcpkgs/hitch/patches/cross-compile.diff b/srcpkgs/hitch/patches/cross-compile.diff
new file mode 100644
index 00000000000..d64624e6b72
--- /dev/null
+++ b/srcpkgs/hitch/patches/cross-compile.diff
@@ -0,0 +1,11 @@
+--- hitch.m4
++++ hitch.m4
+@@ -24,7 +24,7 @@
+ 	AC_MSG_CHECKING([whether the compiler accepts $2])
+ 	hitch_save_CFLAGS=$CFLAGS
+ 	CFLAGS="[$]$1 $2 $CFLAGS"
+-	AC_RUN_IFELSE(
++	AC_LINK_IFELSE(
+ 		[AC_LANG_SOURCE([int main(void) { return (0); }])],
+ 		[AC_MSG_RESULT([yes]); $1="[$]$1 $2"],
+ 		[AC_MSG_RESULT([no])])
diff --git a/srcpkgs/hitch/template b/srcpkgs/hitch/template
index f99169099c0..1b5fd3ef796 100644
--- a/srcpkgs/hitch/template
+++ b/srcpkgs/hitch/template
@@ -1,11 +1,12 @@
 # Template file for 'hitch'
 pkgname=hitch
 version=1.5.2
-revision=2
+revision=1
 build_style=gnu-configure
 configure_args="ac_cv_so_reuseport_works=yes ac_cv_so_tfo=yes"
-hostmakedepends="pkg-config"
+hostmakedepends="pkg-config automake"
 makedepends="libev-devel libressl-devel"
+checkdepends="lsof curl grep"
 short_desc="Libev-based high performance SSL/TLS proxy"
 maintainer="Jannis Christ <hello@jannis.ovh>"
 license="BSD-2-Clause"
@@ -16,6 +17,10 @@ system_accounts="_hitch"
 
 CFLAGS="-fcommon"
 
+pre_configure() {
+	autoreconf -fi
+}
+
 post_install() {
 	vman hitch.8
 	vman hitch.conf.5

  parent reply	other threads:[~2020-12-07  0:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07  0:47 [PR PATCH] hitch: update to 1.5.2 - Add checkdepends - Simpler " 4ricci
2020-12-07  0:56 ` [PR PATCH] [Updated] hitch: update to 1.5.2 4ricci
2020-12-07  0:59 ` 4ricci [this message]
2020-12-07  1:00 ` [PR PATCH] [Updated] hitch: add checkdepends; simpler patch for cross-compilation 4ricci
2020-12-09 15:11 ` ericonr
2020-12-09 15:12 ` [PR PATCH] [Merged]: " ericonr

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=20201207005915._2XzoVrJkDXRvxZIyDT8oMYbAYs-LCnZIU9vNFCrxSg@z \
    --to=4ricci@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).