* [Buildroot] [PATCH] package/less: install the lessecho command
@ 2023-08-01 9:37 carrier.nicolas0
2023-08-01 20:20 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: carrier.nicolas0 @ 2023-08-01 9:37 UTC (permalink / raw)
To: buildroot; +Cc: Nicolas Carrier
From: Nicolas Carrier <nicolas.carrier@nav-timing.safrangroup.com>
it is required by, for example the s command, allowing to write to a file
---
package/less/less.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/less/less.mk b/package/less/less.mk
index 91ce08f4f0..ed9d8f0f90 100644
--- a/package/less/less.mk
+++ b/package/less/less.mk
@@ -13,6 +13,7 @@ LESS_DEPENDENCIES = ncurses
define LESS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/less $(TARGET_DIR)/usr/bin/less
+ $(INSTALL) -m 0755 $(@D)/lessecho $(TARGET_DIR)/usr/bin/lessecho
endef
$(eval $(autotools-package))
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/less: install the lessecho command
2023-08-01 9:37 [Buildroot] [PATCH] package/less: install the lessecho command carrier.nicolas0
@ 2023-08-01 20:20 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-01 20:20 UTC (permalink / raw)
To: carrier.nicolas0; +Cc: Nicolas Carrier, buildroot
Hello Nicolas,
On Tue, 1 Aug 2023 11:37:35 +0200
carrier.nicolas0@gmail.com wrote:
> From: Nicolas Carrier <nicolas.carrier@nav-timing.safrangroup.com>
>
> it is required by, for example the s command, allowing to write to a file
I think you should clarify that you're talking about the "s command"
inside less. Because I was thinking you were talking about a program
called "s".
I cannot apply your patch: we need your Signed-off-by line.
> define LESS_INSTALL_TARGET_CMDS
> $(INSTALL) -m 0755 $(@D)/less $(TARGET_DIR)/usr/bin/less
> + $(INSTALL) -m 0755 $(@D)/lessecho $(TARGET_DIR)/usr/bin/lessecho
> endef
I think the best solution is in fact to drop LESS_INSTALL_TARGET_CMDS
entirely, so that "make install" is used instead. It installs the
following:
└── usr
├── bin
│ ├── less
│ ├── lessecho
│ └── lesskey
└── share
└── man
└── man1
├── less.1
├── lessecho.1
└── lesskey.1
usr/share/man is going to be removed automatically by Buildroot at the
end of the build. So that leave us with usr/bin with less, lessecho and
lesskey. So I believe it makes more sense to let the default "make
install" do its job.
I would have fixed that myself when applying, but I need your
Signed-off-by in the patch to be able to proceed.
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] 2+ messages in thread
end of thread, other threads:[~2023-08-01 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01 9:37 [Buildroot] [PATCH] package/less: install the lessecho command carrier.nicolas0
2023-08-01 20:20 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox