Commit graph

4984 commits

Author SHA1 Message Date
rillig
5bbfc26161 Refactored the code into separate packages. No functional changes. 2017-01-29 14:27:48 +00:00
mrg
4957e8673c add dri.pc and egl.pc (the latter isn't used ... yet?).
bump version.
2017-01-25 02:51:35 +00:00
mrg
725a6bd4b9 add missing xorg present and Mesa support. bump revision.
allows tigervnc to build.

thanks to dmcmahill for testing.
2017-01-24 14:25:00 +00:00
agc
30b55df38e Convert all occurrences (353 by my count) of
MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
2017-01-19 18:52:01 +00:00
rillig
7e20045b7f Updated pkglint to 5.4.17.
Changes since 5.4.16:

* allow multiple definitions for MASTER_SITES in the package Makefile,
  without triggering a warning about wrong ordering.
  See https://mail-index.netbsd.org/tech-pkg/2017/01/18/msg017698.html
2017-01-18 23:05:43 +00:00
rillig
1548b3ba55 Updated pkglint to 5.4.16.
Changes since 5.4.15:

* updated vardefs from mk/defaults/mk.conf from v1.118 (2006) to v1.269
  Gone:
  * PKG_SUFX
  * USETBL
  * PKGSRC_SHOW_PATCH_ERRORMSG
  * USE_XPKGWEDGE
  * PKGVULNDIR
  Adjusted:
  * USE_GAMESGROUP
  * BIN_INSTALL_FLAG -> BIN_INSTALL_FLAGS

* fixed license parsing to be more realistic
  (the previous version didn't handle parentheses correctly)

* lots of housekeeping
  * moved some code to separate packages, allowing re-use
  * separated Line checks into LineChecker type
  * separated MkLine checks into MkLineChecker type
  * made Line an interface, for further refactorings
2017-01-17 22:37:27 +00:00
joerg
da2debe4f4 cwrappers-20170112: Fix typos. From jperkin. 2017-01-12 14:56:35 +00:00
tron
328332d442 Fix build under Mac OS X where "pax" doesn't seem to automatically
create the target directory. We therefore do that manually.
2017-01-11 23:20:13 +00:00
sevan
a699bc814e Update message to match the "Checking for security vulnerabilities in installed packages"
section in the pkgsrc guide.
2017-01-09 07:01:33 +00:00
roy
f46104fdb7 Move to curses framework. 2017-01-03 18:45:15 +00:00
jperkin
5067dbcc65 Pass --without-lz4 to libarchive bootstrap, avoids issues on Gentoo where
the native lz4 is found.
2017-01-03 17:53:14 +00:00
rillig
54117d3486 Updated pkglint to 5.4.15.
Changes since 5.4.14:

* Definitions for CONF_FILES should always come in pairs (pkg/37284)
2017-01-01 16:41:37 +00:00
rillig
277fb0b88c Cleaned up and refactored code.
The getopt and pkgver code have been extracted to separate packages to make
them reusable.

Several other functions have been moved to make the structure easier to
understand:

* dir.go and main.go have been moved to pkglint.go
* utility functions from pkglint.go have been moved to mkline.go

Now pkglint.go contains only high-level code.
2017-01-01 15:15:47 +00:00
rillig
91cd52a840 Fix build warning on DragonFly.
Fixes pkg/51713
2017-01-01 14:47:45 +00:00
wiz
7f84153239 Add python-3.6 to incompatible versions. 2017-01-01 14:43:22 +00:00
joerg
114f76a09f pbulk-0.65: Add basic support for specifying chroot'd clients by
absolute path. Introduce hook for setting up the chroot
(client_prepare_chroot) similar to client_prepare_action for ssh
clients.
2016-12-18 22:59:35 +00:00
joerg
60337d0d7a pbulk-0.64:
Ensure to reset port after each loop, so that "client" and "client:port"
notation can be mixed.
2016-12-18 22:41:12 +00:00
joerg
da31c10d9c pbulk-0.63:
Introduce a separate client-prepare script. The default configuration
runs the renamed client_prepare_action for each scan/build client once,
dropping duplicates in the list. Clients are prepared in parallel, but
the master waits for all before starting the actual scan. Make
bulkbuild-restart re-prepare the clients, i.e. in case they have a
pkgsrc tree in a local tmpfs.
2016-12-18 22:38:16 +00:00
joerg
16ca8d25dd pbulk-0.62: cleanup if either the initial pkg_add round or the package
upload failed.
2016-12-18 09:36:38 +00:00
rillig
31e4b26be2 Updated pkglint to 5.4.14.
Changes since 5.4.13:

* Pkglint can fix $(VARIABLES) in parentheses to ${VARIABLES} in braces
  automatically
2016-12-17 13:35:32 +00:00
joerg
98971cd2cc Fix format string. Bump version. 2016-12-16 00:01:04 +00:00
rillig
ca7de210ff Updated pkglint to 5.4.13.
Changes since 5.4.12:

* Added check for unintended # comments, especially in HOMEPAGE
* Added check for quotes in COMMENT
* Fixed hardcoded package versions for PHP, Python, Lua, etc.
* Code cleanup in the tests
2016-12-13 00:58:06 +00:00
wiz
7135fcadcc Revert "Specify readline requirement on 30 packages"
Many of these definitely do not depend on readline.
So there must be a different underlying problem, and that
should be tracked down instead of papering over it.
2016-12-12 14:22:01 +00:00
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