genode/repos/ports/ports/less.port
Christian Helmuth eccc539651 noux-pkg/less: use LIBS when building tools
lesskey and lessecho missed the declaration of ${LIBS} on the compiler
command line, which ended up in unusable programs.

  > file noux-pkg/less/lesskey.broken
  noux-pkg/less/lesskey.broken: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter *empty*, not stripped
  > file noux-pkg/less/lesskey
  noux-pkg/less/lesskey: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter ld.lib.so, not stripped

The issue was identified because -O0 builds broke with

  ld: lesskey: The first section in the PT_DYNAMIC segment is not the .dynamic section

Unfortunately, this simple fix renders both tools also dependent to libm
and ncurses which they don't use.
2017-01-31 12:01:14 +01:00

12 lines
333 B
Plaintext

LICENSE := GPLv3
VERSION := 481
DOWNLOADS := less.archive
URL(less) := http://ftp.gnu.org/gnu/less/less-$(VERSION).tar.gz
SHA(less) := 58e7e62a760a9ca3636349de8e3357f7102aea1d
SIG(less) := ${URL(less)}.sig
KEY(less) := GNU
DIR(less) := src/noux-pkg/less
PATCHES := src/noux-pkg/less/tty_fd.patch src/noux-pkg/less/libs.patch