Skip to contentSkip to conversation

package/less: install the lessecho command

PATCH Superseded [email protected] 2 participants 2 messages Aug 1, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/less: install the lessecho command

From: Nicolas Carrier <[email protected]>

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(+)
package/less/less.mk +1 -0
index 91ce08f4f0..ed9d8f0f90 100644
@@ -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))
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Nicolas,

Quoted 3 lines · On Tue, 1 Aug 2023 11:37:35 +0200 [email protected] wrote:

From: Nicolas Carrier <[email protected]>

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.

package/less/less.mk LESS_DEPENDENCIES = ncurses · line 17

Quoted 4 lines

define LESS_INSTALL_TARGET_CMDS

package/less/less.mk +1 -0
 	$(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

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot