Date: Wed, 25 May 2022 23:14:19 +0200 From: Christoph Moench-Tegeder <cmt@burggraben.net> To: Stefan Esser <se@freebsd.org> Cc: FreeBSD ports <freebsd-ports@freebsd.org> Subject: Re: HOWTO: specify a run dependency on a port without a single executable? Message-ID: <Yo6cK695gVrmBNt8@elch.exwg.net> In-Reply-To: <d365c841-9233-6319-3784-d5f8bb7defce@FreeBSD.org> References: <d365c841-9233-6319-3784-d5f8bb7defce@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
## Stefan Esser (se@FreeBSD.org): > LIP_DEPENDS= libncurses.so:devel/libncurses There's a Uses macro for ncurses, and I believe you're trying to do USES+=ncurses:port. Else the dependency would look like LIB_DEPENDS+=libncurses.so.6:devel/libncurses and you'd have to track that version (.6) everytime it changes in ncurses, which would be a PITA, so just take the USES. Also, the available USES macros are documented in the Porter's Handbook: https://docs.freebsd.org/en/books/porters-handbook/book/#uses > > 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= share/terminfo/a/ansi:misc/terminfo-db As per the documentation https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-run_depends RUN_DEPENDS depends on a "executable or file", and "[i]f path starts with a slash (/), it is treated as a file" and the example shows that you can (and need to, in your case) prefix the path with ${LOCALBASE} to get an actual full path. You could also look at existing ports: e.g. editors/libreoffice (not the simplest port, but the first one which came to mind) depends on some fonts. Regards, Christoph -- Spare Space
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yo6cK695gVrmBNt8>