Bug 200164 - bsd.openssl.mk uses a call to pkg(8) without a full path.
Summary: bsd.openssl.mk uses a call to pkg(8) without a full path.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jung-uk Kim
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-13 07:32 UTC by Kimmo Paasiala
Modified: 2015-05-15 17:07 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Paasiala 2015-05-13 07:32:45 UTC
Ports tree head@386194. Running a 'make all-depends-list' in an 'env -i' environment produces errors from bsd.openssl.mk from line 102 (This was run on net/mtr):

pkg: not found
make[2]: "/poudriere/ports/default/Mk/bsd.openssl.mk" line 102: warning: "/usr/local/sbin/pkg-static info -g -ql security/openssl | grep "^`pkg query "%p" security/openssl`/lib/libcrypto.so.[0-9]*$"" returned non-zero status

This is clearly caused by the 'pkg query' command because with 'env -i' /usr/local/sbin is not in $PATH and the command is not found.

The 'pkg query' command needs to be changed to '/usr/local/sbin/pkg query'.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-05-15 17:05:10 UTC
A commit references this bug:

Author: jkim
Date: Fri May 15 17:04:54 UTC 2015
New revision: 386439
URL: https://svnweb.freebsd.org/changeset/ports/386439

Log:
  - Do not define OPENSSLRPATH when base OpenSSL is used.  Adding /usr/lib is
  pointless and blindly adding ${LOCALBASE}/lib after that is even harmful.
  - Stop hardcoding "pkg query". [1]

  PR:		200164 [1]
  Approved by:	portmgr (antoine)
  Exp-run by:	antoine

Changes:
  head/Mk/bsd.openssl.mk
Comment 2 Jung-uk Kim freebsd_committer freebsd_triage 2015-05-15 17:07:41 UTC
Fixed (r386439), thanks!