Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Marek Vasut via lists.openembedded.org
On 1/24/25 9:06 PM, Mark Hatle wrote: On 1/24/25 1:37 PM, Alexander Kanavin via lists.openembedded.org wrote: On Fri, 24 Jan 2025 at 18:58, Mark Hatle wrote: I'm more inclined to say that base-files depending on /bin/sh is the error. AFAIK nothing in base-files should require /bin/sh (or are

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Marek Vasut via lists.openembedded.org
On 1/24/25 6:55 PM, Mark Hatle wrote: On 1/24/25 10:39 AM, Alexander Kanavin via lists.openembedded.org wrote: I wonder if we can just drop /etc/shells altogether from base-files? /etc/shells is used by pam as one of it's multiple validation steps.  If the shell is not listed there then rem

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Mark Hatle
On 1/24/25 1:37 PM, Alexander Kanavin via lists.openembedded.org wrote: On Fri, 24 Jan 2025 at 18:58, Mark Hatle wrote: I'm more inclined to say that base-files depending on /bin/sh is the error. AFAIK nothing in base-files should require /bin/sh (or are there post-install scripts?). There i

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Alexander Kanavin via lists.openembedded.org
On Fri, 24 Jan 2025 at 18:58, Mark Hatle wrote: > I'm more inclined to say that base-files depending on /bin/sh is the error. > AFAIK nothing in base-files should require /bin/sh (or are there post-install > scripts?). There is a pre-install script, but it's for a long obsolete issue: https://gi

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Mark Hatle
On 1/24/25 10:39 AM, Alexander Kanavin via lists.openembedded.org wrote: I wonder if we can just drop /etc/shells altogether from base-files? /etc/shells is used by pam as one of it's multiple validation steps. If the shell is not listed there then remote login can be denied. So the existe

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Alexander Kanavin via lists.openembedded.org
I wonder if we can just drop /etc/shells altogether from base-files? Alex On Fri 24. Jan 2025 at 16.26, Marek Vasut via lists.openembedded.org wrote: > On 1/23/25 10:18 PM, Khem Raj wrote: > > On Thu, Jan 23, 2025 at 12:12 PM Marek Vasut via > > lists.openembedded.org wrote: > >> > >> Remove /

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Marek Vasut via lists.openembedded.org
On 1/24/25 1:43 PM, Alexander Kanavin wrote: On Thu, 23 Jan 2025 at 21:12, Marek Vasut via lists.openembedded.org wrote: # Limit the RPROVIDES here to class target so that if usrmerge is enabled for nativesdk, it does not # include host system paths in /bin/ -RPROVIDES:${PN}:append:class-

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Marek Vasut via lists.openembedded.org
On 1/23/25 10:18 PM, Khem Raj wrote: On Thu, Jan 23, 2025 at 12:12 PM Marek Vasut via lists.openembedded.org wrote: Remove /bin/sh from bash RPROVIDES as this has a side-effect which confuses rpm package manager when also busybox provides /bin/sh and base-files depend on /bin/sh . The problem

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-24 Thread Alexander Kanavin via lists.openembedded.org
On Thu, 23 Jan 2025 at 21:12, Marek Vasut via lists.openembedded.org wrote: > # Limit the RPROVIDES here to class target so that if usrmerge is enabled > for nativesdk, it does not > # include host system paths in /bin/ > -RPROVIDES:${PN}:append:class-target = " > ${@bb.utils.contains('DISTRO

Re: [OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-23 Thread Khem Raj via lists.openembedded.org
On Thu, Jan 23, 2025 at 12:12 PM Marek Vasut via lists.openembedded.org wrote: > > Remove /bin/sh from bash RPROVIDES as this has a side-effect which > confuses rpm package manager when also busybox provides /bin/sh and > base-files depend on /bin/sh . The problem is broken down below. > > First,

[OE-core] [PATCH] [RFC] bash: Drop /bin/sh from RPROVIDES

2025-01-23 Thread Marek Vasut via lists.openembedded.org
Remove /bin/sh from bash RPROVIDES as this has a side-effect which confuses rpm package manager when also busybox provides /bin/sh and base-files depend on /bin/sh . The problem is broken down below. First, bash depends on base-files and bash pkg_postinst must run after base-files was installed, b