Re: [gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Sheng Yu
On Monday, September 13th, 2021 at 18:04, Rich Freeman wrote: > > On Mon, Sep 13, 2021 at 5:02 PM Michał Górny wrote: > > > > On Mon, 2021-09-13 at 12:08 +0200, Ulrich Mueller wrote: > > > > > > Also, IIRC one of the goals of the format was to allow partial > > > download > > > of metadata. That

Re: [gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Sheng Yu
‐‐‐ Original Message ‐‐‐ On Monday, September 13th, 2021 at 17:02, Michał Górny wrote: > On Mon, 2021-09-13 at 12:08 +0200, Ulrich Mueller wrote: > > > > > > > On Mon, 13 Sep 2021, Sheng Yu wrote: > > > > > -The archive contains a number of files, stored in a single > > > directory > >

[gentoo-dev] Re: [PATCH 1/2] linux-info.eclass: rework get_running_version

2021-09-13 Thread Mike
On 9/13/21 12:27 PM, Mike Gilbert wrote: > This function may fail if the version cannot be parsed from a Makefile > found by following the /lib/modules/${KV_FULL}/{source,build} symlinks. > Instead of failing, we should just split KV_FULL as a fallback. > > Also, simplify the existance checks

Re: [gentoo-dev] [PATCH 2/2] linux-info.eclass: getfilevar: pass dot-config=0 to make

2021-09-13 Thread Mike
On 9/13/21 12:27 PM, Mike Gilbert wrote: > This disables the kernel config check for versions prior to 5.4. > > Bug: https://bugs.gentoo.org/811726 > Signed-off-by: Mike Gilbert > --- > eclass/linux-info.eclass | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Rich Freeman
On Mon, Sep 13, 2021 at 5:02 PM Michał Górny wrote: > > On Mon, 2021-09-13 at 12:08 +0200, Ulrich Mueller wrote: > > > > Also, IIRC one of the goals of the format was to allow partial > > download > > of metadata. That will only work if the Manifest file will be the > > first > > file in the

Re: [gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Michał Górny
On Mon, 2021-09-13 at 12:08 +0200, Ulrich Mueller wrote: > > > > > > On Mon, 13 Sep 2021, Sheng Yu wrote: > > > -The archive contains a number of files, stored in a single > > directory > > -whose name should match the basename of the package file. However, > > -the implementation must be able

[gentoo-dev] [PATCH 2/2] linux-info.eclass: getfilevar: pass dot-config=0 to make

2021-09-13 Thread Mike Gilbert
This disables the kernel config check for versions prior to 5.4. Bug: https://bugs.gentoo.org/811726 Signed-off-by: Mike Gilbert --- eclass/linux-info.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index

[gentoo-dev] [PATCH 1/2] linux-info.eclass: rework get_running_version

2021-09-13 Thread Mike Gilbert
This function may fail if the version cannot be parsed from a Makefile found by following the /lib/modules/${KV_FULL}/{source,build} symlinks. Instead of failing, we should just split KV_FULL as a fallback. Also, simplify the existance checks for the kernel Makefile; if we can't find the kernel

[gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Sheng Yu
Hi, We are updating the draft of GLEP78 "Gentoo Binary Package Container Format" to address some security issues, and included some new designs for this purpose. The new draft and the difference version from the old one are attached. Please feel free to give any comments and suggestions.

Re: [gentoo-dev] [GLEP78] Updating specification

2021-09-13 Thread Ulrich Mueller
> On Mon, 13 Sep 2021, Sheng Yu wrote: > -The archive contains a number of files, stored in a single directory > -whose name should match the basename of the package file. However, > -the implementation must be able to process an archive where > -the directory name is mismatched. There

Re: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: add and use _python_check_EPYTHON

2021-09-13 Thread Michał Górny
On Mon, 2021-09-13 at 09:47 +0200, Florian Schmaus wrote: > Signed-off-by: Florian Schmaus > --- > eclass/python-utils-r1.eclass | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > Both patches LGTM. -- Best regards, Michał Górny

[gentoo-dev] [PATCH 2/2] distutils-r1.eclass: use _python_check_EPYTHON

2021-09-13 Thread Florian Schmaus
Replace the existing EPYTHON check with _python_check_EPYTHON and use _python_check_EPYTHON in a few additional places. Signed-off-by: Florian Schmaus --- eclass/distutils-r1.eclass | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/distutils-r1.eclass

[gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: add and use _python_check_EPYTHON

2021-09-13 Thread Florian Schmaus
Signed-off-by: Florian Schmaus --- eclass/python-utils-r1.eclass | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 4fedf939c779..c729651699dd 100644 --- a/eclass/python-utils-r1.eclass +++