Date: Thu, 22 Sep 2016 21:49:20 +0000 From: Jev Bjorsell <jev@ecadlabs.com> To: freebsd-ports@freebsd.org Subject: Differences when using `make` V `port test` Message-ID: <CAGKJJVnDPx5YXQxMdjkbKSjeTETsBfsMtd-0Nnem58=F0x_1Pw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGKJJVnDPx5YXQxMdjkbKSjeTETsBfsMtd-0Nnem58=F0x_1Pw>