From owner-freebsd-ports@freebsd.org Thu Sep 22 21:49:31 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E83BDBE5BFC for ; Thu, 22 Sep 2016 21:49:31 +0000 (UTC) (envelope-from jev@ecadlabs.com) Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4D80BA8 for ; Thu, 22 Sep 2016 21:49:31 +0000 (UTC) (envelope-from jev@ecadlabs.com) Received: by mail-oi0-x22c.google.com with SMTP id w11so114001515oia.2 for ; Thu, 22 Sep 2016 14:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ecadlabs.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=AuqgLisSL/0eRwq5qKMFeJ38nPCloJYwqTYReWscSk0=; b=mgW5IEVQXYHLZD7A/+AEKAvWIJvc1VPYIPGOAbVK9WNJa98rpjFqkj2OSSOZWkmkfC HLgGcq0TgltdgW50T9bt0OL1m8C0dGEcDQPISUxxxaonT+2SyiI/wNWf59YF1QgU3bcy 46e5gSyuOlXN2PTRIzRhgB7/50lFXmyu69YBA1LPXPMSFXOD3cOM8uT4OwmC8rLvHZp1 XgbFI59jAzp9eD9hvUu6kU89ZVKsG2xKmDOEaBhAojiCGqXhlyLkWvU6oG689gtlmiON ZZfjfqu3nib8iFZLdaiuNIG3Qy+KVfdGQs9DazILELTdVgNN8JP9aX+9hzA70v/xLnP2 l9tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AuqgLisSL/0eRwq5qKMFeJ38nPCloJYwqTYReWscSk0=; b=Gw2EbBBemvaH1LIXkq9p0uJzn1e+wH72qlNr8EXO30qFQMJIyDc/8hthVF5/HfdqNr aBpxMzHSBK0DuIQT8/GiOt6fpudPDnGUSzHrdEEQno7hI1R7Cy5+QNxbYxbJQAZrkNs3 s5YGbXVr5nRYbgBAKMldSKSOGC6LpcPjFhh2pPssh1HiDwnbQZAOtS9z8L2ysM4uSOeX tWj4ZXgWWqjJQt5Otktk7BX89KR1qBcO0zW637wBIk1Vv7k84QaQfKq84EBLJo2/Zjmi 0pbhaY8tXui2Htad/4hBhuLBP7AeHTg3qft9P/YyD3qHbglBz2lsON3euj2LJB/UI8+C wUOA== X-Gm-Message-State: AE9vXwNZ2GynYPGMkHhezevUHJ0ebba6OBoCkVOj+SSHzrbnppkJeRZQwcsV7mBIyfwS4VAtptAI22TGjUMoevt7 X-Received: by 10.202.87.76 with SMTP id l73mr5496086oib.84.1474580970735; Thu, 22 Sep 2016 14:49:30 -0700 (PDT) MIME-Version: 1.0 From: Jev Bjorsell Date: Thu, 22 Sep 2016 21:49:20 +0000 Message-ID: Subject: Differences when using `make` V `port test` To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2016 21:49:32 -0000 Hi All, Noob porter here. :) I created a port for prometheus, and opened a ticket here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212468 On the advice of Kubilay, I ran `port test`, and this leads me to my question; When running `port test` the build binaries are not found, (logs below), but when doing a simple `make install` everything works fine, and I can see the binaries in the work/ directory also. I suspect that the pormetheus build process is doing something a little magic, but I'm lookin to understand why the build behaves differently under `port test` compared to a straight `make`. Logs from both `port test` and `make` follow. Thanks, Jev output from `port test` jev@futz =EE=82=B0 /usr/ports/net-mgmt/prometheus =EE=82=B0 port test =3D=3D=3D> Using ports tree /usr/ports =3D=3D=3D> Validating port with portlint WARN: Makefile: [43]: whitespace before end of line. 0 fatal errors and 1 warning found. =3D=3D=3D> flags: PREFIX=3D/tmp/prometheus-1.1.3 NO_DEPENDS=3Dyes PKG_DBDIR=3D/tmp/pkg_db.bZyp4Q3g PORTSDIR=3D/usr/ports -- =3D=3D=3D> Cleaning workspace before port test =3D=3D=3D> Cleaning for prometheus-1.1.3 =3D=3D=3D> License APACHE20 accepted by the user =3D=3D=3D> Fetching all distfiles required by prometheus-1.1.3 for building =3D=3D=3D> Extracting for prometheus-1.1.3 =3D> SHA256 Checksum OK for prometheus-prometheus-v1.1.3_GH0.tar.gz. =3D=3D=3D> Patching for prometheus-1.1.3 =3D=3D=3D> Applying FreeBSD patches for prometheus-1.1.3 =3D=3D=3D> Configuring for prometheus-1.1.3 =3D=3D=3D> Building for prometheus-1.1.3 (cd /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus ; /usr/bin/env GOPATH=3D"/usr/ports.svn/net-mgmt/prometheus/work:/usr/local/share/go" CGO_CFLAGS=3D"-I/usr/local/include" CGO_LDFLAGS=3D"-L/usr/local/lib" GOBIN=3D"" PREFIX=3D/usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus gmake build) gmake[1]: Entering directory '/usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3' >> building binaries Using config file: /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus/.promu.yml > prometheus + go build -a -tags netgo -ldflags "-X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Version=3D1.1.3 -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Revision=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Branch=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildUser=3Djev@futz -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildDate=3D20160922-21:22:42 -extldflags "-static"" -o /tmp/prometheus-1.1.3/prometheus github.com/prometheus/prometheus/cmd/prometheus > promtool + go build -a -tags netgo -ldflags "-X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Version=3D1.1.3 -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Revision=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Branch=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildUser=3Djev@futz -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildDate=3D20160922-21:22:42 -extldflags "-static"" -o /tmp/prometheus-1.1.3/promtool github.com/prometheus/prometheus/cmd/promtool gmake[1]: Leaving directory '/usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3' =3D=3D=3D> Staging for prometheus-1.1.3 =3D=3D=3D> Generating temporary packing list =3D=3D=3D> Creating groups. =3D=3D=3D> Creating users install -m 555 /usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3/promtool /usr/ports.svn/net-mgmt/prometheus/work/stage/tmp/prometheus-1.1.3/bin install: /usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3/promtool: No such file or directory *** Error code 71 Stop. make: stopped in /usr/ports.svn/net-mgmt/prometheus =3D=3D=3D> Error running make stage =3D=3D=3D> Cleaning up =E2=9C=98 jev@futz =EE=82=B0 /usr/ports/net-mgmt/prometheus =EE=82=B0 output from just make; jev@futz =EE=82=B0 /usr/ports/net-mgmt/prometheus =EE=82=B0 sudo make =3D=3D=3D> License APACHE20 accepted by the user =3D=3D=3D> prometheus-1.1.3 depends on file: /usr/local/sbin/pkg - found =3D=3D=3D> Fetching all distfiles required by prometheus-1.1.3 for building =3D=3D=3D> Extracting for prometheus-1.1.3 =3D> SHA256 Checksum OK for prometheus-prometheus-v1.1.3_GH0.tar.gz. =3D=3D=3D> Patching for prometheus-1.1.3 =3D=3D=3D> Applying FreeBSD patches for prometheus-1.1.3 =3D=3D=3D> prometheus-1.1.3 depends on file: /usr/local/bin/go - found =3D=3D=3D> prometheus-1.1.3 depends on executable: gmake - found =3D=3D=3D> Configuring for prometheus-1.1.3 =3D=3D=3D> Building for prometheus-1.1.3 (cd /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus ; /usr/bin/env GOPATH=3D"/usr/ports.svn/net-mgmt/prometheus/work:/usr/local/share/go" CGO_CFLAGS=3D"-I/usr/local/include" CGO_LDFLAGS=3D"-L/usr/local/lib" GOBIN=3D"" PREFIX=3D/usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus gmake build) gmake[1]: Entering directory '/usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3' >> building binaries Using config file: /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus/.promu.yml > prometheus + go build -a -tags netgo -ldflags "-X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Version=3D1.1.3 -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Revision=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Branch=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildUser=3Droot@futz -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildDate=3D20160922-21:38:29 -extldflags "-static"" -o /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus/prometheus github.com/prometheus/prometheus/cmd/prometheus > promtool + go build -a -tags netgo -ldflags "-X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Version=3D1.1.3 -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Revision=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.Branch=3D -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildUser=3Droot@futz -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/versio= n.BuildDate=3D20160922-21:38:29 -extldflags "-static"" -o /usr/ports.svn/net-mgmt/prometheus/work/src/ github.com/prometheus/prometheus/promtool github.com/prometheus/prometheus/cmd/promtool gmake[1]: Leaving directory '/usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3' =3D=3D=3D> Staging for prometheus-1.1.3 =3D=3D=3D> Generating temporary packing list =3D=3D=3D> Creating groups. =3D=3D=3D> Creating users install -m 555 /usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3/promtool /usr/ports.svn/net-mgmt/prometheus/work/stage/usr/local/bin install -m 555 /usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3/prometheus /usr/ports.svn/net-mgmt/prometheus/work/stage/usr/local/bin install -m 0644 /usr/ports.svn/net-mgmt/prometheus/work/prometheus-1.1.3/documentation/exam= ples/prometheus.yml /usr/ports.svn/net-mgmt/prometheus/work/stage/usr/local/etc =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Staging rc.d startup script(s) =3D=3D=3D=3D> Running Q/A tests (stage-qa) jev@futz =EE=82=B0 /usr/ports/net-mgmt/prometheus =EE=82=B0 ls -al work/prometheus-1.1.3/{promtool,prometheus} -rwxr-xr-x 1 root wheel 24839631 Sep 22 21:39 work/prometheus-1.1.3/prometheus -rwxr-xr-x 1 root wheel 10068258 Sep 22 21:40 work/prometheus-1.1.3/promtool jev@futz =EE=82=B0 /usr/ports/net-mgmt/prometheus =EE=82=B0