Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mc: update to 4.8.31.
@ 2024-02-12  9:34 0x5c
  2024-02-12 11:40 ` chrysos349
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: 0x5c @ 2024-02-12  9:34 UTC (permalink / raw)
  To: ml

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

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

https://github.com/0x5c/void-packages update/mc
https://github.com/void-linux/void-packages/pull/48669

mc: update to 4.8.31.
Removed the mksh patch since it was purely adding a feature that isn't related to void, hasn't been accepted by upstream (yet?), and that the correctness of which is unclear. I also don't use mksh and have no way to ensure the patch is still good or remains good in the future. See: https://midnight-commander.org/ticket/3748

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

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

<!--
#### 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/48669.patch is attached

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

From 177f126feba37893617c296f6f4eef227393caee Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Mon, 12 Feb 2024 04:29:41 -0500
Subject: [PATCH] mc: update to 4.8.31.

Removed the mksh patch since it was purely adding a feature that isn't
related to void, hasn't been accepted by upstream (yet?), and that the
correctness of which is unclear. I also don't use mksh and have no way
to ensure the patch is still good or remains good in the future.
See: https://midnight-commander.org/ticket/3748
---
 srcpkgs/mc/files/README.voidlinux            |  2 +-
 srcpkgs/mc/patches/extfs-python3.patch       | 73 +-------------------
 srcpkgs/mc/patches/mc-mksh-subshell-v2.patch | 67 ------------------
 srcpkgs/mc/patches/xbps.patch                |  4 +-
 srcpkgs/mc/template                          |  4 +-
 5 files changed, 8 insertions(+), 142 deletions(-)
 delete mode 100644 srcpkgs/mc/patches/mc-mksh-subshell-v2.patch

diff --git a/srcpkgs/mc/files/README.voidlinux b/srcpkgs/mc/files/README.voidlinux
index 986eb668051842..d0c5bab6a7ff25 100644
--- a/srcpkgs/mc/files/README.voidlinux
+++ b/srcpkgs/mc/files/README.voidlinux
@@ -29,7 +29,7 @@ the mc package and must be installed manually for the backends to work properly.
 | `unar` unar wrapper                         | `unar`                                               |
 | `urar` RAR archive support                  | `unrar`                                              |
 | `uwim` Windows WIM archive support          | `wimlib`                                             |
-| `uzip` ZIP archive support                  | `perl zip unzip`                                      |
+| `uzip` ZIP archive support                  | `perl zip unzip`                                     |
 
 `[common_archivers]` refers to the following archivers/compressors: `bzip2 gzip lz4 lzip xz zstd`.
 
diff --git a/srcpkgs/mc/patches/extfs-python3.patch b/srcpkgs/mc/patches/extfs-python3.patch
index d86472ea817661..baf752e0354052 100644
--- a/srcpkgs/mc/patches/extfs-python3.patch
+++ b/srcpkgs/mc/patches/extfs-python3.patch
@@ -1,80 +1,13 @@
-Taken from https://src.fedoraproject.org/rpms/mc/blob/rawhide/f/mc-python3.patch
-Also see https://github.com/MidnightCommander/mc/pull/149
+Fix interpreter line, which https://github.com/MidnightCommander/mc/commit/ea6bd1866e7de2f2db6291bed75e7c2398b9eda4
+somehow didn't include
 
 --
 
---- a/src/vfs/extfs/helpers/uc1541
-+++ b/src/vfs/extfs/helpers/uc1541
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/env python3
- """
- UC1541 Virtual filesystem
- 
 --- a/src/vfs/extfs/helpers/s3+.in
 +++ b/src/vfs/extfs/helpers/s3+.in
 @@ -1,4 +1,4 @@
 -#! @PYTHON@
 +#! /usr/bin/env python3
  # -*- coding: utf-8 -*-
- 
+
  #
-@@ -153,16 +153,16 @@
- 	Propagates exception safely.
- 	"""
- 	from threading import Thread
--	import Queue
-+	import queue
- 
- 	items = list(iterable)
- 	nitems = len(items)
- 	if nitems < 2:
--		return map(fun, items)
-+		return list(map(fun, items))
- 
- 	# Create and fill input queue
--	input = Queue.Queue()
--	output = Queue.Queue()
-+	input = queue.Queue()
-+	output = queue.Queue()
- 
- 	for i,item in enumerate(items):
- 		input.put( (i,item) )
-@@ -181,7 +181,7 @@
- 						output.put( (i,result) )
- 					except:
- 						output.put( (None,sys.exc_info()) )
--				except Queue.Empty:
-+				except queue.Empty:
- 					return
- 
- 	# Start threads
-@@ -196,8 +196,8 @@
- 		try:
- 			i,res = output.get()
- 			if i == None:
--				raise res[0],res[1],res[2]
--		except Queue.Empty:
-+				raise res[0](res[1]).with_traceback(res[2])
-+		except queue.Empty:
- 			break
- 		ret.append(res)
- 
-@@ -241,7 +241,7 @@
- 		b = s3.get_bucket(name, validate=False)
- 		b.get_location() # just to raise an exception on error
- 		return b
--	except boto.exception.S3ResponseError, e:
-+	except boto.exception.S3ResponseError as e:
- 		# Seems this is the only proper way to switch to the bucket's region.
- 		# Requesting of the default region for "?location" does not work unfortunately.
- 		m = re.search(r'<Region>(.*?)</Region>', e.body)
-@@ -340,7 +340,7 @@
- 	expr = re.compile(r'^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.\d{3}Z$')
- 	def convDate(awsdatetime):
- 		m = expr.match(awsdatetime)
--		ye,mo,da,ho,mi,se = map(int,m.groups())
-+		ye,mo,da,ho,mi,se = list(map(int,m.groups()))
- 
- 		dt = datetime.datetime(ye,mo,da,ho,mi,se, tzinfo=pytz.utc)
- 		return dt.astimezone(tz).strftime('%m-%d-%Y %H:%M')
diff --git a/srcpkgs/mc/patches/mc-mksh-subshell-v2.patch b/srcpkgs/mc/patches/mc-mksh-subshell-v2.patch
deleted file mode 100644
index 183542dcd7eb2b..00000000000000
--- a/srcpkgs/mc/patches/mc-mksh-subshell-v2.patch
+++ /dev/null
@@ -1,67 +0,0 @@
---- a/lib/shell.c
-+++ b/lib/shell.c
-@@ -68,6 +68,8 @@ mc_shell_get_installed_in_system (void)
-         mc_shell->path = g_strdup ("/bin/bash");
-     else if (access ("/bin/ash", X_OK) == 0)
-         mc_shell->path = g_strdup ("/bin/ash");
-+    else if (access ("/bin/mksh", X_OK) == 0)
-+        mc_shell->path = g_strdup ("/bin/mksh");
-     else if (access ("/bin/dash", X_OK) == 0)
-         mc_shell->path = g_strdup ("/bin/dash");
-     else if (access ("/bin/busybox", X_OK) == 0)
-@@ -149,6 +151,12 @@ mc_shell_recognize_real_path (mc_shell_t * mc_shell)
-         mc_shell->type = SHELL_ZSH;
-         mc_shell->name = "zsh";
-     }
-+    else if (strstr (mc_shell->path, "/mksh") != NULL
-+             || strstr (mc_shell->real_path, "/mksh") != NULL)
-+    {
-+        mc_shell->type = SHELL_MKSH;
-+        mc_shell->name = "mksh";
-+    }
-     else if (strstr (mc_shell->path, "/tcsh") != NULL
-              || strstr (mc_shell->real_path, "/tcsh") != NULL)
-     {
---- a/lib/shell.h
-+++ b/lib/shell.h
-@@ -16,6 +16,7 @@ typedef enum
-     SHELL_BASH,
-     SHELL_ASH_BUSYBOX,          /* BusyBox default shell (ash) */
-     SHELL_DASH,                 /* Debian variant of ash */
-+    SHELL_MKSH,
-     SHELL_TCSH,
-     SHELL_ZSH,
-     SHELL_FISH
---- a/src/subshell/common.c
-+++ b/src/subshell/common.c
-@@ -378,6 +378,11 @@ init_subshell_child (const char *pty_name)
-         }
-         break;
- 
-+    case SHELL_MKSH:
-+        init_file = g_strdup (".shrc");
-+        g_setenv ("ENV", init_file, TRUE);
-+        break;
-+
-         /* TODO: Find a way to pass initfile to TCSH and FISH */
-     case SHELL_TCSH:
-     case SHELL_FISH:
-@@ -427,6 +432,7 @@ init_subshell_child (const char *pty_name)
- 
-     case SHELL_ASH_BUSYBOX:
-     case SHELL_DASH:
-+    case SHELL_MKSH:
-     case SHELL_TCSH:
-     case SHELL_FISH:
-         execl (mc_global.shell->path, mc_global.shell->path, (char *) NULL);
-@@ -1091,6 +1097,10 @@ init_subshell_precmd (char *precmd, size_t buff_size)
-                     "PS1='\\u@\\h:\\w\\$ '\n", command_buffer_pipe[WRITE],
-                     command_buffer_pipe[WRITE], subshell_pipe[WRITE]);
-         break;
-+    case SHELL_MKSH:
-+        g_snprintf (precmd, buff_size,
-+                "PS1='$(pwd>&%d; kill -STOP $$)'\"$((( USER_ID )) && print '$ ' || print '# ')\"\n", subshell_pipe[WRITE]);
-+        break;
- 
-     case SHELL_ASH_BUSYBOX:
-         /* BusyBox ash needs a somewhat complicated precmd emulation via PS1, and it is vital
diff --git a/srcpkgs/mc/patches/xbps.patch b/srcpkgs/mc/patches/xbps.patch
index e8268bd0eb2431..54b05082dc43e2 100644
--- a/srcpkgs/mc/patches/xbps.patch
+++ b/srcpkgs/mc/patches/xbps.patch
@@ -7,8 +7,8 @@
 -# .tar.xz, .txz
 +# .tar.xz, .txz, .xbps
  [tar.xz]
--Regex=\.t(ar\.xz|xz)$
-+Regex=\.(t(ar\.xz|xz)|xbps)$
+-Regex=\\.t(ar\\.xz|xz)$
++Regex=\\.(t(ar\\.xz|xz)|xbps)$
  Open=%cd %p/utar://
  View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
  
diff --git a/srcpkgs/mc/template b/srcpkgs/mc/template
index 8b3085709ee71b..6d253169ae9894 100644
--- a/srcpkgs/mc/template
+++ b/srcpkgs/mc/template
@@ -1,6 +1,6 @@
 # Template file for 'mc'
 pkgname=mc
-version=4.8.30
+version=4.8.31
 revision=1
 build_style=gnu-configure
 configure_args="--with-screen=slang --without-x"
@@ -12,7 +12,7 @@ license="GPL-3.0-or-later"
 homepage="https://midnight-commander.org/"
 changelog="https://midnight-commander.org/wiki/NEWS-${version}"
 distfiles="https://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
-checksum=5ebc3cb2144b970c5149fda556c4ad50b78780494696cdf2d14a53204c95c7df
+checksum=24191cf8667675b8e31fc4a9d18a0a65bdc0598c2c5c4ea092494cd13ab4ab1a
 
 conf_files="
  /etc/mc/filehighlight.ini

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

* Re: mc: update to 4.8.31.
  2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
@ 2024-02-12 11:40 ` chrysos349
  2024-02-12 13:26 ` 0x5c
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: chrysos349 @ 2024-02-12 11:40 UTC (permalink / raw)
  To: ml

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

New comment by chrysos349 on void-packages repository

https://github.com/void-linux/void-packages/pull/48669#issuecomment-1938515669

Comment:
1. add `python_version=3` to the template, and remove `extfs-python3.patch`

2. xbps is a zstd-compressed data, not xz. i know somehow it works even with the current patch, but you might as well modify `xbps.patch` .
```
--- a/misc/mc.ext.ini.in
+++ b/misc/mc.ext.ini.in
@@ -254,9 +254,9 @@
 Open=%cd %p/utar://
 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz
 
