All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
@ 2022-04-26 13:28 José Luis Salvador Rufo
  2022-04-26 17:16 ` Baruch Siach via buildroot
  2022-07-26 22:04 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 7+ messages in thread
From: José Luis Salvador Rufo @ 2022-04-26 13:28 UTC (permalink / raw)
  To: buildroot, Thomas De Schampheleire; +Cc: José Luis Salvador Rufo

Patch title: docs/manual/prerequisite.txt: add diffutils

The command `cmp` is used by `package/pkg-generic.mk` at commit
8623cc5deb5. This command is provided by `diffutils`.

Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
---
 docs/manual/prerequisite.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/manual/prerequisite.txt b/docs/manual/prerequisite.txt
index 40071491f8..763fe79041 100644
--- a/docs/manual/prerequisite.txt
+++ b/docs/manual/prerequisite.txt
@@ -23,6 +23,7 @@ between distributions).
 ** +make+ (version 3.81 or any later)
 ** +binutils+
 ** +build-essential+ (only for Debian based systems)
+** +diffutils+
 ** +gcc+ (version 4.8 or any later)
 ** `g++` (version 4.8 or any later)
 ** +bash+
-- 
2.36.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-04-26 13:28 [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils José Luis Salvador Rufo
@ 2022-04-26 17:16 ` Baruch Siach via buildroot
  2022-04-26 22:01   ` Thomas Petazzoni via buildroot
  2022-07-26 22:04 ` Thomas Petazzoni via buildroot
  1 sibling, 1 reply; 7+ messages in thread
From: Baruch Siach via buildroot @ 2022-04-26 17:16 UTC (permalink / raw)
  To: José Luis Salvador Rufo; +Cc: Thomas De Schampheleire, buildroot

Hi José,

On Tue, Apr 26 2022, José Luis Salvador Rufo wrote:
> Patch title: docs/manual/prerequisite.txt: add diffutils

No need for this line in the commit log body. The email subject line
appears as head line of the git commit once applied.

> The command `cmp` is used by `package/pkg-generic.mk` at commit
> 8623cc5deb5. This command is provided by `diffutils`.

Actually, we have host-diffutils, so we can build cmp if the host does
not have it installed. All we need is support added under
support/dependencies/ like a few other utilities.

We also don't list findutils as prerequisite, even though we rely
heavily on the 'find' utility.

baruch

> Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
> ---
>  docs/manual/prerequisite.txt | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/docs/manual/prerequisite.txt b/docs/manual/prerequisite.txt
> index 40071491f8..763fe79041 100644
> --- a/docs/manual/prerequisite.txt
> +++ b/docs/manual/prerequisite.txt
> @@ -23,6 +23,7 @@ between distributions).
>  ** +make+ (version 3.81 or any later)
>  ** +binutils+
>  ** +build-essential+ (only for Debian based systems)
> +** +diffutils+
>  ** +gcc+ (version 4.8 or any later)
>  ** `g++` (version 4.8 or any later)
>  ** +bash+


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-04-26 17:16 ` Baruch Siach via buildroot
@ 2022-04-26 22:01   ` Thomas Petazzoni via buildroot
  2022-04-27  4:34     ` Baruch Siach via buildroot
  2022-04-27  6:22     ` José Luis Salvador Rufo
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-04-26 22:01 UTC (permalink / raw)
  To: Baruch Siach via buildroot
  Cc: José Luis Salvador Rufo, Thomas De Schampheleire

Hello,

On Tue, 26 Apr 2022 20:16:12 +0300
Baruch Siach via buildroot <buildroot@buildroot.org> wrote:

> Hi José,
> 
> On Tue, Apr 26 2022, José Luis Salvador Rufo wrote:
> > Patch title: docs/manual/prerequisite.txt: add diffutils  
> 
> No need for this line in the commit log body. The email subject line
> appears as head line of the git commit once applied.

Yep.

> > The command `cmp` is used by `package/pkg-generic.mk` at commit
> > 8623cc5deb5. This command is provided by `diffutils`.  
> 
> Actually, we have host-diffutils, so we can build cmp if the host does
> not have it installed. All we need is support added under
> support/dependencies/ like a few other utilities.

