Commit graph

4938 commits

Author SHA1 Message Date
marino
dc5dfa8d53 pkgtools/pkg: Honor existing PKG_DBDIR definition
Rather than defaulting to /var/db/pkgng, use the variable that exists
already for this purpose.  Similarly, change cache directory definition
from /var/cache/pkgng to ${VARBASE}/cache/pkgng
2016-10-28 15:35:08 +00:00
marino
354fdffdce pkgtools/pkg: Allow PORTSDIR to be specified
As pointed out by jperkins, defaulting to builder's setting for PKGSRCDIR
for the sources isn't aways correct for the binary package consumers.
This is not a problem unique to pkgtools/pkg and really requires a system-
wide solution.  Until there is such a global variable, rename the PORTSDIR
variable to PKG.portsdir and allow it to be modified by e.g. make.conf.

In the case of pkg, PORTSDIR just refers to a default configuration
location which is overridable by a configuration file.
2016-10-27 13:22:44 +00:00
khorben
58fbab5524 Import the second part of a patch from John Marino
This:
- fixes the "/usr/ports" paths in code and man pages to
  ${PKGSRCDIR} (normal) or hardcoded to "/usr/pkgsrc" (future, its for
  builders like Synth and poudriere)
- changes default DB path from "/var/db/pkg" to "/var/db/pkgng". It
  seems the original default was too ambiguous as "pkg" is used
  everywhere in pkgsrc and it's the default format (not pkgng format)
- similarly, changes default CACHE patch from "/var/cache/pkg" to
  "/var/cache/pkgng"
- bumps PKGREVISION again

Another relevant comment from John and reworded by myself for context:
(all misquotings mine)

« Importantly, FreeBSD, NetBSD, and DragonFly all provide libarchive
in base. Therefore, this changes the port to use the base version when
available because the libarchive requirement is considered heavy. The
OpenSSL dependency brings a lot with, including perl. When trying to
update the bootstrap to build pkgng instead of pkg_* tools, it is
critical that the dependencies remain low. Other platforms will have
to suffer with the libarchive requirement if they want to use pkgng.

Following this, special linking code is needed for DragonFly since the
SSL libraries are now private. In fact, the only userland program
allowed to link with them is pkg(8) for bootstrapping reasons listed
above. »

Thanks again!
2016-10-27 00:24:58 +00:00
khorben
a5726bfecf Improve the most trivial parts of a patch from John Marino
This does:
- remove the requirement for C++ (there is no C++ code there)
- properly substitute $PKGSRCDIR for PORTSDIR
- remove sbin/pkg2ng as it is inapplicable for pkgsrc
- bump PKGREVISION accordingly

More changes pending...
2016-10-27 00:06:54 +00:00
khorben
1944d73fc2 Remove outdated dependencies
From John Marino, thanks!
2016-10-25 12:54:37 +00:00
khorben
e891e80dea Use the official release instead of the GitHub tree
This also adds two patches, to fix the "major OS upgrade detected" error
in NetBSD. A file missing from the original archive was imported too.

Bump package revision as the upstream was changed. The archive downloaded
has a different filename, so there should be no conflict in the
"distfiles" folder.

From John Marino, thanks!
2016-10-25 11:51:40 +00:00
dholland
f9d8e99aa4 Add IRIX support from Stuart Shelton in PR 38656. 2016-10-17 01:11:30 +00:00
jperkin
74564c9ae6 Update to mksandbox-1.7. Changes:
- Handle /run/resolvconf/resolv.conf explicitly rather than mounting all of
   /run.  If /run exists then systemd will dynamically create /run/user/uid
   tmpfs mounts inside the chroot which mksandbox is unable to unmount.
2016-10-14 12:50:07 +00:00
wiz
0d448a7b6d Even more github support.
Bump version.
2016-10-10 07:42:53 +00:00
joerg
29777c2322 Adjust comment to reflect reality. 2016-10-07 13:22:49 +00:00
wiz
2ea9b05c83 Remove some dead code, python-3.3 is no more. 2016-10-03 12:25:36 +00:00
wiz
59c4a9f6b5 Allow sissl-1.1 per default
See
https://opensource.org/licenses/sisslpl
2016-10-03 11:49:31 +00:00
wiz
577e1cde9e ibm-public-license-1.0 -> ipl-1.0 2016-10-03 08:30:20 +00:00
kamil
4c4f22a933 Add pkgtools/plist-utils 2016-10-01 18:42:53 +00:00
kamil
784c9830b5 Import plist-utils as pkgtools/plist-utils
The plist-utils suite aims to facilitate management of PLIST entries.
It handles PLIST options and variables, and is especially useful for
keeping PLISTs of packages with quickly changing file-lists, such
as those closely tracking upstream development branch, up to date.

Import approved by <wiz>.
2016-10-01 18:37:15 +00:00
reed
f430510cfb pkglint has hardcoded php55 referenced a couple times.
That package was removedi and caused pkglint errors like:
ERROR: ../../lang/php/ext.mk:25: Cannot read
"./../../lang/php55/Makefile.common".

So update to later php56.

