* Look for $MAKECONF in @MAKECONF@, @PREFIX@/etc/mk.conf,
and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
".", "..", "../..", and "/usr/pkgsrc", in that order.
* Convert the Makefil to use the SUBST framework.
Proposed in tech-pkg; OK (in principle) David Brownlee
* Look for $MAKECONF in @MAKECONF@, @PREFIX@/etc/mk.conf,
and /etc/mk.conf, in that order.
* Look for $PKGSRCDIR in the Makefile referred to by $MAKECONF,
".", "..", "../..", and "/usr/pkgsrc", in that order.
Proposed in tech-pkg; OK Greg Troxel.
Known regressions:
- "pkg_add -" (aka reading from stdin) is currently not supported
- "pkg_add -s" is not supported either
- no progress reports for the downloads
- binary packages with hardlinks created by pkg_create before
pkg_install-20080422 will not extract correctly (libarchive issue)
- no adhoc check for potential conflicts between dependencies and
already installed packages
Features:
- Twice as fast for the typical case of /var/tmp and /usr/pkg on
different filesystems
- Standalone
- implicit conflict detection before actual installation.
Make use of the linkresolver from libarchive and thereby fix the
permissions of hardlinks in archives. This wasn't a problem so far
as nbpax is (incorrectly) ignoring the permissions of the other entries.
Add audit-history subcommand for pkg_admin, that lists all known
vulnerabilities for a given base package name. E.g. if you run a web
server, don't run "pkg_admin audit-history php" before going to bed.
- When loading meta data for a package and a file is needed for the
current operation and is a required file, complain.
- Include the name of the package the meta data could not be loaded
from.
This addresses PR 38166.
Changes since 4.84:
- Fixed the splitting of PKGNAME into PKGBASE and PKGVERSION.
- Added a warning about usage of LOCALBASE in packages, provided by jlam.
package name into PKGBASE and PKGVERSION has been changed. It treats
everything in front of the last hyphen as the package basename and the
rest (which will hopefully start with a digit) as the package version.
Packages that are affected by this change are for example:
* fonts/*-100dpi
* lang/elisp-manual: elisp-manual-21-2.8
* mail/postfix-current: postfix-2.6-20080216
* net/flodo: flodo-4-20040907
from archivers/pax and net/tnftp, respectively. In the past, the
pkgtools version of these packages installed into ${PKG_TOOLS_BIN},
but this was changed in:
pkgtools/pax/Makefile:1.15
pkgtools/tnftp/Makefile:1.3
+ Get rid of archivers/pax/Makefile.common and net/tnftp/Makefile.common
by merging them into their respective Makefiles. The Makefile.common
files existed solely for inclusion by the pkgtools versions of these
packages, but with the removal of those packages, these files are
now unnecessary.
+ Add full DESTDIR support to archivers/pax and net/tnftp.
+ Modify the bootstrap to build archivers/pax and net/tnftp instead of
the pkgtools versions of these packages.
Do not force use of a native compiler, we don't build digest during
bootstrap any longer.
Do not skip the pkgtools version check for the same reason. When
building this package using DESTDIR, it might actually need the newer
tools.
Redo the check for incomplete packages by annotating which meta data
field are required and count which were found during reading the binary
package. The original approach didn't work as loads from pkgdb are
reduced to the minimal set.
Free libarchive's side of the package before closing the file descriptor.
This stops leaking up to 1MB / package when using bzip2 and addresses
PR 38082. Check that at least +COMMENTS, +CONTENTS and +DESC can be
extracted, otherwise skip the entry. This stops pkg_info -X from dumping
core on non-package files.
including inplace.mk causes a PIC version of libnbcompat to be built
alongside the regular static libnbcompat.
This will be used to extend the features framework in two ways:
1) Support linking features into shared modules
2) Ability to cherry-pick individual objects to link from the libnbcompat
build directory rather than linking the whole archive.
Changes since 4.82:
- Whenever a Makefile.common is included by another file, that file should
be mentioned in the Makefile.common.
- Added spell checker for .if directives.
- Added warnings for uncommented patches (only for -Wstyle).
- Added spell checker for invalid macro names, like __NetBSD_Version.
- Deprecated INSTALLATION_DIRS_FROM_PLIST in favor of AUTO_MKDIRS.
- Many more small things.
Add new parser for pkg_vulnerabilities, that handles decompress
transparently and internally. Preliminary tests with a modified
audit-packages show a speed increase by 2 for common operations
like listening all vulnerable installed packages.
* Clarify that the -x option takes package base names, not full package
names.
* Clarify that the -x option excluded packages only from the outdated
check, not from being rebuilt for any any other reason.
* Add a -X option that excludes a package from being rebuilt for any
reason. (I have had this as a private patch for a long time, and
never run pkg_rolling-replace without "-X openoffice2", because
openoffice requires so much time and disk space to build.)
Some changes from Aleksey Cheusov in pkg/36298 and pkg/36641 with
additional cleanup by me.
- option -g doesn't need PKGSRCDIR populated
- fatal if mktemp fails
- truncate logfile instead of removing it
- performance improvement for binary package scan
parsing a file name from the "+++" line in an old patch file. (New
patch files created by mkpatches do not have "./" in the file name in
the "+++" line, but some old patches currently in pkgsrc do have "./"
there.)
Bump version to 0.120.
Explicitly check in show_var that the buffer is non-NULL.
This can stops pkg_info -Q foo from segfaulting for explicitly
installed packages. Reported by Stoned Elipot.
Teach set_ftime about symbolic links, because it has to know: on some
Linux systems, when we build as a tool we think we have lutimes but it
doesn't work on some filesystems at runtime. A bit ugly but effective
and without use of AC_TRY_RUN in the tool build. Tidier (than mine)
set_ftime reorganization from christos.
Bump version to 20080110.
libnbcompat.h already. So don't include sys/param.h and sys/mount.h in
it and remove the configure test for sys/mount.h.
While here, remove some #if 0'd code from pen.c.
Convert pkg_info to use libarchive instead of tar for binary package
handling. As a side effect pkg_info on remote packages will use
one FTP instance per argument, but will try to fetch only the meta data.
This reduces time for pkg_info -X on a full binary repository from 36.9s
to 18.1s for the cache hot case (PKG_TMPDIR on tmpfs for the old
pkg_info). Thanks to tnn@ for testing.
When running the start script in master mode, already accept incoming
connections. This makes the start script more useful when using more
clients than the default listen back log.
Add first pile of patches for cross-compiling support.
This still depends on the packages being pre-installed to
the normal prefix, but otherwise works. Cross-compiling
needs pkg_install-20080126. While here, simplify configuration
and allow using one pkg_install installation for everything.
As a side effect remove the pkgdb limitation for NetBSD builds.
Add a message that tells users to check the configuration file
on updates.
Add bulkbuild-rebuild which can be used to build packages individually.
It assumes that all dependencies are built and the results of the scan
phase exists. That means it can be used after a bulk build to try to
rebuild a failing package. Fixes PR 37407.
When all jobs are processed in master mode, close the listen socket
and shutdown(2) all peers. Give them a second to close(2) the
connection themselve, so that the port remains usable on the master.
This is the standard compliant fix for PR 37002.
- run checksum stage of a build with the privileged user, as DISTDIR
might not be writeable
- create the actual package as privileged user as well
- pre-create work.log when using user-destdir
- in pre-build, only wait if the meta subdirectory exists. bulklog itself
can often be a mount point.
- If not running on NetBSD or not using /usr/bin/make, set the default
of pbulk's make to ${prefix}/bin/bmake.
- Make path to neato an option and don't install it on demand.
- Fix a bug in the master mode that should fix the strange faults seen
with native libevent on NetBSD.
- Add option to skip checksum computation. Don't upload a checksum file
if that option is active.
non-deletable packages as dependencies. Bump version to 0.14.
Example problematic output (perhaps should also be fixed in
pkg_install):
Information for pkg_install-20070810:
*** PACKAGE MAY NOT BE DELETED ***
Built using:
checkperms-1.7
*** PACKAGE MAY NOT BE DELETED ***
check that the string fits to the variable type.
Currently, the generated warnings are mainly for X11_TYPE, for which
"xorg" is not a valid value. (hi joerg!)
that the time has come that we can no longer find out what a patch does,
unless we document it. The CVS history is not of great help in many
cases, patches get moved in the repository and so on.
To not scare casual pkglint users, these warnings are only shown if
pkglint is run with the -Wstyle or -Wall option.
as 20071224. Changes include:
- better diagnostic for conflicting packages
- explicitly check already installed packages for conflicts with
to-be-installed package
- document pkg_admin rebuild-tree in usage
- man page fixes
- forcefully remove pkgdb entries (needed for user-usage in some cases)