Yes, but we're not going to build host-diffutils if cmp is missing.
It's not done in our current implementation, and I don't think we want
to do that. So it seems like diffutils is indeed a hard requirement.

> We also don't list findutils as prerequisite, even though we rely
> heavily on the 'find' utility.

So perhaps we should list findutils as well in our hard requirements?

José Luis: practically speaking, with which distribution have you been
able to get a system without diffutils/findutils installed by default?

Thanks,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-04-26 22:01   ` Thomas Petazzoni via buildroot
@ 2022-04-27  4:34     ` Baruch Siach via buildroot
  2022-04-27  6:22     ` José Luis Salvador Rufo
  1 sibling, 0 replies; 7+ messages in thread
From: Baruch Siach via buildroot @ 2022-04-27  4:34 UTC (permalink / raw)
  To: Thomas Petazzoni
  Cc: Ryan Barnett, José Luis Salvador Rufo,
	Thomas De Schampheleire, Baruch Siach via buildroot

Hi Thomas,

On Wed, Apr 27 2022, Thomas Petazzoni wrote:
> On Tue, 26 Apr 2022 20:16:12 +0300
> Baruch Siach via buildroot <buildroot@buildroot.org> wrote:
>> On Tue, Apr 26 2022, José Luis Salvador Rufo wrote:
>> > The command `cmp` is used by `package/pkg-generic.mk` at commit
>> > 8623cc5deb5. This command is provided by `diffutils`.  
>> 
>> Actually, we have host-diffutils, so we can build cmp if the host does
>> not have it installed. All we need is support added under
>> support/dependencies/ like a few other utilities.
>
> Yes, but we're not going to build host-diffutils if cmp is missing.
> It's not done in our current implementation, and I don't think we want
> to do that. So it seems like diffutils is indeed a hard requirement.

Should we remove host-diffutils? That means reverting commit
819637e0e9774, and part of 9521492bd0706 ("package/opkg-utils: add
missing dependencies for host build").

Ryan, have you encountered an issue with missing diffutils on your build
host when using opkg-utils?

baruch

>> We also don't list findutils as prerequisite, even though we rely
>> heavily on the 'find' utility.
>
> So perhaps we should list findutils as well in our hard requirements?
>
> José Luis: practically speaking, with which distribution have you been
> able to get a system without diffutils/findutils installed by default?
>
> Thanks,
>
> Thomas


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-04-26 22:01   ` Thomas Petazzoni via buildroot
  2022-04-27  4:34     ` Baruch Siach via buildroot
@ 2022-04-27  6:22     ` José Luis Salvador Rufo
  1 sibling, 0 replies; 7+ messages in thread
From: José Luis Salvador Rufo @ 2022-04-27  6:22 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Thomas De Schampheleire, Baruch Siach via buildroot


