Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] base-files: modify kernel listing in vkpurge
@ 2020-08-16 15:02 Ypnose
  2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Ypnose @ 2020-08-16 15:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Ypnose/void-packages master
https://github.com/void-linux/void-packages/pull/24310

base-files: modify kernel listing in vkpurge
By default, kernel listing is not done by version, For example :

4.19.131_1
5.4.18_1
5.4.50_1
5.4.5_1
5.4.9_1
5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :
4.19.131_1
5.4.5_1
5.4.9_1
5.4.11_1
5.4.18_1
5.4.50_1

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

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

From 72a51d340595c06d8fa8d26342923088918f9819 Mon Sep 17 00:00:00 2001
From: Ypnose <Ypnose@users.noreply.github.com>
Date: Sun, 16 Aug 2020 17:01:26 +0200
Subject: [PATCH] base-files: modify kernel listing in vkpurge

By default, kernel listing is not done by version, For example :

4.19.131_1
5.4.18_1
5.4.50_1
5.4.5_1
5.4.9_1
5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :
4.19.131_1
5.4.5_1
5.4.9_1
5.4.11_1
5.4.18_1
5.4.50_1
---
 srcpkgs/base-files/files/vkpurge | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/base-files/files/vkpurge b/srcpkgs/base-files/files/vkpurge
index 5519147b905..c7c6a78f6b2 100644
--- a/srcpkgs/base-files/files/vkpurge
+++ b/srcpkgs/base-files/files/vkpurge
@@ -33,7 +33,7 @@ list_kernels() {
 				$pattern) printf "%s\n" "$kver" ;;
 			esac
 		done
