From owner-freebsd-ports@freebsd.org Fri Sep 14 15:10:06 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E2C2108B6B4 for ; Fri, 14 Sep 2018 15:10:06 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0B7485961 for ; Fri, 14 Sep 2018 15:10:05 +0000 (UTC) (envelope-from phascolarctos@protonmail.ch) Date: Fri, 14 Sep 2018 15:09:52 +0000 To: FreeBSD Ports From: Lorenzo Salvadore Reply-To: Lorenzo Salvadore Subject: Re: pkg-plist and stage directory for new port Message-ID: <_rTKdZNUI1ulLacZQn9a0ZgOA6w8IlUrUkgb96rER7AyW5LPetvQZQQWYDjRWNFRxZrT1qkzM-v76wX-7q4yOJ4cAu6G3EcLkSYqHCBM9kQ=@protonmail.ch> In-Reply-To: References: Feedback-ID: X6az_D2smWSR8MT5MHqXnWF0upxehDyHia7Id1cbayHNBUkRu3CIeusDsZHiivIIjmaKB1_OofpALrRUYjNz3w==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 15:10:06 -0000 > 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 binar= y > should be in the pkg-plist file, in my case "bin/pgAdmin4". But when I do > that, make check-plist results in an error: > > =3D=3D=3D> Checking for items in pkg-plist which are not in STAGEDIR > Error: Missing: bin/pgAdmin4 > =3D=3D=3D> Error: Plist issues found. > > *** Error code 1 > > Which is correct because the /stage directory is empty. I could remove th= e > 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. Correc= t > 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 documentati= on. 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.