pkg-plist and stage directory for new port

Lorenzo Salvadore phascolarctos at protonmail.ch
Fri Sep 14 15:10:06 UTC 2018


> Hi,
>
> In my quest for creating a new port (pgadmin4) I'm having a problem with
> creating a working pkg-plist. Seems to me that at least the created binary
> should be in the pkg-plist file, in my case "bin/pgAdmin4". But when I do
> that, make check-plist results in an error:
>
> ===> Checking for items in pkg-plist which are not in STAGEDIR
> Error: Missing: bin/pgAdmin4
> ===> Error: Plist issues found.
>
> *** Error code 1
>
> Which is correct because the /stage directory is empty. I could remove the
> bin/pgAdmin4 line from the pkg-plist file but that doesn't seem right to
> me because then the created binary isn't installed at all I guess. Correct
> thing imo would be that the created binary is copied to the
> /stage/usr/local/bin directory.
>
> So biggest question is why is the /stage directory still empty?

Show us your makefile please.

When I created my first port, I remember I had some difficulty to
understand staging: imho it needs to be explained better in the documentation.
Are you aware of the variable ${STAGEDIR}? You probably need to add
to your makefile some lines similar to the followings:

do-install:
   ${INSTALL_PROGRAM} ${WRKSRC}/??/pgAdmin4 ${STAGEDIR}${PREFIX}/bin

Lorenzo Salvadore.


More information about the freebsd-ports mailing list