Commit graph

4961 commits

Author SHA1 Message Date
joerg
2c269c6435 Mark command_child_exec as noreturn. Fix typo. 2016-12-09 22:25:28 +00:00
joerg
04b730106d Hide regeneration rule for people with messed up timestamps. 2016-12-08 16:58:50 +00:00
bsiegert
4870dcea7e Revbump Go packages after 1.7.4 update. 2016-12-04 16:29:58 +00:00
rillig
055bab28e4 Updated pkglint to 5.4.12.
Changes since 5.4.11:

* warn when PKGSRC_COMPILER is compared with "==", since it may be a chain
  of compilers
* warn about listing Python .egg-info files directly in PLIST files, since
  lang/python/egg.mk takes care of this
* code cleanup: unify Error{0,1,2,3} into Errorf to make understanding the
  code easier; use interface{} for MkLine data; use regular expression
  instead of handwritten matching code, since one line is easier to read
  than 50
2016-12-04 15:28:36 +00:00
ryoon
36ed025474 Recursive revbump from textproc/icu 58.1 2016-12-04 05:17:03 +00:00
marino
938dfe006b Specify readline requirement on 30 packages
Solves:
/usr/libexec/binutils225/elf/ld.gold: error: cannot find -lreadline

The missing specification is obvious on DragonFly because there's
no publically accessible version of readline in base.
2016-12-04 03:51:14 +00:00
dbj
9a7cbbf7a0 add nbcompat.h include to get uint32_t
fixes build on darwin
2016-11-28 04:56:37 +00:00
joerg
9d6c2d7484 cwrappers-20161125: If spawn.h and posix_spawnp exist, prefer them over
vfork and execp.
2016-11-27 11:46:45 +00:00
joerg
62e657277f PR pkg/50275: Explicitly disable the locking type here. If shlock is not
a platform tool, it will introduce cyclic dependencies otherwise, e.g.
via sysutils/checkperms.
2016-11-25 22:46:40 +00:00
marino
c9a3e49932 pkgtools/pkg: Upgrade version 1.9.99.3 => 1.99.4
- Add progress when fetching (number of files to fetch)
- Improved messages about locked packages
- Return 1 when a user rejects the proposed plan
- When dealing with configuration files '@config' never overwrites
  untracked files
- Warn everyone about deprecation of @dirrm and @exec
- Deduplicate metadata loading code
- pkg register now understands context aware messages
2016-11-21 14:04:35 +00:00
marino
aec68ef18b pkgtools/pkg: Upgrade version 1.8.7 => 1.9.99.3
This is a development version, but it contains many fixes for NetBSD and
Linux.  It's better than the release version here.
2016-11-20 01:18:46 +00:00
marino
575470394d pkgtools/pkg: Fix build on recent NetBSD 7.99
After the binutils import, the RPATH is not getting set on -current
versions of NetBSD.  This BUILDLINK_TRANSFORM from wiz should resolve
that issue.
2016-11-18 14:10:18 +00:00
spz
5a1d0ee4bd add unicode to DEFAULT_ACCEPTABLE_LICENSES 2016-11-18 09:43:39 +00:00
marino
44ed6fe6c2 pkgtools/pkg: Ensure funopen prototypes are imported on libfetch's ftp.c
This is similar to recent fix on http.c
2016-11-15 17:48:56 +00:00
marino
a031c0656c pkgtools/pkg: Follow recent PKG_DBDIR changes in bootstrap script
The default for PKG_DBDIR changed from /var/db/pkg to ${LOCALBASE}/pkgdb
Accordingly, the pkgng location is changing from /var/db/pkgng to
${LOCALBASE}/pkgng-db
2016-11-15 15:42:21 +00:00
marino
74bb64aa0b pkgtools/pkg: Bump PKGREVISION after previous commit 2016-11-14 19:38:11 +00:00
marino
7f254b4536 pkgtools/pkg: bring in most of pkgsrc-synth improvements
Several updates in pkgsrc-synth work are applicable to pkgtools/pkg so
let's bring them in.  Some changes:

1) fetching segfault fixed
2) change VULNXML URL from FreeBSD ports to pkgsrc version
3) Fix vulnerability report URLs (404) to valid ones (DragonFlyBSD.org)
4) Add ability to build debuggable version
5) Fix PKG_DBDIR default setting for pkg (honor mk.conf)
6) Fix another segfault on NetBSD when pkg(8) attempts to read elfhints.
   This is only valid on FreeBSD and DragonFly, so bring in upstream
   fix to block on other platforms.
7) Set as BOOTSTRAP_PKG and block USE_CWRAPPERS for bootstrap reasons
8) realign SUBST* definitions
2016-11-14 18:59:12 +00:00
rillig
ebbdc6dad9 Updated pkglint to 5.4.11.
Changes since 5.4.10:

* Replaced regular expression with hand-written matching code, since
  it is 30 times as fast.
* Reduced number of syscalls by remembering os.Lstat results and
  CVS/Entries.
* Reduced number of syscalls by querying the current user only once.
* Added warning for comparing ${PKGSRC_COMPILER} == "clang", which
  should rather be ${PKGSRC_COMPILER:Mclang}.
* Added variable definitions for NOT_PAX_ASLR_SAFE and NOT_PAX_MPROTECT_SAFE.
2016-11-14 01:08:23 +00:00
rillig
95724ea46c Updated pkglint to 5.4.10.
Changes since 5.4.9:

* Check for mismatch between conditional and unconditional includes
  of other files (mostly depending on PKG_OPTIONS or OPSYS)
* Check that PLIST files contain "man" instead of "${PKGMANDIR}"
2016-11-01 21:40:25 +00:00
bsiegert
e095d6272f Revbump packages depending on Go after the Go 1.7.3 update. 2016-10-29 08:59:46 +00:00
marino
938915d38c pkgtools/pkg: fix installation of conf files (forgotten PLIST delta)
Use of OWN_DIRS alleviates use of @pkgdir.  Thanks to jperkins
and ultimately wiz for the suggestion.
2016-10-28 23:39:10 +00:00
marino
9a555265f0 pkgtools/pkg: fix installation of conf files (better)
Use of OWN_DIRS alleviates use of @pkgdir.  Thanks to jperkins
and ultimately wiz for the suggestion.
2016-10-28 23:37:53 +00:00
marino
3d7455043c pkgtools/pkg: fix installation of conf files
The CONF_FILES are never installed if their target directories don't
already exist due to other previous installation.  This adds several
@pkgdir entries to ensure the CONF_FILES installation can always succeed.

While here, simplify the post-install target.
2016-10-28 19:35:30 +00:00
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