I don't understand why the ChecklinesDistinfo function in distinfo.go
has an exception for the php patches directory but changed there too.

I received an okay on packages@ list.

Note that the make check for the pkglint package failed for me
but the pkglint worked for me in my tests of some php using packages.

Increase version of pkglint.
2016-09-30 18:27:37 +00:00
wiz
5c7df860ec Fix HOMEPAGE when packaging github releases. Bump version. 2016-09-27 17:10:09 +00:00
rillig
14dd5b2a97 Updated pkglint to 5.4.9.
Changes since 5.4.8:

* Disallow lib/charset.alias in PLIST. This file may only be installed
  by converters/libiconv. (That package is currently broken, since
  it only touches that file when installing from source, not from a
  binary package. But pkglint is prepared for it to be fixed.)
2016-09-17 23:58:04 +00:00
joerg
64c13b730d cwrappers-20160908: Allow cc -o -. 2016-09-15 17:08:14 +00:00
bsiegert
fa3aa847c2 Revbump all Go packages after the Go 1.7.1 update. 2016-09-10 19:47:19 +00:00
jperkin
c684e9e413 Use PKGMANDIR. 2016-09-08 14:58:06 +00:00
joerg
f927905a3c bootstrap-mk-files-20160908:
Unless a platform explicitly sets DBG, default to -O2 on all
architectures. Most importantly, don't default to unoptimized builds
on AMD64.
2016-09-08 14:28:12 +00:00
rillig
cb4a44d998 Allow packages to define their own tools using TOOLS_CREATE.
Suggested by @jperkin for lang/rust.
2016-09-06 20:54:21 +00:00
rillig
063810441a Updated pkglint to 5.4.8.
Changes since 5.4.7:

* Added cputime as an allowed keyword for UNLIMIT_RESOURCES.
2016-09-06 19:23:03 +00:00
wiz
dee76b76c7 Add partial github support.
Bump version.
2016-08-31 21:15:36 +00:00
wiz
9f3dbdfcf3 Indent. 2016-08-31 21:15:01 +00:00
khorben
b362b2540a Package pkg 1.8.7
For 1.8.0:

New features:
- new vital flag that prevent from removing a package with pkg delete when not specifying -f
- upgrade process now has atomicity per packages meaning now we can safely check the return of the pre* scripts
- handle ctrl-c during upgrade/install/update
- solver improvements
- pkg clean now runs in a capsicum sandbox on supported plateforms

Changes:
- pkg delete now fails if one tries to delete it (the pkg package) without -f. Before it was just warning and skipping it
- pkg install --from-root has been renamed pkg install --recursive to avoir confusion

Fixes:
- correctly handle hardlinked setuid files
- better handling of setuid
- fix elf analysis when some bad libraries have SONAME specified by empty
- fix elf analysis when a binary provides elf_notes but not the expected ones and are still valid freebsd binaries
  (this fixes the case when libgdk_pixbuf was not found as a provided lib on i386)
- NAMESERVER option is now working again and inputs are better checked
- lots of bug fixes: potential leaks mostly

For 1.7.0:

Changes:
- Support new "vital" notion: prevent from implicit deletion
- Improved support for OpenBSD/bitrig (still lacks some functions in libc)
- Improved ZSH completion
- Updated libucl
- Lots of fixes in error messages
- Fixed "pkg lock" handling
- Allow to specify "inline" respositories in pkg.conf
- ipv6 fixes
- Allow to restrict the accepted url schemes
- More commands supports "-q"
- Multiple bug fixes
- As usual multiple new bugs
- Improved support for shlibs dependency generation when packaging base via ALLOW_BASE_SHLIBES

For 1.6.0:
- Lots of improvements in the solver (in particular fixes the case like the
  recent jpeg upgrade)
- Lots of fixes in the 3 way merge code
- pkg add can now work without a version specified in the dependency line
- pkg check -d now also check the required libraries
- Improved support for partial upgrades
- Improved zsh completion support
- Improved linux support (now all regression tests passes on linux)
- Messages can now be context aware: (only print a given message during
  installation, upgrade - version aware -, removal, or always)
- @keywords now accepts new entries to add context aware messages
- Add the ability to generate graphiz's dot format representation of the
  solver's problem
- pkg search now default on showing the comments of of the matched packages
- Lots of bug fixes and code cleanup
- Plenty of new bugs
2016-08-27 21:57:05 +00:00
khorben
a4e9115319 Update pkg to version 1.5.6
From the commit log, since 1.5.4:
- More fixes to pkg-check.8
- Important improvements in the pkg check manpage
- HBSD: fix format specifier in libpkg's pkg_vets(...)
- Fix libexpat buffer overflow: CVE-2015-1283
- Always use sqlite3_column_int64 for reading integers from the db
- Add a new configuration item to define custom HTTP User-Agent
- Don't attempt to set file ownership when INSTALL_AS_USER is set
- zsh-completion: updated all of the currently handled subcommands
- Fix typo s/conpact/compact/
- Fix two typos in pkg_vset(), to correspond to pkg_vget()'s code
- Implement AUTOCLEAN
- Clean up some grammar and formatting in pkg.conf(5).
- Update zsh completion
- Do not distribute generated source files
- Add a random delay to pkg-audit when invoked without a TTY
- Fix display of <root directory>
2016-08-27 21:10:59 +00:00
bsiegert
3d38b5140e Revbump packages using Go for Go 1.7 release. 2016-08-20 09:21:44 +00:00
adam
77b8ed74db Revbump after graphics/gd update 2016-08-03 10:22:08 +00:00
rillig
2498c7154b Updated pkglint to 5.4.7.
Changes since 5.4.6:

