1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/Mk
Matthias Andree 13b212c743 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)
2013-10-31 19:07:38 +00:00
..
Scripts bsd.stage.mk: Fewer false positives, much faster, easier maintenance. 2013-10-31 19:07:38 +00:00
Uses Add a new USES for kernel module ports. 2013-10-31 11:34:46 +00:00
bsd.apache.mk
bsd.autotools.mk Fix spelling mistake 2013-09-01 01:18:05 +00:00
bsd.commands.mk Two imake related changes: 2013-09-02 13:26:34 +00:00
bsd.cran.mk
bsd.database.mk Sqlite 3.4 is not in the ports tree anymore 2013-09-16 15:19:15 +00:00
bsd.default-versions.mk Change default perl to lang/perl5.16 2013-10-23 10:26:23 +00:00
bsd.destdir.mk
bsd.drupal.mk
bsd.efl.mk - Convert to new LIB_DEPENDS syntax 2013-09-29 09:31:56 +00:00
bsd.emacs.mk
bsd.fpc.mk
bsd.gcc.mk Add support for USE_GCC=4.9 and USE_GCC=4.9+. 2013-10-13 21:23:35 +00:00
bsd.gecko.mk - update firefox to 25.0 2013-10-30 20:37:55 +00:00
bsd.gnome.mk Remove obsoleted and removed gnome1 components. While here update example. 2013-10-27 14:54:08 +00:00
bsd.gnustep.mk Make GNUstep installs respect MAKE_ARGS, required for staging support. 2013-10-07 10:32:02 +00:00
bsd.gstreamer.mk Update to 1.0.9. 2013-08-21 11:24:07 +00:00
bsd.java.mk
bsd.kde4.mk Allow stage support for 'USE_KDE4= sharedmime' ports 2013-10-08 09:28:52 +00:00
bsd.ldap.mk
bsd.licenses.db.mk - Add new OFL(1.0 and 1.1 versions) font licenses 2013-10-29 14:26:31 +00:00
bsd.licenses.mk - Similar to r328081, need to explicitly list the PREFIX that '@cwd' should 2013-09-25 13:29:12 +00:00
bsd.linux-apps.mk Remove entry for expired and deleted graphics/linux-f10-png10 2013-10-21 11:54:04 +00:00
bsd.linux-rpm.mk Rework linux rpm plist generation/installation 2013-10-06 09:08:22 +00:00
bsd.local.mk
bsd.lua.mk Drop support for lua 4 which is EOLed for a long time 2013-10-31 11:12:23 +00:00
bsd.ocaml.mk - Fix svn properties for Mk/bsd.ocaml.mk 2013-09-20 12:16:14 +00:00
bsd.octave.mk - USE_GMAKE to USES=gmake. 2013-07-06 01:48:53 +00:00
bsd.openssl.mk
bsd.options.desc.mk - Add shared defnition for redis description 2013-10-13 19:06:40 +00:00
bsd.options.mk - Remove gratuitous whitespaces 2013-10-30 16:54:09 +00:00
bsd.pbi.mk - Fix bsd.pbi.mk to pull pbi-manager from the correct port 2013-09-27 10:10:29 +00:00
bsd.php.mk Add support for staging PHP extensions. 2013-10-30 13:28:00 +00:00
bsd.pkgng.mk Fix copying +INSTALL after r332158 2013-10-30 22:13:56 +00:00
bsd.port.mk - Fix 'make package' when using pkg_install. Broken in r332158 due to syntax 2013-10-31 02:27:14 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Replicate r321735 fix to bsd.port.subdir.mk as it suffers the same bug 2013-06-25 12:34:12 +00:00
bsd.python.mk Mk/bsd.python.mk: Further tweaks to clarify AUTOPLIST and PY3K_HACK 2013-10-27 09:30:09 +00:00
bsd.qt.mk Pass CC/CXX to qmake when we can't find appropriate QMAKESPEC 2013-10-21 19:47:02 +00:00
bsd.ruby.mk - Remove final vestiges of ruby18 2013-10-31 12:15:50 +00:00
bsd.sanity.mk - Add a warning about PYTHON_PY3K_PLIST_HACK not being required, if 2013-10-26 09:29:18 +00:00
bsd.scons.mk Allow scons port to support staging 2013-10-02 22:33:27 +00:00
bsd.sdl.mk Welcome SDL2 to the FreeBSD ports system! 2013-06-21 19:56:27 +00:00
bsd.sites.mk - Remove cpan.nctu.edu.tw from MASTER_SITE_PERL_CPAN_BY 2013-10-26 12:37:32 +00:00
bsd.ssp.mk - Rename public name of SSP support to WITH_SSP_PORTS as /usr/src 2013-09-22 00:26:05 +00:00
bsd.stage.mk bsd.stage.mk: Fewer false positives, much faster, easier maintenance. 2013-10-31 19:07:38 +00:00
bsd.tcl.mk
bsd.tex.mk
bsd.wx.mk - Revert file erroneously included in my previous commit 2013-09-19 09:58:00 +00:00
bsd.xfce.mk - Fix devel/xfce4-dev-tools detection, when xfdev is used in USE_XFCE macro 2013-10-20 18:53:04 +00:00
bsd.xorg.mk