Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2022 22:47:35 +0200
From:      Stefan Esser <se@FreeBSD.org>
To:        FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   HOWTO: specify a run dependency on a port without a single executable?
Message-ID:  <d365c841-9233-6319-3784-d5f8bb7defce@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------k0Z8psjJKv0dAlFnr9LNJ26i
Content-Type: multipart/mixed; boundary="------------OVQHa90f5orNwDJtkG9GZJHo";
 protected-headers="v1"
From: Stefan Esser <se@FreeBSD.org>
To: FreeBSD ports <freebsd-ports@freebsd.org>
Message-ID: <d365c841-9233-6319-3784-d5f8bb7defce@FreeBSD.org>
Subject: HOWTO: specify a run dependency on a port without a single
 executable?

--------------OVQHa90f5orNwDJtkG9GZJHo
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I'm trying to update the devel/pmdk port and found 2 issues
due to dependency checks that are not alignment with reality:

1) The port wants the ports version of ncurses. But the following
   definition does not work:

	LIP_DEPENDS=3D libncurses.so:devel/libncurses

   The reason is that lib/libncurses.so is a loader script with
   the following contents:

	INPUT(libncurses.so.6 AS_NEEDED(-ltinfo))

   This file is not a valid shared library as understood by the
   LIB_DEPENDS logic in bsd.port.mk. When building the port on
   the base system the ncurses port is rebuild every time and
   then the build fails since it is already installed.

2) The port wants the terminfo-db lpackage as a run dependency.
   I can specify it as such, but this does not work in poudriere:

	RUN_DEPENDS=3D share/terminfo/a/ansi:misc/terminfo-db

   There is not a single executable file in this package, and
   the build fails with:

=3D=3D=3D>   pmdk-1.12.0 depends on executable: share/terminfo/a/ansi - n=
ot found
=3D=3D=3D>   Installing existing package /packages/All/terminfo-db-202108=
16.pkg
[P_13_1_amd64-default] Installing terminfo-db-20210816...
[P_13_1_amd64-default] Extracting terminfo-db-20210816: .......... done
=3D=3D=3D>   pmdk-1.12.0 depends on executable: share/terminfo/a/ansi - n=
ot found

   I need to specify the run dependency, but RUN_DEPENDS works only
   if the file tested in the dependency is executable, and none exists
   in terminfo-db.

These two issues prevent building on the base system due to 1) and
building in poudriere due to 2).

Any ideas how to work around these two issues?

Regards, STefan

--------------OVQHa90f5orNwDJtkG9GZJHo--

--------------k0Z8psjJKv0dAlFnr9LNJ26i
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmKOlecFAwAAAAAACgkQR+u171r99URF
5wf/bFYZz5GsxL609l4SbbOTT0j1nxMuGCe3Gvk5JWZgzTILxVOANMEriMHZ1ojJe3Q//G8DHN4T
bVpEv45fkXDhGFlxlxjtLVpIUaK4KI0jVfO9sB7OuaNrnL0GkpR54yBNJlLPIYF0FWqReDqNqtz8
9FmFHtcwJof42qoDPwxEDqcoV0PFPPbkyhAF8iLDgAE+Pce1TDe3fgGO6R1D9P1Tb8v3shKfXPQX
iJJ22kq3eH0zqPZncZCFqCkJQltzFqraHo7EShG9/qYEDytbykIaOxxm1UzHc8h9EFBjVWzZYf1A
CmFik0f5GwPkqTCf9OoRKhCifEMjfrFdpLGV5G3LcQ==
=F/C6
-----END PGP SIGNATURE-----

--------------k0Z8psjJKv0dAlFnr9LNJ26i--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d365c841-9233-6319-3784-d5f8bb7defce>