Bug 218311 - Porters handbook: Requesting enhanced pkg-add testing description, Section 3.4
Summary: Porters handbook: Requesting enhanced pkg-add testing description, Section 3.4
Status: Closed Overcome By Events
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-02 21:47 UTC by Steve Jacobson
Modified: 2017-08-04 13:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Jacobson 2017-04-02 21:47:53 UTC
In Section 3.4 of the Porter's Handbook, Procedure 3.1, step 6:  I could not figure out how to make the pkg-add test step work.

The step specifies a generic <package-filename>, which was not clear.  I found a likely candidate in the work directory, but referencing it did not work.  Perhaps I needed to specify a path.

I perused Section 8 of the manual, but did not find an obvious solution.

I am testing on FreeBSD 10.2, release, amd64.

Thanks!

https://www.freebsd.org/doc/en/books/porters-handbook/book.html#porting-testing
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2017-04-03 01:59:38 UTC
This is in the procedure for creating a new port, "short version".

package-filename will be the value of PKGFILE:

portsjail% cd www/apache24
portsjail% make -V PKGFILE
/home/linimon/ports/www/apache24/apache24-2.4.25_1.txz

Of course, it doesn't need the whole path.

Next, please don't make an old fellow like me nervous by saying 'pkg-add'.  That was our old system.  The command you will want is 'pkg add' (no dash).
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2017-08-04 13:43:08 UTC
I removed the pkg add step.  It was an old step that has not been needed ever 
since staging came along.
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-08-04 13:43:15 UTC
A commit references this bug:

Author: mat
Date: Fri Aug  4 13:42:28 UTC 2017
New revision: 50635
URL: https://svnweb.freebsd.org/changeset/doc/50635

Log:
  Remove the pkg add step.  The package is already installed in the make
  install step.

  PR:		218311
  Reported by:	Steve Jacobson
  Stolen from:	linimon
  Sponsored by:	Absolight, The FreeBSD Foundation

Changes:
  head/en_US.ISO8859-1/books/porters-handbook/quick-porting/chapter.xml