Github messages for voidlinux
 help / color / mirror / Atom feed
From: mtboehlke <mtboehlke@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] WIP: libedit: update to 20221009.3.1.
Date: Sun, 16 Oct 2022 09:53:02 +0200	[thread overview]
Message-ID: <20221016075302.sLrKELI4ev3n2XDSbZKL-yK3Z9qyiH87FzwMGV8dDX0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39980@inbox.vuxu.org>

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

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

https://github.com/mtboehlke/void-packages libedit
https://github.com/void-linux/void-packages/pull/39980

WIP: libedit: update to 20221009.3.1.
<!-- 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, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From b36e2414319f846adc60104f699d1955790c89bd Mon Sep 17 00:00:00 2001
From: Mat Boehlke <mtboehlke@gmail.com>
Date: Sun, 16 Oct 2022 01:02:59 -0500
Subject: [PATCH 1/2] libedit: update to 20221009.3.1.

Patch out unnecessary sys/cdefs.h include for building with musl
---
 srcpkgs/libedit/patches/no-cdefs-include.patch | 12 ++++++++++++
 srcpkgs/libedit/template                       |  8 ++++----
 srcpkgs/libedit/update                         |  2 +-
 3 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/libedit/patches/no-cdefs-include.patch

diff --git a/srcpkgs/libedit/patches/no-cdefs-include.patch b/srcpkgs/libedit/patches/no-cdefs-include.patch
new file mode 100644
index 000000000000..f27e2e817920
--- /dev/null
+++ b/srcpkgs/libedit/patches/no-cdefs-include.patch
@@ -0,0 +1,12 @@
+diff --git a/src/reallocarr.c b/src/reallocarr.c
+index c637ab4..549573a 100644
+--- a/src/reallocarr.c
++++ b/src/reallocarr.c
+@@ -37,7 +37,6 @@
+ #include "nbtool_config.h"
+ #endif
+ 
+-#include <sys/cdefs.h>
+ __RCSID("$NetBSD: reallocarr.c,v 1.5 2015/08/20 22:27:49 kamil Exp $");
+ 
+ #include <errno.h>
diff --git a/srcpkgs/libedit/template b/srcpkgs/libedit/template
index 84d1bf136a26..1a492c8aaefe 100644
--- a/srcpkgs/libedit/template
+++ b/srcpkgs/libedit/template
@@ -1,6 +1,6 @@
 # Template file for 'libedit'
 pkgname=libedit
-version=20210910.3.1
+version=20221009.3.1
 revision=1
 _distver="${version%%.*}-${version#*.}"
 wrksrc="${pkgname}-${_distver}"
@@ -9,9 +9,9 @@ makedepends="ncurses-devel"
 short_desc="Port of the NetBSD Command Line Editor Library"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
-homepage="http://www.thrysoee.dk/editline/"
-distfiles="http://www.thrysoee.dk/editline/libedit-${_distver}.tar.gz"
-checksum=6792a6a992050762edcca28ff3318cdb7de37dccf7bc30db59fcd7017eed13c5
+homepage="https://www.thrysoee.dk/editline/"
+distfiles="https://www.thrysoee.dk/editline/libedit-${_distver}.tar.gz"
+checksum=b7b135a5112ce4344c9ac3dff57cc057b2b0e1b912619a36cf1d13fce8e88626
 
 post_install() {
 	vlicense COPYING
diff --git a/srcpkgs/libedit/update b/srcpkgs/libedit/update
index 6cb34c3a8e09..5e7a8a046b21 100644
--- a/srcpkgs/libedit/update
+++ b/srcpkgs/libedit/update
@@ -1,2 +1,2 @@
-version=${_datever}
+version=${version%%.*}
 pattern="${pkgname}-\K\d{8}(?=-[\d.]+\.tar)"

From 7d1d065d4446a823c6e3a7c563a61efa88dbc0fe Mon Sep 17 00:00:00 2001
From: Mat Boehlke <mtboehlke@gmail.com>
Date: Sun, 16 Oct 2022 02:49:53 -0500
Subject: [PATCH 2/2] editline: avoid file conflict with libedit

libedit-devel and editline-devel both package an editline.3 man page
To resolve, here editline.3 is renamed to libeditline.3

Conflict free name borrowed from the gentoo package
---
 srcpkgs/editline/template | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/editline/template b/srcpkgs/editline/template
index 2ea377ce20e0..d7009061ec71 100644
--- a/srcpkgs/editline/template
+++ b/srcpkgs/editline/template
@@ -1,17 +1,21 @@
 # Template file for 'editline'
 pkgname=editline
 version=1.17.1
-revision=1
+revision=2
 build_style=gnu-configure
 short_desc="Minimal readline() replacement"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="Spencer-94"
-homepage="http://troglobit.com/projects/editline/"
+homepage="https://troglobit.com/projects/editline/"
+changelog="https://raw.githubusercontent.com/troglobit/editline/master/ChangeLog.md"
 distfiles="https://github.com/troglobit/editline/releases/download/${version}/editline-${version}.tar.xz"
 checksum=df223b3333a545fddbc67b49ded3d242c66fadf7a04beb3ada20957fcd1ffc0e
 
 post_install() {
 	rm -rf ${DESTDIR}/usr/share/doc
+
+	# avoid conflict with libedit
+	mv ${DESTDIR}/usr/share/man/man3/{,lib}editline.3
 }
 
 editline-devel_package() {

  parent reply	other threads:[~2022-10-16  7:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-16  6:05 [PR PATCH] " mtboehlke
2022-10-16  6:15 ` WIP: " mtboehlke
2022-10-16  7:53 ` mtboehlke [this message]
2022-10-16  7:59 ` mtboehlke
2022-10-16  8:09 ` mtboehlke
2022-10-18 17:55 ` [PR REVIEW] " classabbyamp
2022-10-18 18:56 ` [PR PATCH] [Updated] " mtboehlke
2022-10-18 18:58 ` [PR PATCH] [Merged]: " classabbyamp
2022-10-18 19:00 ` [PR REVIEW] " mtboehlke

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=20221016075302.sLrKELI4ev3n2XDSbZKL-yK3Z9qyiH87FzwMGV8dDX0@z \
    --to=mtboehlke@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).