* Allow conditionals of the form "${var1}" == "${var2}"
* Check for indentation of .include directives
* Check arbitrarily complex license conditions
* General code cleanup
2016-07-10 21:24:47 +00:00
rillig
9290c4a9bd Fixed pkglint warning. 2016-07-10 13:31:54 +00:00
rillig
2e8432c3d3 Fixed some pkglint warnings. 2016-07-10 13:28:41 +00:00
rillig
c1acc57ca0 Updated pkglint to 5.4.6.
Changes since 5.4.5:

* Fixed shell command parser to correctly parse redirections
* Added type definitions for several variables
* Allowed version numbers to be single digits
2016-07-10 11:37:27 +00:00
rillig
9c9916dff2 Updated pkglint to 5.4.5.
Changes since 5.4.4:

* Removed autofix for variables in BUILDLINK_TREE, since that change
  affects multiple variables in the file and therefore cannot be done
  automatically
* Fixed PLIST sorting to not lose lines
2016-07-09 13:16:43 +00:00
wiz
ad0031c15e Remove python33: adapt all packages that refer to it. 2016-07-09 13:03:30 +00:00
rillig
bc46f036d4 Updated pkglint to 5.4.4.
Changes since 5.4.3:

* Improved detection for undocumented patches from Git
* Added warning about unnecessary space after variable names
* Lots of internal housekeeping
2016-07-09 09:43:48 +00:00
wiz
3861dc08b6 Mention that everything mentioning perl should be bumped for perl bumps.
Bump version.
2016-07-09 06:40:08 +00:00
wiz
73716d23de Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. 2016-07-09 06:38:30 +00:00
rillig
d8d8a2c0be Updated pkglint to 5.4.3.
Changes since 5.4.2:

* Variables like ${VAR_${OTHER_VAR}} are no longer checked for
  use/define mismatch
* The check for plural variable names has been removed
* The type of variables called *DESTDIR is no longer guessed to be a
  directory name
* The check for unknown shell commands is disabled in Makefile
  sections that depend on OPSYS
* The experimental hand-written shell parser has been replaced with
  a Yacc-generated one
* Meta packages don't need a LICENSE
* When PKGNAME is defined in terms of ${DISTNAME:S/from/to/:tl}, more
  modifiers (like :tl) are handled properly
* When the MAINTAINER or OWNER of a package is not the current user,
  a warning is printed for modified files
* The check for share/applications/*.desktop has been disabled, since
  pkglint would need to inspect the file's actual contents to see
  whether desktopdb.mk must be included or not
* SUBST_CLASSES may also be SUBST_CLASSES.NetBSD
* Loosened the usage restrictions for several variables, e.g. many
  variables that may be appended in a Makefile may also be set
  unconditionally
* PKG_OPTIONS_VAR must be of the form PKG_OPTIONS.*
2016-07-07 12:09:26 +00:00
agc
b5419701b7 catch up with the new opaque pgpv_t and pgpv_cursor_t structures in libnetpgpverify. 2016-07-06 21:00:04 +00:00
wiz
45ac525338 Handle mk/ocaml.mk like a buildlink3.mk file.
Helps with bumping ocaml dependencies. Requested by jaapb.

Bump version.
2016-07-01 21:50:20 +00:00
jperkin
c43e8d9265 The recent libarchive update changed the library major. Increase the
ABI depends and perform a PKGREVISION bump for dependents.

Noticed by OSX binary package users.
2016-07-01 17:55:22 +00:00
wiz
6d90854bd9 Remove last traces of bmp here too.
Was not installed for a long time and recently removed from NetBSD base.
2016-06-30 17:42:04 +00:00
wiz
10596c46f3 Fix typo in github handling.
Bump version.
2016-06-26 19:03:33 +00:00
joerg
34599e08d1 pbulk-base-0.53:
After processing the tree-scan job, reassign jobs to all idle clients.
Before, this was only necessary at the very start of the build.
2016-06-23 15:07:39 +00:00
joerg
f1950d6871 Disable maintainer mode for libarchive. 2016-06-21 12:23:01 +00:00
joerg
9fb46a3b44 pbulk-base-0.52:
Move the tree iteration logic from the master to the client. This
matters primarily when using the additional package list in the top
level makefile and ensures that the client configuration is used
consistently.
2016-06-20 17:54:43 +00:00
wiz
712ddf30b3 USE_CROSSBASE is deprecated, remove it.
Bump version.
2016-06-19 18:03:29 +00:00
wiz
0ea9ee7bd5 USE_CROSSBASE is deprecated, remove it.
Bump version.
2016-06-19 18:03:05 +00:00