[-- Attachment #1.1: Type: text/plain, Size: 3411 bytes --]

Hello Thomas,

El mié, 27 abr 2022 a las 0:02, Thomas Petazzoni (<
thomas.petazzoni@bootlin.com>) escribió:

> Hello,
>
> On Tue, 26 Apr 2022 20:16:12 +0300
> Baruch Siach via buildroot <buildroot@buildroot.org> wrote:
>
> > Hi José,
> >
> > On Tue, Apr 26 2022, José Luis Salvador Rufo wrote:
> > > Patch title: docs/manual/prerequisite.txt: add diffutils
> >
> > No need for this line in the commit log body. The email subject line
> > appears as head line of the git commit once applied.
>
> Yep.
>
> > > The command `cmp` is used by `package/pkg-generic.mk` at commit
> > > 8623cc5deb5. This command is provided by `diffutils`.
> >
> > Actually, we have host-diffutils, so we can build cmp if the host does
> > not have it installed. All we need is support added under
> > support/dependencies/ like a few other utilities.
>
> Yes, but we're not going to build host-diffutils if cmp is missing.
> It's not done in our current implementation, and I don't think we want
> to do that. So it seems like diffutils is indeed a hard requirement.
>
> > We also don't list findutils as prerequisite, even though we rely
> > heavily on the 'find' utility.
>
> So perhaps we should list findutils as well in our hard requirements?
>

Seems fair, IMHO.


>
> José Luis: practically speaking, with which distribution have you been
> able to get a system without diffutils/findutils installed by default?


Docker official Archlinux image. On other hand `findutils` is installed by
default in this image.

```shell
❯ docker pull archlinux:latest
latest: Pulling from library/archlinux
b65db44913f6: Pull complete
beb98d5a80d3: Pull complete
Digest:
sha256:a9a59155d8cfd44d01432a1ef011dc015ff96e970adf787b632229fd637ea98c
Status: Downloaded newer image for archlinux:latest
docker.io/library/archlinux:latest

❯ docker run -it --rm archlinux:latest
[root@354a655ce3f9 /]# pacman -Qi diffutils
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to
download)
error: package 'diffutils' was not found
[root@354a655ce3f9 /]# pacman -Qi findutils
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to
download)
Name            : findutils
Version         : 4.9.0-1
Description     : GNU utilities to locate files
Architecture    : x86_64
URL             : https://www.gnu.org/software/findutils/
Licenses        : GPL3
Groups          : base-devel
Provides        : None
Depends On      : glibc  sh
Optional Deps   : None
Required By     : base  ca-certificates-utils
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1416.31 KiB
Packager        : Tobias Powalowski <tpowa@archlinux.org>
Build Date      : Wed 02 Feb 2022 05:55:26 AM UTC
Install Date    : Sun 24 Apr 2022 12:04:13 AM UTC
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
```

>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
>

[-- Attachment #1.2: Type: text/html, Size: 4844 bytes --]

[-- Attachment #2: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-04-26 13:28 [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils José Luis Salvador Rufo
  2022-04-26 17:16 ` Baruch Siach via buildroot
@ 2022-07-26 22:04 ` Thomas Petazzoni via buildroot
  2022-08-29 11:15   ` Peter Korsgaard
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-26 22:04 UTC (permalink / raw)
  To: José Luis Salvador Rufo; +Cc: Thomas De Schampheleire, buildroot

On Tue, 26 Apr 2022 15:28:34 +0200
José Luis Salvador Rufo <salvador.joseluis@gmail.com> wrote:

> Patch title: docs/manual/prerequisite.txt: add diffutils
> 
> The command `cmp` is used by `package/pkg-generic.mk` at commit
> 8623cc5deb5. This command is provided by `diffutils`.
> 
> Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
> ---
>  docs/manual/prerequisite.txt | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

In addition to this patch we also:

 1. Added a check for cmp in support/dependencies/dependencies.sh

 2. Dropped the use of host-diffutils from opkg-utils

 3. Dropped host-diffutils itself

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils
  2022-07-26 22:04 ` Thomas Petazzoni via buildroot
@ 2022-08-29 11:15   ` Peter Korsgaard
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2022-08-29 11:15 UTC (permalink / raw)
  To: Thomas Petazzoni via buildroot
  Cc: José Luis Salvador Rufo, Thomas De Schampheleire, Thomas Petazzoni

>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:

 > On Tue, 26 Apr 2022 15:28:34 +0200
 > José Luis Salvador Rufo <salvador.joseluis@gmail.com> wrote:

 >> Patch title: docs/manual/prerequisite.txt: add diffutils
 >> 
 >> The command `cmp` is used by `package/pkg-generic.mk` at commit
 >> 8623cc5deb5. This command is provided by `diffutils`.
 >> 
 >> Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
 >> ---
 >> docs/manual/prerequisite.txt | 1 +
 >> 1 file changed, 1 insertion(+)

 > Applied to master, thanks.

 > In addition to this patch we also:

 >  1. Added a check for cmp in support/dependencies/dependencies.sh

 >  2. Dropped the use of host-diffutils from opkg-utils

 >  3. Dropped host-diffutils itself

Committed all 4 to 2022.05.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-29 11:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 13:28 [Buildroot] [PATCH 1/1] docs/manual/prerequisite.txt: add diffutils José Luis Salvador Rufo
2022-04-26 17:16 ` Baruch Siach via buildroot
2022-04-26 22:01   ` Thomas Petazzoni via buildroot
2022-04-27  4:34     ` Baruch Siach via buildroot
2022-04-27  6:22     ` José Luis Salvador Rufo
2022-07-26 22:04 ` Thomas Petazzoni via buildroot
2022-08-29 11:15   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.