Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] grep: update to 3.8.
@ 2022-09-18 11:38 paper42
  2022-09-18 11:53 ` [PR PATCH] [Updated] " paper42
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: paper42 @ 2022-09-18 11:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages grep-3.8
https://github.com/void-linux/void-packages/pull/39340

grep: update to 3.8.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - ppc-musl (cross)
  - mips-musl (cross)

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-grep-3.8-39340.patch --]
[-- Type: text/x-diff, Size: 2124 bytes --]

From 39bb9281bc1c0d70de95b1c9f3476176f0d2e0b0 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 18 Sep 2022 13:30:30 +0200
Subject: [PATCH] grep: update to 3.8.

---
 srcpkgs/grep/patches/ppc-musl.patch | 14 --------------
 srcpkgs/grep/template               |  8 ++++----
 2 files changed, 4 insertions(+), 18 deletions(-)
 delete mode 100644 srcpkgs/grep/patches/ppc-musl.patch

diff --git a/srcpkgs/grep/patches/ppc-musl.patch b/srcpkgs/grep/patches/ppc-musl.patch
deleted file mode 100644
index 6ba37f233591..000000000000
--- a/srcpkgs/grep/patches/ppc-musl.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/lib/sigsegv.c
-+++ b/lib/sigsegv.c
-@@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERSION;
- /* both should be equivalent */
- #   if 0
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
--#   else
-+#   elif defined(__GLIBC__)
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
-+#   else
-+#    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
- #   endif
- #  endif
- 
diff --git a/srcpkgs/grep/template b/srcpkgs/grep/template
index 7bab5c9c28e6..04b2f7c56ac0 100644
--- a/srcpkgs/grep/template
+++ b/srcpkgs/grep/template
@@ -1,22 +1,22 @@
 # Template file for 'grep'
 pkgname=grep
-version=3.7
+version=3.8
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config"
-makedepends="pcre-devel"
+makedepends="pcre2-devel"
 checkdepends="perl"
 short_desc="GNU grep utility"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/grep/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
-checksum=5c10da312460aec721984d5d83246d24520ec438dd48d7ab5a05dbc0d6d6823c
+checksum=498d7cc1b4fb081904d87343febb73475cf771e424fb7e6141aff66013abc382
 
 pre_check() {
 	case "$XBPS_TARGET_MACHINE" in
 		*-musl)
 			# Disable locale tests that fail on musl
-			sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile
+			vsed -i '/test-localename$(OBJEXT)/d' gnulib-tests/Makefile
 	esac
 }

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

* Re: [PR PATCH] [Updated] grep: update to 3.8.
  2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
@ 2022-09-18 11:53 ` paper42
  2022-09-18 18:28 ` loreb
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2022-09-18 11:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages grep-3.8
https://github.com/void-linux/void-packages/pull/39340

grep: update to 3.8.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - ppc-musl (cross)
  - mips-musl (cross)

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-grep-3.8-39340.patch --]
[-- Type: text/x-diff, Size: 2066 bytes --]

From a8712fc231499ef3c1cb836cf68d7aaa484c2cd7 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 18 Sep 2022 13:30:30 +0200
Subject: [PATCH] grep: update to 3.8.

---
 srcpkgs/grep/patches/ppc-musl.patch | 14 --------------
 srcpkgs/grep/template               | 14 +++-----------
 2 files changed, 3 insertions(+), 25 deletions(-)
 delete mode 100644 srcpkgs/grep/patches/ppc-musl.patch

diff --git a/srcpkgs/grep/patches/ppc-musl.patch b/srcpkgs/grep/patches/ppc-musl.patch
deleted file mode 100644
index 6ba37f233591..000000000000
--- a/srcpkgs/grep/patches/ppc-musl.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/lib/sigsegv.c
-+++ b/lib/sigsegv.c
-@@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERSION;
- /* both should be equivalent */
- #   if 0
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
--#   else
-+#   elif defined(__GLIBC__)
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
-+#   else
-+#    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
- #   endif
- #  endif
- 
diff --git a/srcpkgs/grep/template b/srcpkgs/grep/template
index 7bab5c9c28e6..d659425a0bee 100644
--- a/srcpkgs/grep/template
+++ b/srcpkgs/grep/template
@@ -1,22 +1,14 @@
 # Template file for 'grep'
 pkgname=grep
-version=3.7
+version=3.8
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config"
-makedepends="pcre-devel"
+makedepends="pcre2-devel"
 checkdepends="perl"
 short_desc="GNU grep utility"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/grep/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
-checksum=5c10da312460aec721984d5d83246d24520ec438dd48d7ab5a05dbc0d6d6823c
-
-pre_check() {
-	case "$XBPS_TARGET_MACHINE" in
-		*-musl)
-			# Disable locale tests that fail on musl
-			sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile
-	esac
-}
+checksum=498d7cc1b4fb081904d87343febb73475cf771e424fb7e6141aff66013abc382

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

* Re: grep: update to 3.8.
  2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
  2022-09-18 11:53 ` [PR PATCH] [Updated] " paper42
@ 2022-09-18 18:28 ` loreb
  2022-09-18 19:04 ` [PR PATCH] [Updated] " paper42
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: loreb @ 2022-09-18 18:28 UTC (permalink / raw)
  To: ml

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

New comment by loreb on void-packages repository

https://github.com/void-linux/void-packages/pull/39340#issuecomment-1250362311