-# .tar.zst, .tzst
+# .tar.zst, .tzst, .xbps
 [tar.zst]
-Regex=\\.t(ar\\.zst|zst)$
+Regex=\\.(t(ar\\.zst|zst)|xbps)$
 Open=%cd %p/utar://
 View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst
```

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

* Re: mc: update to 4.8.31.
  2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
  2024-02-12 11:40 ` chrysos349
@ 2024-02-12 13:26 ` 0x5c
  2024-02-13 14:10 ` [PR REVIEW] " sgn
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2024-02-12 13:26 UTC (permalink / raw)
  To: ml

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

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/48669#issuecomment-1938677861

Comment:
> xbps is a zstd-compressed data, not xz. i know somehow it works even with the current patch, but you might as well modify xbps.patch

xbps packages files are compressed using one of many formats supported by xbps, of which zstd is only a recent addition; there are no correct place for that entry

> add python_version=3 to the template, and remove extfs-python3.patch

It was already there, it works, and I'm not modifying that PR just for that
Additionally, the conversion happens regardless without `python_version=3, and the s3+ extfs is not currently possible to run on void without messing with the interpreter in the first place; we dont ship the older python3-boto

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

* Re: [PR REVIEW] mc: update to 4.8.31.
  2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
  2024-02-12 11:40 ` chrysos349
  2024-02-12 13:26 ` 0x5c
@ 2024-02-13 14:10 ` sgn
  2024-02-13 14:13 ` 0x5c
  2024-02-14 20:57 ` [PR PATCH] [Merged]: " classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2024-02-13 14:10 UTC (permalink / raw)
  To: ml

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

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/48669#discussion_r1487927259

