notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
This referral link gives you 10% off a Fastmail.com account and gives me a discount on my Fastmail account.

Get notified when packages are built

A new feature has been added. FreshPorts already tracks package built by the FreeBSD project. This information is displayed on each port page. You can now get an email when FreshPorts notices a new package is available for something on one of your watch lists. However, you must opt into that. Click on Report Subscriptions on the right, and New Package Notification box, and click on Update.

Finally, under Watch Lists, click on ABI Package Subscriptions to select your ABI (e.g. FreeBSD:14:amd64) & package set (latest/quarterly) combination for a given watch list. This is what FreshPorts will look for.

non port: Mk/bsd.stage.mk

Number of commits found: 32

Monday, 1 Sep 2014
05:43 bapt search for other commits by this committer
Remove support for NO_STAGE
Mark all current non staged ports as BROKEN

Reviewed by:	antoine
Exp-run:	antoine
Differential Revision:	https://reviews.freebsd.org/D693
Original commitRevision:366839 
Monday, 25 Aug 2014
22:10 antoine search for other commits by this committer
Check that the plist doesn't reference the stage dir during stage-qa

====> Running Q/A tests (stage-qa)
Error: '/usr/ports/www/claroline/work/.PLIST.mktmp' is referring to
/usr/ports/www/claroline/work/stage
*** Error code 1

Differential Revision: https://reviews.freebsd.org/D685
Reviewed by:	bdrewery
With hat:	portmgr
Original commitRevision:366159 
Monday, 16 Jun 2014
12:23 bapt search for other commits by this committer
Remove manpage leftovers in stage
Original commitRevision:357975 
Sunday, 15 Jun 2014
23:01 bapt search for other commits by this committer
Fix symlinks of manpage after compression

PR:		184395
Submitted by:	oliver.fromme@secnetix.de
Original commitRevision:357938 
Tuesday, 6 May 2014
11:57 tijl search for other commits by this committer
Let stage-qa detect .la libraries and warn that a port needs USES=libtool.

PR:		ports/189255
Approved by:	portmgr (antoine)
Original commitRevision:353084 
Monday, 5 May 2014
17:23 antoine search for other commits by this committer
Fix a copy/paste error

Reported by:	rene
With hat:	portmgr
Original commitRevision:353033 
Wednesday, 23 Apr 2014
22:22 bdrewery search for other commits by this committer
- Fix when USES not defined

With hat:	pormtmgr
Pointyhat to:	bdrewery
Original commitRevision:351978 
22:19 bdrewery search for other commits by this committer
- Fix stage-qa when USES contains desktop-file-utils twice