Comment:
This version complains to stderr every time you run egrep/fgrep (see eg https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019335); imho you'd better patch that out or there will be **lots** of silly bug reports (think of all the scripts using fgrep/egrep, and all the chances to mistakenly replace fgrep->"grep -E" or egrep->"grep -F").

They also added another warning if you insert an extra backslash before '-', not sure about that.

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

* Re: [PR PATCH] [Updated] grep: update to 3.8.
  2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
  2022-09-18 11:53 ` [PR PATCH] [Updated] " paper42
  2022-09-18 18:28 ` loreb
@ 2022-09-18 19:04 ` paper42
  2022-09-18 19:05 ` paper42
  2022-09-21 17:24 ` [PR PATCH] [Merged]: " leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2022-09-18 19:04 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages grep-3.8
https://github.com/void-linux/void-packages/pull/39340

grep: update to 3.8.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - ppc-musl (cross)
  - mips-musl (cross)

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-grep-3.8-39340.patch --]
[-- Type: text/x-diff, Size: 2834 bytes --]

From 54133e0b9e095352fd56bcfd918f7d4effe61ae1 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 18 Sep 2022 13:30:30 +0200
Subject: [PATCH] grep: update to 3.8.

* patch out problematic warnings in egrep and fgrep
---
 srcpkgs/grep/patches/efgrep-remove-warning.patch | 10 ++++++++++
 srcpkgs/grep/patches/ppc-musl.patch              | 14 --------------
 srcpkgs/grep/template                            | 14 +++-----------
 3 files changed, 13 insertions(+), 25 deletions(-)
 create mode 100644 srcpkgs/grep/patches/efgrep-remove-warning.patch
 delete mode 100644 srcpkgs/grep/patches/ppc-musl.patch

diff --git a/srcpkgs/grep/patches/efgrep-remove-warning.patch b/srcpkgs/grep/patches/efgrep-remove-warning.patch
new file mode 100644
index 000000000000..6371301688f0
--- /dev/null
+++ b/srcpkgs/grep/patches/efgrep-remove-warning.patch
@@ -0,0 +1,10 @@
+since 3.8, egrep and fgrep print a warning which can cause many issues with
+programs not expecting this behaviour
+
+--- a/src/egrep.sh
++++ b/src/egrep.sh
+@@ -1,4 +1,3 @@
+ #!@SHELL@
+ cmd=${0##*/}
+-echo "$cmd: warning: $cmd is obsolescent; using @grep@ @option@" >&2
+ exec @grep@ @option@ "$@"
diff --git a/srcpkgs/grep/patches/ppc-musl.patch b/srcpkgs/grep/patches/ppc-musl.patch
deleted file mode 100644
index 6ba37f233591..000000000000
--- a/srcpkgs/grep/patches/ppc-musl.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/lib/sigsegv.c
-+++ b/lib/sigsegv.c
-@@ -221,8 +221,10 @@ int libsigsegv_version = LIBSIGSEGV_VERSION;
- /* both should be equivalent */
- #   if 0
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.regs->gpr[1]
--#   else
-+#   elif defined(__GLIBC__)
- #    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
-+#   else
-+#    define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) ucp)->uc_mcontext.gregs[1]
- #   endif
- #  endif
- 
diff --git a/srcpkgs/grep/template b/srcpkgs/grep/template
index 7bab5c9c28e6..d659425a0bee 100644
--- a/srcpkgs/grep/template
+++ b/srcpkgs/grep/template
@@ -1,22 +1,14 @@
 # Template file for 'grep'
 pkgname=grep
-version=3.7
+version=3.8
 revision=1
 build_style=gnu-configure
 hostmakedepends="pkg-config"
-makedepends="pcre-devel"
+makedepends="pcre2-devel"
 checkdepends="perl"
 short_desc="GNU grep utility"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://www.gnu.org/software/grep/"
 distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
-checksum=5c10da312460aec721984d5d83246d24520ec438dd48d7ab5a05dbc0d6d6823c
-
-pre_check() {
-	case "$XBPS_TARGET_MACHINE" in
-		*-musl)
-			# Disable locale tests that fail on musl
-			sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile
-	esac
-}
+checksum=498d7cc1b4fb081904d87343febb73475cf771e424fb7e6141aff66013abc382

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

* Re: grep: update to 3.8.
  2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
                   ` (2 preceding siblings ...)
  2022-09-18 19:04 ` [PR PATCH] [Updated] " paper42
@ 2022-09-18 19:05 ` paper42
  2022-09-21 17:24 ` [PR PATCH] [Merged]: " leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2022-09-18 19:05 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39340#issuecomment-1250368024

Comment:
egrep and fgrep warnings should now be patched out, thanks

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

* Re: [PR PATCH] [Merged]: grep: update to 3.8.
  2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
                   ` (3 preceding siblings ...)
  2022-09-18 19:05 ` paper42
@ 2022-09-21 17:24 ` leahneukirchen
  4 siblings, 0 replies; 6+ messages in thread
From: leahneukirchen @ 2022-09-21 17:24 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

grep: update to 3.8.
https://github.com/void-linux/void-packages/pull/39340

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - ppc-musl (cross)
  - mips-musl (cross)

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

end of thread, other threads:[~2022-09-21 17:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18 11:38 [PR PATCH] grep: update to 3.8 paper42
2022-09-18 11:53 ` [PR PATCH] [Updated] " paper42
2022-09-18 18:28 ` loreb
2022-09-18 19:04 ` [PR PATCH] [Updated] " paper42
2022-09-18 19:05 ` paper42
2022-09-21 17:24 ` [PR PATCH] [Merged]: " leahneukirchen

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