Comment:
`.xbps` is `.tar.zst` nowaday.

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

* Re: [PR REVIEW] mc: update to 4.8.31.
  2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
                   ` (2 preceding siblings ...)
  2024-02-13 14:10 ` [PR REVIEW] " sgn
@ 2024-02-13 14:13 ` 0x5c
  2024-02-14 20:57 ` [PR PATCH] [Merged]: " classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2024-02-13 14:13 UTC (permalink / raw)
  To: ml

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

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/48669#discussion_r1487933366

Comment:
As stated above, there are no correct places for it, it could be anywhere
This mechanism does autodetection of compression, and seemingly can't even be forced to read an archive differently than what the autodetection picks. 

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

* Re: [PR PATCH] [Merged]: mc: update to 4.8.31.
  2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
                   ` (3 preceding siblings ...)
  2024-02-13 14:13 ` 0x5c
@ 2024-02-14 20:57 ` classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2024-02-14 20:57 UTC (permalink / raw)
  To: ml

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

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

mc: update to 4.8.31.
https://github.com/void-linux/void-packages/pull/48669

Description:
Removed the mksh patch since it was purely adding a feature that isn't related to void, hasn't been accepted by upstream (yet?), and that the correctness of which is unclear. I also don't use mksh and have no way to ensure the patch is still good or remains good in the future. See: https://midnight-commander.org/ticket/3748

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

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

<!--
#### 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
-->


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

end of thread, other threads:[~2024-02-14 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12  9:34 [PR PATCH] mc: update to 4.8.31 0x5c
2024-02-12 11:40 ` chrysos349
2024-02-12 13:26 ` 0x5c
2024-02-13 14:10 ` [PR REVIEW] " sgn
2024-02-13 14:13 ` 0x5c
2024-02-14 20:57 ` [PR PATCH] [Merged]: " classabbyamp

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