-	done | sort -u
+	done | sort -uV
 }
 
 run_hooks() {

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

* Re: [PR PATCH] [Updated] base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
@ 2020-08-16 15:06 ` Ypnose
  2020-08-20 15:40 ` ahesford
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Ypnose @ 2020-08-16 15:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Ypnose/void-packages master
https://github.com/void-linux/void-packages/pull/24310

base-files: modify kernel listing in vkpurge
By default, kernel listing is not done by version. For example :

    4.19.131_1
    5.4.18_1
    5.4.50_1
    5.4.5_1
    5.4.9_1
    5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :

    4.19.131_1
    5.4.5_1
    5.4.9_1
    5.4.11_1
    5.4.18_1
    5.4.50_1

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

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

From 72a51d340595c06d8fa8d26342923088918f9819 Mon Sep 17 00:00:00 2001
From: Ypnose <Ypnose@users.noreply.github.com>
Date: Sun, 16 Aug 2020 17:01:26 +0200
Subject: [PATCH 1/2] base-files: modify kernel listing in vkpurge

By default, kernel listing is not done by version, For example :

4.19.131_1
5.4.18_1
5.4.50_1
5.4.5_1
5.4.9_1
5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :
4.19.131_1
5.4.5_1
5.4.9_1
5.4.11_1
5.4.18_1
5.4.50_1
---
 srcpkgs/base-files/files/vkpurge | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/base-files/files/vkpurge b/srcpkgs/base-files/files/vkpurge
index 5519147b905..c7c6a78f6b2 100644
--- a/srcpkgs/base-files/files/vkpurge
+++ b/srcpkgs/base-files/files/vkpurge
@@ -33,7 +33,7 @@ list_kernels() {
 				$pattern) printf "%s\n" "$kver" ;;
 			esac
 		done
-	done | sort -u
+	done | sort -uV
 }
 
 run_hooks() {

From 2d94a245cf88702ea295b512a8e4d2f9cdde2c8d Mon Sep 17 00:00:00 2001
From: Ypnose <Ypnose@users.noreply.github.com>
Date: Sun, 16 Aug 2020 17:06:44 +0200
Subject: [PATCH 2/2] base-files: update revision

---
 srcpkgs/base-files/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template
index 6b503690606..b34c40c697a 100644
--- a/srcpkgs/base-files/template
+++ b/srcpkgs/base-files/template
@@ -1,7 +1,7 @@
 # Template file for 'base-files'
 pkgname=base-files
 version=0.141
-revision=2
+revision=3
 bootstrap=yes
 depends="xbps-triggers"
 short_desc="Void Linux base system files"

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
  2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
@ 2020-08-20 15:40 ` ahesford
  2020-08-21  5:48 ` Ypnose
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ahesford @ 2020-08-20 15:40 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-677742444

Comment:
Please rebase, `base-files` has already been revbumped.

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
  2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
  2020-08-20 15:40 ` ahesford
@ 2020-08-21  5:48 ` Ypnose
  2020-08-21 11:26 ` [PR PATCH] [Closed]: " sgn
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Ypnose @ 2020-08-21  5:48 UTC (permalink / raw)
  To: ml

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

New comment by Ypnose on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-678052709

Comment:
I did that pull request using web interface. You can directly rebase when you accept the pull request :
https://github.blog/2016-09-26-rebase-and-merge-pull-requests/

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

* Re: [PR PATCH] [Closed]: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (2 preceding siblings ...)
  2020-08-21  5:48 ` Ypnose
@ 2020-08-21 11:26 ` sgn
  2020-08-21 11:33 ` q66
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2020-08-21 11:26 UTC (permalink / raw)
  To: ml

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

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

base-files: modify kernel listing in vkpurge
https://github.com/void-linux/void-packages/pull/24310

Description:
By default, kernel listing is not done by version. For example :

    4.19.131_1
    5.4.18_1
    5.4.50_1
    5.4.5_1
    5.4.9_1
    5.4.11_1

Using 'version-sort' option, it shows older versions before recent versions :

    4.19.131_1
    5.4.5_1
    5.4.9_1
    5.4.11_1
    5.4.18_1
    5.4.50_1

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (3 preceding siblings ...)
  2020-08-21 11:26 ` [PR PATCH] [Closed]: " sgn
@ 2020-08-21 11:33 ` q66
  2020-08-21 12:06 ` sgn
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: q66 @ 2020-08-21 11:33 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-678245389

Comment:
version sort is not standard in POSIX, so this might break depending on which implementation of sort people are using

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (4 preceding siblings ...)
  2020-08-21 11:33 ` q66
@ 2020-08-21 12:06 ` sgn
  2020-08-21 13:14 ` q66
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2020-08-21 12:06 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-678256649

Comment:
It seems like I messed up again.

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (5 preceding siblings ...)
  2020-08-21 12:06 ` sgn
@ 2020-08-21 13:14 ` q66
  2020-08-21 19:19 ` Ypnose
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: q66 @ 2020-08-21 13:14 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-678284283

Comment:
it's probably fine, as the common implementations have it (gnu sort, busybox sort, freebsd sort), just pointing out that this is not POSIX

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (6 preceding siblings ...)
  2020-08-21 13:14 ` q66
@ 2020-08-21 19:19 ` Ypnose
  2020-08-24 16:50 ` Ypnose
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Ypnose @ 2020-08-21 19:19 UTC (permalink / raw)
  To: ml

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

New comment by Ypnose on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-678450927

Comment:
On Void Linux, `sort` is provided by `GNU coreutils`. I assume people will use this variant. The idea here is not to support every `sort` implementation. Even `OpenBSD` which is known to be restrictive, supports this option. I do not understand how your comment helps us here. If Void Linux needs to stick to POSIX which is totally fine, please provide me a link where it is specified. In that case, this PR can be ignored.

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (7 preceding siblings ...)
  2020-08-21 19:19 ` Ypnose
@ 2020-08-24 16:50 ` Ypnose
  2020-08-24 16:52 ` ahesford
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Ypnose @ 2020-08-24 16:50 UTC (permalink / raw)
  To: ml

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

New comment by Ypnose on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-679244005

Comment:
@sgn May I know why this pull request was closed and therefore refused ?

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (8 preceding siblings ...)
  2020-08-24 16:50 ` Ypnose
@ 2020-08-24 16:52 ` ahesford
  2020-08-24 23:59 ` sgn
  2020-08-30  6:20 ` Ypnose
  11 siblings, 0 replies; 13+ messages in thread
From: ahesford @ 2020-08-24 16:52 UTC (permalink / raw)
  To: ml

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

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-679244932

Comment:
The pull request was closed by merging your change (with the revbump).

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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (9 preceding siblings ...)
  2020-08-24 16:52 ` ahesford
@ 2020-08-24 23:59 ` sgn
  2020-08-30  6:20 ` Ypnose
  11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2020-08-24 23:59 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-679425029

Comment:
On 2020-08-24 09:50:59-0700, Ypnose <notifications@github.com> wrote:
> @sgn May I know why this pull request was closed and therefore refused ?

It's merged, but not with the button:
https://github.com/void-linux/void-packages/commit/7bffaa5d0ec074cae8c4948810e3212a6f29754d


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

* Re: base-files: modify kernel listing in vkpurge
  2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
                   ` (10 preceding siblings ...)
  2020-08-24 23:59 ` sgn
@ 2020-08-30  6:20 ` Ypnose
  11 siblings, 0 replies; 13+ messages in thread
From: Ypnose @ 2020-08-30  6:20 UTC (permalink / raw)
  To: ml

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

New comment by Ypnose on void-packages repository

https://github.com/void-linux/void-packages/pull/24310#issuecomment-683381833

Comment:
My apologies, I didn't notice.

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

end of thread, other threads:[~2020-08-30  6:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 15:02 [PR PATCH] base-files: modify kernel listing in vkpurge Ypnose
2020-08-16 15:06 ` [PR PATCH] [Updated] " Ypnose
2020-08-20 15:40 ` ahesford
2020-08-21  5:48 ` Ypnose
2020-08-21 11:26 ` [PR PATCH] [Closed]: " sgn
2020-08-21 11:33 ` q66
2020-08-21 12:06 ` sgn
2020-08-21 13:14 ` q66
2020-08-21 19:19 ` Ypnose
2020-08-24 16:50 ` Ypnose
2020-08-24 16:52 ` ahesford
2020-08-24 23:59 ` sgn
2020-08-30  6:20 ` Ypnose

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