[PATCH v2 0/2] Improve kernel sorting in grub-mkconfig

2022-01-20 Thread Robbie Harwood
This version of the patchset formally adds the distro sort support from the previous thread, as well as attempting to address Glenn's review suggestions around ordering and usage criteria. Be well, --Robbie Robbie Harwood (2): Correct sorting of kernel names containing '_' mkconfig: use distr

[PATCH v2 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Robbie Harwood
For Debian-likes and Fedora-likes, use the distribution's sorting tools to determine the latest package before falling back to sort(1). While Fedora's rpmdev-vercmp(1) is likely unavailable, Debian's is built into dpkg itself, and hence likely present. Refactor to remove unused code and make it e

Re: [PATCH v2] grub-mount: Support libfuse 3

2022-01-20 Thread Daniel Kiper
On Mon, Jan 17, 2022 at 03:34:37PM +0100, Fabian Vogt wrote: > libfuse 3.0.0 got released in 2016, with some API changes compared to 2.x. > This commit introduces support for 3.x while keeping it compatible with 2.6 > as a fallback still. > > To detect fuse3, switch configure over to use pkg-config

Re: [PATCH 0/2] Make build more robust

2022-01-20 Thread Daniel Kiper
On Wed, Jan 12, 2022 at 09:40:19PM -0600, Glenn Washburn wrote: > I've found these two patches to be necessary under certain build conditions > that I've not been able to narrow down to a specific cause. I suspect it is > related to the values of some build environment variables (like *CFLAGS). > E

[PATCH v3 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Robbie Harwood
For Debian-likes and Fedora-likes, use the distribution's sorting tools to determine the latest package before falling back to sort(1). While Fedora's rpmdev-vercmp(1) is likely unavailable, Debian's is built into dpkg itself, and hence likely present. Refactor to remove unused code and make it e

[PATCH v2 1/2] Correct sorting of kernel names containing '_'

2022-01-20 Thread Robbie Harwood
sort(1) from GNU coreutils does not treat underscore as part of a version number for `sort -V. This causes misorderings on x86_64, where e.g. kernel-core-3.17.6-300.11.fc21.x86_64 will incorrectly sort *before* kernel-core-3.17.6-300.fc21.x86_64. To cope with this behavior, replace underscores wi

Re: [PATCH v2 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Glenn Washburn
On Thu, 20 Jan 2022 11:45:23 -0500 Robbie Harwood wrote: > For Debian-likes and Fedora-likes, use the distribution's sorting tools > to determine the latest package before falling back to sort(1). While > Fedora's rpmdev-vercmp(1) is likely unavailable, Debian's is built into > dpkg itself, and

Re: [PATCH v3] http: Allow use of non-standard TCP/IP ports

2022-01-20 Thread Daniel Kiper
On Sun, Jan 16, 2022 at 03:46:08PM -0700, Stephen Balousek wrote: > Allow the use of HTTP servers listening on ports other 80. This is done > with an extension to the http notation: > > (http[,server[,port]]) > > - or - > > (http[,server[:port]]) > > Signed-off-by: Stephen Balousek > --- > >

[PATCH v3 1/2] Correct sorting of kernel names containing '_'

2022-01-20 Thread Robbie Harwood
sort(1) from GNU coreutils does not treat underscore as part of a version number for `sort -V. This causes misorderings on x86_64, where e.g. kernel-core-3.17.6-300.11.fc21.x86_64 will incorrectly sort *before* kernel-core-3.17.6-300.fc21.x86_64. To cope with this behavior, replace underscores wi

[PATCH v3 0/2] Improve kernel sorting in grub-mkconfig

2022-01-20 Thread Robbie Harwood
This version corrects a miscommunication about Glenn's review suggestions. (I have slightly simplified the suggested code, but it's functionally the same.) Be well, --Robbie Robbie Harwood (2): Correct sorting of kernel names containing '_' mkconfig: use distro sorts when available util/gr

Re: [PATCH v2 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Didier Spaier
Hi Robbie and All, Do i understand correctly that this will not change anything for distributions (like Slint, based on Slackware, that I maintain) that are neither Debian-likes nor Fedora-likes? Cheers, Didier Le 20/01/2022 à 17:45, Robbie Harwood a écrit : > For Debian-likes and Fedora-likes,

Re: [PATCH v3 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Glenn Washburn
On Thu, 20 Jan 2022 14:33:20 -0500 Robbie Harwood wrote: > For Debian-likes and Fedora-likes, use the distribution's sorting tools > to determine the latest package before falling back to sort(1). While > Fedora's rpmdev-vercmp(1) is likely unavailable, Debian's is built into > dpkg itself, and

Re: [PATCH v2 2/2] mkconfig: use distro sorts when available

2022-01-20 Thread Glenn Washburn
On Thu, 20 Jan 2022 23:07:10 +0100 Didier Spaier wrote: > Hi Robbie and All, > > Do i understand correctly that this will not change anything for distributions > (like Slint, based on Slackware, that I maintain) that are neither > Debian-likes > nor Fedora-likes? It shouldn't change anything i