Reported by:	mandree
With hat:	portmgr
Original commitRevision:351977 
Saturday, 19 Apr 2014
06:44 bdrewery search for other commits by this committer
- Rename check-orphans to check-plist. Keep the old for backwards-compat.
- Bug fixes:
  makeplist/check-plist:
   - Fix showing directories owned by RUN_DEPENDS/LIB_DEPENDS [1]
   - Use proper "rmdir PATH" syntax, not "rmdir >/dev/null... PATH" which
     pkg will not recognize.
   - Never consider base /etc/mtree/BSD.usr.dist or LOCLABASE
     Templates/BSD.local.dist as needing @dirrm handling.
  check-plist:
   - Fix showing PORTDOCS/PORTEXAMPLES files when the OPTIONS are not set.
     makeplist will still suggest them.
   - Fix showing files installed through unselected OPTIONS as orphans,
     by considering "@comment file" to be ignored. [2]
   - Fix @sample, @fc, @fcfontsdir, @fontsdir support
   - Fix return status when orphans are found to be non-zero
   - Add note when PREFIX=!LOCALBASE
   - Be more clear when orphans/no orphans are found.
   - Add a whitelist mechanism for globally approved ignores.
   - Add *.bak/*.orig to orphan whitelist for now.
   - Fix false-positive with dirs installed to /, such as with
     archivers/dpkg creating /var/db/dpkg
   - Fix false-positive with @dirrm ending in /, such as with
     ports-mgmt/poudriere with a @dirrmtry share/zsh/
   - There are likely still some false-positives. I fixed as many as I could
     find. Please let me know of others.
    * One in particular that is not easily fixable is installing a file into
      a directory owned by another port where that other port is not a run-time
      dependency. So the leaf port may create all of the parent dirs and never
      clean them up. Cleaning them up is not proper unless no other package is
      depending on them. This will be addressed by pkg(8) once pkg_install is
      EOL, or sooner.
   - Consider @dirrm of directories owned by run-time dependencies, or
     /etc/mtree/* or Templates/BSD.local.dist (at LOCALBASE) as fatal errors.
     These should not be removed in the plist. @comment lines are not
     considered for this; they will not ignore an error.
        ===> Checking for directories owned by dependencies or MTREEs
        Error: Owned by dependency: @dirrmtry share/locale/af/LC_MESSAGES
        Error: Owned by dependency: @dirrmtry share/locale/af
        Error: Owned by dependency: @dirrmtry %%PERL5_MAN3%%
   - Detect files in plist that do not exist in the stagedir. Pkgng already did
     this, but now we have it unified with this check. @comment lines are
     not considered for this; they will not ignore an error.
        ===> Checking for items in pkg-plist which are not in STAGEDIR
        Error: Missing: foo
        Error: Missing: @dirrmtry bar
   - Change orphaned output due to several new errors introduced:
        ===> Checking for items in STAGEDIR missing from pkg-plist
        Error: Orphaned: foo
   - Send errors to stderr
  check_leftovers.sh:
   - Prefer longer values for PLIST_SUB.
  bsd.options.mk:
   - Fix NOPORTDOCS/WITHOUT_NLS/NOPORTEXAMPLES not unsetting their respective
     OPTIONS.
   - Mark NOPORTDOCS/NOPORTEXAMPLES deprecated and hook them into the
     OPTIONS_WARNING to tell users the new format.
- check-stagedir.sh refactoring:
  - Switch to using new PLIST_SUB_SED
  - Use ! instead of , in sed(1) regex to allow files/dirs with ','
  - Rework PORTEXAMPLES/PORTDOCS handling so it acts on PLIST_SUB_SED'd
    value and not absolutes. Also simplify the regex for these a bit to
    allow reuse.
  - No longer need DOCSDIRS/EXAMPLESDIR in env
  - Wrap long lines
  - Unset some vars in env when they are done being used to free space for
    larger sed vars
  - Cleanup redundant sed regexes
- Add a Scripts/plist_sub_sed_sort.sh to prefer longer values when substituting
  over shorter values.

- To make check-plist ignore a file *as an orphan* do one of the following:
  1. Install it
  2. post-install: ${RM} ${STAGEDIR}file
  3. Put the file behind an OPTION with a PLIST_SUB: %%OPTION%%file
  4. Add to plist as a @comment [2]:
     @comment file
     @comment @dirrmtry dir

Reviewed by:	mat (much earlier version)
Discussed with:	mat, antoine, bapt, swills (various bits)
With hat:	portmgr
PR:		ports/185561 [1]
Reported By:	Alexander Yerenkow <yerenkow@gmail.com> [1]
Tested with:	pkg and pkg_install
Reported by:	many (false-positives)

[2] This is a partial solution, we may still need a plist.ignore too. It
    doesn't make much sense to add files in main pkg-plist we don't care about,
    but maybe it does since you'll see and reconsider them being ignored
    someday. @comment is used as all the OPTION PLIST_SUB deactivations use
    @comment instead of something like @ignore.
Original commitRevision:351587 
Thursday, 10 Apr 2014
17:02 bapt search for other commits by this committer
Allow to properly run make check-orphans and make makeplist for gnome ports
Original commitRevision:350822 
Monday, 17 Feb 2014
16:09 mat search for other commits by this committer
Remove bits in PLIST_SUB who have spaces in them for makeplist usage.

Sponsored by:	Absolight
Original commitRevision:344786 
Tuesday, 28 Jan 2014
22:19 antoine search for other commits by this committer
- Do not check for ${WRKDIR} in staged files, there are lots of false
  positives as some .o files may embed the source path [1]
- Only check shebang of files with executable bit set

Requested by:	bapt [1]
With hat:	portmgr
Original commitRevision:341664 
14:16 mat search for other commits by this committer
Greatly enhance makeplist to replace all it can find in PLIST_SUB.

With hat:	portmgr
Sponsored by:	Absolight
Original commitRevision:341573 
Saturday, 25 Jan 2014
20:49 antoine search for other commits by this committer
Add WRKDIR to QA_ENV so that the paths QA check can search for it
Original commitRevision:341098 
Tuesday, 7 Jan 2014
08:17 bapt search for other commits by this committer
Add an internal variable to decide if DESTDIR should ve define in MAKE_ENV or
MAKE_ARGS
Original commitRevision:338982 
Wednesday, 4 Dec 2013
17:48 antoine search for other commits by this committer
Do not create a BSD local hierarchy under ${STAGEDIR}${LINUXBASE} when
USE_LINUX=yes and PREFIX!=LINUXBASE.
This is not needed and creates a bunch of stage orphaned directories.

PR:		ports/184477
Approved by:	portmgr (bapt)
Tested by:	poudriere bulk -t games/dsnake emulators/rtc
www/linux-f10-flashplugin11 (no error, no orphans)
Original commitRevision:335625 
Saturday, 23 Nov 2013
09:48 bapt search for other commits by this committer
Fix handling of info files with pkgng, when dealing with .info-X files and also
what INFO_SUBDIR.
The .info-X handling was wrong since the beginning of pkgng, the INFO_SUBDIR
regression was introduced with stage

PR:		ports/184178
Reported by:	gerald
Tested by:	gerald
Original commitRevision:334652 
Friday, 8 Nov 2013
10:36 rene search for other commits by this committer
Fix 'make stage' for ports which define USE_LINUX by passing a defined
variable to MTREE_CMD.  The previous variable, MTREE_LINUX_ARGS, seems to
be a leftover.

Approved by:	portmgr (bapt)
Original commitRevision:333192 
Thursday, 31 Oct 2013
19:07 mandree search for other commits by this committer
bsd.stage.mk: Fewer false positives, much faster, easier maintenance.

Bugfixes:

* @cmd in pkg-plist is now properly handled.
  - It was previously treated the same as though there was a directory
    following it, missing the prefix. (ordering matters in case...esac)

  - Due to the cwd=${PREFIX} inside the while read line loop, state
    tracking was broken and every new line assumed that cwd were the
    prefix.

* stage-qa no longer complains about unstripped binaries if debugging is
  active (WITH_DEBUG set && WITHOUT_DEBUG unset).

* The compress-man target uses ECHO_MSG, not ECHO_CMD, to print its
  build step.

Additions:

* The plist parser now understands @unexec rmdir ... || ... lines,
  including those with redirections, so that there are no false
  positives for directories stripped with @unexec rmdir (usually
  happens on stuff installed outside $PREFIX, as in /var).

* The system's root and var mtrees are now also expanded to avoid
  false @dirrm positives if a port installs directories under /var
  and has to create parents in the stagedir that are present in a fully
  installed system (i. e. in the real $PREFIX).

* Given that pkg_create is deemed beyond repair with respect to deleting
  files outside prefix, generate @unexec rmdir statements for such
  directories, rather than @dirrmtry, to sidestep the problem.

Speedups:

* the orphan check now generates sorted lists of staged files,
  and plisted/mtree files, and compares them with comm(1).
  This saves us the overhead of running one grep process per file
  and up to two per directory, and defers the actual list
  processing to a shell utility.  Complexity has not changed,
  but overhead per item has.

* the orphan check now uses one file for directories and one file for
  files mentioned in pkg-plist, so we need not decorate them with "dir "
  and parse them out any longer.

* qa.sh's shebang scanner only looks at the first line of a file,
  sed is told to exit from the 2nd line.

Other Changes:

* Split the makeplist/check-orphans logic out of bsd.stage.mk,
  it is too unwieldy to maintain in make-escaped shell syntax,
  and permits shell tracing with "SH=sh -x" (including quotes!)

* Unify the functions "makeplist" and "check-orphans" in one
  script.  The only difference is that makeplist assumes an empty
  pkg-plist, whereas check-orphans parses it.

* overhaul the mtree extractor, avoiding awk.

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Original commitRevision:332275 
Monday, 21 Oct 2013
13:09 rene search for other commits by this committer
Fix a typo in bsd.stage.mk, LINUXBASE_REL should be LINUXBASE.  Nothing
defines the former variable.

Approved by:	portmgr (bapt)
Original commitRevision:331136 
Thursday, 10 Oct 2013
17:09 antoine search for other commits by this committer
Add two QA tests for staged ports:
- check for desktop files handling MIME types
- check for share MIME-Info database

Approved by:	portmgr (bapt)
Original commitRevision:330020 
Wednesday, 9 Oct 2013
15:11 bapt search for other commits by this committer
First set of Q/A for staged ports.
A couple of Q/A tests are done if the DEVELOPER macros is set in make.conf
Right now the tests are:
- Check if the symlinks are properly created
- Check if the binaries are stripped (just warn)
- Check if the STAGEDIR or the WORKDIR are referenced in the final files
- Check if the ports provide script with bad shebangs.
Original commitRevision:329902 
Friday, 4 Oct 2013
16:43 bapt search for other commits by this committer
MTREE_FILE is not yet defined bsd.stage.mk is parsed let the shell script test
it.
Original commitRevision:329337 
15:33 bapt search for other commits by this committer
Fix makeplist with no MTREE_FILE
Original commitRevision:329326 
15:31 bapt search for other commits by this committer
Fix check-orphans with no MTREE_FILE
Original commitRevision:329325 
Tuesday, 1 Oct 2013
14:11 mat search for other commits by this committer
Fixup the MLINKS replacement code.

Approved by:	bapt
Original commitRevision:328950 
Monday, 23 Sep 2013
22:09 bapt search for other commits by this committer
New target make check-orphans to help discovering the files in staged not
present in plist

Reviewed by:	bdrewery
Original commitRevision:328073 
20:07 bapt search for other commits by this committer
Introduce a new MANDIRS macros to make the compress-man determine where the
makefiles should be found
Previous implementation was based on etc/man.d which doesn't exists in FreeBSD
8.
By default MANDIRS is ${MANPREFIX}/man. if a port adds USES=perl5 then the perl
default locations is added

Reviewed by:	bdrewery
Original commitRevision:328037 
11:45 bapt search for other commits by this committer
Use macro when possible

Reported by:	ak
Original commitRevision:327983 
10:23 bapt search for other commits by this committer
Sort earlier to preserver the FS ordering

Reported by:	danfe
Original commitRevision:327968 
10:09 bapt search for other commits by this committer
Make the new compress-man respect LOCALBASE and PREFIX
Original commitRevision:327962 
05:56 bapt search for other commits by this committer
Add support for staging area in the ports tree

The ports tree is now staged by default. With pkgng the sequence hasn't
changed, the main difference is that creating package is now independent
from installing it. With pkg_install, the package is now created first
and make install, do install the package.

New macros:
- STAGEDIR: PATH to the directory where the port will be staged.
- NO_STAGE: Keep the old behaviour of the ports tree (aka no staging area)

Unsupported macro if NO_STAGE is not set:
- MAN* with staging man page compression and handling of hardlinks and
symlinks is automatically done in the stage. the manpages becomes then a
"normal" plist files and should be tracked in pkg-plist.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
Original commitRevision:327910 

Number of commits found: 32