Commit graph

4853 commits

Author SHA1 Message Date
rillig
e69d03c647 Updated pkglint to 5.1.
Changes since 5.0:
* Fixed --autofix mode (it hadn't been enabled before)
* The --autofix mode now advertises itself when it can do something
* The --autofix mode now adds missing empty lines to patch files
  (only in the leading text section, not in the actual patch content)
* Made --autofix code simpler ({prepend,append}{Before,After} was not
  really needed)
* Fixed unit tests to report invalid command lines
* Added some more unit tests
2015-12-02 21:46:46 +00:00
joerg
b3bce06c92 Revert. Committer was explicitly asked to not commit that change as it
is incompletely and incorrect.
2015-11-30 22:38:16 +00:00
asau
bcc1b4be8b pbulk-base-0.51: Allow symbolic host names in distributed case. 2015-11-30 20:46:57 +00:00
leot
cfa412435e Use Cwd::realpath() for the -[KMP] flags.
Fixes PR pkg/50444 reported by dholland@ and also fixes various possible
problems when relative paths are used.
2015-11-25 20:46:28 +00:00
rillig
b4012ece37 Explicitly added conflict with pkglint4 2015-11-25 16:53:18 +00:00
rillig
217c926dfb Reimported pkglint-4.518 from pkgtools/pkglint as pkglint4
The Perl version of pkglint (pkglint<5.0) runs on all platforms that
are supported by pkgsrc. Not so the Go version (pkglint>=5.0).

To support development of packages on all platforms, this version is
provided, and it will be supported equally. Its output differs a bit
from pkglint>=5.0, but the basic checks are the same.
2015-11-25 16:42:21 +00:00
rillig
c5a35047e9 Updated pkglint to 5.0
Notable changes include:
* The whole code has been rewritten in Go
* It is much faster, especially in recursive mode
* The code has unit tests, providing examples of use
* Some new explanations for existing warnings
* Some adjustments to previous warnings
2015-11-25 13:29:07 +00:00
jperkin
dfe991b398 Remove mk/find-prefix.mk usage from the pkgtools category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:52:47 +00:00
rillig
57b98fe5a9 Updated pkglint to 4.158
This mainly fixes wrong patch detection when checking distinfo.
2015-11-24 14:17:23 +00:00
agc
4b8071eb87 Add and enable gimme 2015-11-22 21:58:36 +00:00
agc
fc39ee60da Import gimme-20151122, a tool for building packages in a chroot, into the
packages collection.

	Sometimes there's a need to just build a package without any of the
	installed pre-requisites being used. Or building a one-off package
	which can then be used elsewhere.

	This package helps to produce other binary packages, using pkg_comp to
	build them in a chroot.  The chroot is populated either by cloning the
	current operating system, or by using pre-existing binary sets.  As an
	example:

		# gimme -c vip

	will clone the current operating system on this host, and use it to
	make a chroot in which the sysutils/vip package will be built.

	Similarly, to build packages and all their pre-requisites afresh,
	something like

		# gimme -c mercurial git-base

	would be used.
2015-11-22 21:57:38 +00:00
agc
0e9ef95c9a Update pkg_comp to 1.38nb1
pkgsrc uses the "BUILD_TARGET" definition internally as the primary
target for building in a package's WRKDIR.  It defaults to "all".
So pkgsrc cd's to ${WRKDIR} and does a "make ${BUILD_TARGET}"

pkg_comp also wants to use the same "BUILD_TARGET" definition
internally for itself to guide the builds for making binary packages.
It's done at a higher level than the pkgsrc definition.  It defaults
to "package".

The use of the same name for two different purposes can cause
pkg_comp to fail to build packages. This commit renames the pkg_comp
definition to be "BUILD_PKG_COMP_TARGET".

With this change in place, my pkg_comp builds now complete successfully.

Bump PKGREVISION for the BUILD_PKG_COMP_TARGET fix
2015-11-21 23:10:27 +00:00
sevan
8cc6505bf0 Add files from OpenBSD 5.8-current Xenocara
Bump rev
2015-11-17 11:18:38 +00:00
cheusov
eb93653c29 Update to 0.14.1: fix in pkg_update_plan (nih install) 2015-11-07 18:20:49 +00:00
tron
8db0dea517 Add missing FreeType 2 include file "ftfntfmt.h". This fixes the build
of the "cairo" package under Mac OS X.
2015-11-07 09:16:08 +00:00
cheusov
a70c7102d2 Version 0.14.0, by Aleksey Cheusov, Thu, 5 Nov 2015 23:45:38 +0300
All messages shown to user are sent to stderr

  nih:
    - CACHEDIR is initialized in nih.default.conf (thanks to wiz@).
    - IPv4-only for download is not the default anymore (thanks to gdt@).
    - Binary package checksums are kept in pkg_summary.txt.
    - Preliminary support for multiple repositories.
    - Clean-ups for function "fetch".
      It just runs either fetch_wget or fetch_ftp and does nothing else.
    - Atomic update for pkg_inst_summary.txt was implemented
      (thanks to wiz@ for pointing out!).

  nih history:
    - Option -p was introduced.

  nih list:
    - Fix: bug in -f (unexpected line: `Updating pkg_inst_summary...`).

  nih remove:
    - "nih remove" without arguments uninstalls leaf packages.
      This is correct according to the documentation.
      "nih install" works the same way (thanks to wiz@ for the report).

  nih install:
    - Missing dependencies are fixed in a different way.
      When nih finds the missing dependency it tries to install
      the dependency and then update the installed package.
      This is more correct way to fix consequences of 'pkg_delete -f'.
    - Fix: the rule "do not change PKGPATHs of installed packages"
      was broken in 0.13.0 (thanks to wiz@ for the report!).
    - Fix: packages are no longer installed as a dependency by mistake.
    - Fix: flag "automatic" is unset correctly
      ("pkg_add -UD" does not change it).
    - Fix: "fake" package creation.
    - New option -w was added for ignoring non-existing package.
    - New option -f was added for getting package list from a file.
    - If "package could not be found", nih exits with non-zero status.
    - Configuration variables yes_install and yes_remove_pkgs were removed.
      New option -Y was added as a replacement (See NIH_OPTS for details).
    - Unnecessary variable "cksums" was removed.
    - Better explanation for update plan build failures.

  pkg_update_plan:
    - New option -w was added for the same purpose as in "nih install".
    - Man page was updated.

  nih.1:
    - A number of typos were fixed (thanks to wiz@).
    - All configuration variables were documented.
2015-11-05 21:26:58 +00:00
sevan
b066c875bf Unaccounted for library name found on Bitrig-current
Reviewed by wiz@
2015-11-04 14:21:02 +00:00
agc
771abda008 Add SHA512 digests for distfiles for pkgtools category
Existing SHA1 digests verified and found to be the same on the machine
holding the existing distfiles (morden).  All existing SHA1 digests
retained for now as an audit trail.
2015-11-04 00:38:39 +00:00
joerg
bc48e3b92f pbulk-base-0.50: Don't go into master mode if there is nothing to do. 2015-11-03 19:06:47 +00:00
rillig
04612c3d27 Fixed patch detection in distinfo files
Up to now, all files whose names started with "patch-" were considered
patch files. This was wrong, since e.g. devel/patch also has distfiles
with the same naming pattern.
2015-11-02 18:45:31 +00:00
rillig
8242b7cab3 Removed checkline_spellcheck
It didn't provide much technical value, and its error message was not
polite anyway.
2015-10-27 21:23:36 +00:00
rillig
4e0408301a Removed unused load_shared_dirs 2015-10-27 21:10:56 +00:00
kamil
9e4890aa49 p5-Perl4-CoreLibs as DEPENDS fits better the package needs 2015-10-26 23:26:27 +00:00
kamil
53d895a997 Pull-in p5-Perl4-CoreLibs as the dependency of getopt.pl
PKGREVISION++
2015-10-26 20:38:09 +00:00
joerg
b7008c73ea Drop EOLed PostgreSQL 8.4 and 9.0 from the supported list of PG
versions.
2015-10-24 21:18:12 +00:00
joerg
ad40275cd0 Fix missing change from the machine the scan change was tested on. 2015-10-22 19:57:47 +00:00
joerg
f05a09bbf6 pbulk-base-0.49:
When shutting down the master after all jobs are done, send a zero
length request to the clients and wait a second for them to shutdown the
connection. Calling shutdown on the server side doesn't avoid TIME_WAIT
as originally intended.
2015-10-21 23:03:17 +00:00
jperkin
dcdecb80a0 OpenBSD and derivatives define MACHINE_ARCH in sys/param.h to "amd64" which
overrides our attempt to set it to "x86_64" and ensure consistency across
platforms.  Work around this by setting it using PKGSRC_MACHINE_ARCH.

Confirmed to fix the issue and not break a variety of other platforms by
Sevan, and approved under duress by Joerg.
2015-10-20 08:18:12 +00:00
wiz
d63cd6aece Bump version for recent fixes. 2015-10-19 09:43:59 +00:00
joerg
4bdd56fb47 pbulk-0.59: Belatedly bump PBULK_CONFIG_VERSION to ensure that
sync_packages etc are present.
2015-10-18 13:32:13 +00:00
sevan
e8f50eac16 Do not check for or include sys/param.h
This resolves issues on platforms which MACHINE & MACHINE_ARCH is explicitly
defined, such as OpenBSD/amd64 & Bitrig/amd64 where we would like to build with
MACHINE_ARCH=x86_64 but can't as a platform check fails when installing
packages after bootstrap
pkg_add: Warning: package `digest-20121220' was built for a platform:
pkg_add: OpenBSD/x86_64 5.8 (pkg) vs. OpenBSD/amd64 5.8 (this host)

Tested on
Mac OS X Tiger/PowerPC
OpenBSD
Bitrig
Solaris 10/SPARC
FreeBSD 10.2-RELEASE & 11-CURRENT
DragonFlyBSD
Debian 8
OmniOS

Reviewed by joerg@
2015-10-15 13:31:27 +00:00
joerg
2ef22f9a96 pbulk-0.58: Create All if it doesn't exist yet. Noticed by asau@ 2015-10-15 11:47:46 +00:00
rillig
56cbdf7755 Fixed one of the unit tests 2015-10-15 03:01:14 +00:00
rillig
fe7728fe6f Reverted part of 1.888 (perlcritic --stern)
The warning that "return undef" is bad must be taken with great care.
Although perlcritic explains it a lot and warns to think before simply
fixing it, it doesn't mention that in some cases a simple "return" means
"return '0'", which had happened here.
2015-10-15 03:00:56 +00:00
rillig
52076b148e Moved the code for checking shell commands into its own file 2015-10-15 02:09:49 +00:00
rillig
aa35a841f1 Code cleanup for loading files that must exist 2015-10-15 01:57:47 +00:00
rillig
aa818f2e89 Replaced distinfo algorithm MD5 with SHA512
* Removed needless check for MD5; all packages have been migrated already
* Made the code simpler by not relying on state transitions
* Allowed the newly introduced SHA512 to be mentioned in distinfo
2015-10-15 01:27:00 +00:00
sevan
759694bbd3 Add the latest version of fontconfig freetype library from OpenBSD 5.8-current
Add EGL & Khronos components to MesaLib list
2015-10-12 18:47:21 +00:00
rillig
6f8badfc31 Fixed some of the errors reported by perlcritic in --stern mode 2015-10-11 21:23:34 +00:00
rillig
1f786c286a Fixed errors reported by perlcritic in --gentle mode 2015-10-11 21:06:20 +00:00
rillig
b5eafd8d08 Moved the code for checking patch files into its own file
The pkglint.pl file has grown pretty large, which makes it hard to under-
stand. Therefore it is useful to split it into reasonable parts.

The code for checking patch files is such a part since it is independent
of the rest of pkglint, and its specialized routines take quite a bit
of space.
2015-10-11 19:20:17 +00:00
rillig
1f2eefc645 Fixed runtime error introduced in version 1.884
The variable $m had been dereferenced although it was undefined.
2015-10-11 18:42:34 +00:00
rillig
f584304659 Removed the code that checked for buildlink.mk files from before 2009 2015-10-11 18:34:23 +00:00
rillig
dd623e73fc Performance: replaced some regular expressions with string functions
Using regular expressions provides more uniform code, but at the cost of
higher runtime, since Perl doesn't optimize them away, even if they are
very simple, like those emulating the startswith() or endswith() functions
that other languages provide.
2015-10-11 18:16:50 +00:00
rillig
69b198e830 Performance: removed some needless string interpolations 2015-10-11 14:31:36 +00:00
rillig
47a721473b Migrated pkglint to Perl 5.12. 2015-10-11 12:31:43 +00:00
tron
23b1190a88 Reset maintainer 2015-10-11 10:56:43 +00:00
rillig
785d2bafe0 Removed redundancy from the patch file checker's data structures 2015-10-11 08:15:31 +00:00
rillig
096f0eef41 Made checking of patch files a little faster
The transition table is using a two-stage lookup now. The redundancy of the
data structure will be removed in a follow-up commit.
2015-10-11 08:04:04 +00:00
rillig
e2cfc9075a Fixed warning for using github.com in MASTER_SITES. 2015-10-11 07:27:12 +00:00
ryoon
b141232e29 Recursive revbump from textproc/icu 2015-10-10 01:57:50 +00:00
tnn
b15ba42987 simplify previous; _ is included in \w 2015-10-05 13:16:44 +00:00
tnn
4a4e222dd6 fix regexps for patch names: '+' and '_' are allowed characters
Fixes false checksum mismatch errors from lintpkgsrc -m.
Bump version to lintpkgsrc-4.90.
2015-10-05 13:12:12 +00:00
gdt
5aafdaef9e Revert previous.
This warning isn't supposed to fire on macro code, so this is either
something subtly odd in pkgin or broken in OS X's clang.  This still
needs fixing, but in a way that's more limited to the problematic
platform.
2015-09-27 16:41:12 +00:00
gdt
1775bf7047 Disable -Werror to avoid build failures.
At least on OS X with clang, pkgin fails to build because of extra
parens around ==.  See https://github.com/NetBSDfr/pkgin/issues/64
for details.

This seems to be a new issue with something in the pkgsrc build
environment (bsd makefiles or compat libs), not in pkgin proper, but
pkgin's use of bsd makefiles leads to Werror.
2015-09-26 12:15:28 +00:00
tnn
b32f026f53 The warning message contained herein is not relevant.
pbulk has safeguards against mismatching config version.
2015-09-20 16:23:30 +00:00
wiz
71725af9ef Handle Makefile parse errors better.
Bump version.

Requested by joerg@
Reviewed by leot@
2015-09-15 08:36:07 +00:00
bouyer
e7926e4be7 Update to 0.98:
Add drm_fourcc.h and radeon_surface.h to libdrm's includes. Needed to
build MesaLib with the native Xorg.
2015-09-13 12:27:42 +00:00
joerg
907b09319a pbulk-0.57: Reorder build phases slightly to make better use of destdir
builds. Introduce hooks for sending bulklog and package explicitly the
master. The default bulklog action is a nop and the package action
mirrors the normal package step, i.e. copying to ${packages}/All and
adding the category symlinks.
2015-09-13 11:45:36 +00:00
leot
b61484a30e Add vera-ttf-license and (previously forgotten) info-zip to reflect
pkgsrc/mk/license.mk current DEFAULT_ACCEPTABLE_LICENSES.
2015-09-13 11:25:52 +00:00
joerg
68bfe531ae When copying the meta directory, preserve time stamps. Otherwise changes
won't be picked up correctly.
2015-09-12 23:04:30 +00:00
joerg
980bf344a9 Make it easier to override the (b)make hard-coded in mkpatches and
patchdiff. It is often useful to have tools in one prefix and reach-over
patch creation with a different make and different WRKOBJDIR settings,
e.g. when developing in a bulk build environment.
2015-09-08 18:47:01 +00:00
joerg
6adcaa3a2a pbulk-0.55: Add option for running the checksum phase unprivileged. This
makes it easy to use DISTDIR=${WRKDIR}/.distfiles or so. Not the default
as it changes the required permissions on ${DISTDIR}.
2015-09-08 17:35:06 +00:00
joerg
267f3d0186 Allow having bulklog and bulklog.old as separate mount points.
When removing bulklog.old fails, try to remove everything but meta and
copy the content.
2015-09-08 17:33:26 +00:00
joerg
84a557a460 Be nicer to broken musl headers that insist on providing warning
headers.
2015-09-08 13:57:36 +00:00
dholland
2984cb92af Per PR 43356, remove references to rules for 'make subdir' for any
subdir in SUBDIRS, as that feature was removed in 1999.

Bump package date to 20150908 as this is a change, even if it's a
fairly minor change.
2015-09-08 04:41:04 +00:00
sevan
b92680fda1 We currently detect $MACHINE_ARCH on OpenBSD/amd64 & Bitrig/amd64 as amd64.
Bitrig uses ELF on amd64 & arm and does not have any legacy dependency on a.out.
Remove if statement to check $MACHINE_ARCH is x86_64 in-order to set $OBJECT_FMT
to ELF, preventing $OBJECT_FMT being set to a.out by mistake.

Reviewed by joerg@
2015-09-07 15:07:54 +00:00
jperkin
edfd9dba4a Explicitly link against -lbz2 and -lz to satisfy libnetpgpverify
dependencies, we can no longer rely on implicit linking from libarchive
on certain platforms.  Fixes build on FreeBSD and DragonFlyBSD.
2015-09-07 09:06:04 +00:00
jperkin
112e171d27 Ensure netpgpverify configure is called with CONFIG_SHELL. Fixes
build on legacy Solaris.
2015-09-06 18:38:21 +00:00
jperkin
c7d2a19537 Add ${VARBASE}/db/pkgin to OWN_DIRS. 2015-09-04 19:37:13 +00:00
sevan
0efda134b9 Remove references to a.out.
Add the necessary PIC flags for ELF shared libraries which is now assumed by default.

Reviewed by joerg@ wiz@
2015-09-04 11:50:47 +00:00
joerg
619f051608 Make __nbcompat_unvis13 static, it is not part of the interface
contract. Reorder to avoid using it before it is defined. ANSIfy.
2015-09-03 09:05:54 +00:00
kamil
21bf314b92 Add AC_GNU_SOURCE to configure.ac and regenerate autotools
This fixes build on recent ArchLinux with GCC 5.2 and GLibc 2.22.

Approved by <wiz>
2015-09-01 23:17:51 +00:00
jperkin
747bcb0822 Implement inline package signature verification.
This replaces calling out to an external gpg command for verification
with inline verification using the security/netpgpverify library.

Bump version to 20150901.
2015-09-01 12:14:05 +00:00
jperkin
d376915bde Update bootstrap-mk-files to 20150831. Changes:
* Reduce unnecessary diffs in Darwin, Linux, and SunOS mods.

  * Sync WARNS flags on SunOS.

  * Remove obsolete modifications to bsd.sys.mk and sys.mk on Darwin.  This
    primarily brings in PROG_CXX support.

Tested in bulk builds on all modified platforms.
2015-08-31 09:03:19 +00:00
sevan
bec87d2284 x86_64 is not referenced anywhere in the file, comment appears above if
statement regarding sparc64. s/x86_64/sparc64.
2015-08-29 21:59:18 +00:00
wiz
9fd12c9531 Jason W. Bacon reports he needs -fPIC on CentOS x86_64.
Add it as CPPFLAGS.Linux.
2015-08-21 07:40:39 +00:00
jperkin
27085577b1 Update pkgin to version 0.9.3. Changes:
* Ensure we aren't copying overlapping memory regions.  Issue found by
   Matthias Ferdinand.

 * Free libarchive resources after use.

 * Various WARNS and build cleanups.

Tested on Linux (now builds on Ubuntu 12.04), OSX, SmartOS and NetBSD.
2015-08-18 19:31:29 +00:00
wiz
c7383780db Bump all packages that depend on curses.bui* or terminfo.bui* since they
might incur ncurses dependencies on some platforms, and ncurses just bumped
its shlib.
Some packages were bumped twice now, sorry for that.
2015-08-18 07:31:00 +00:00
wiz
0eb141f110 Bump PKGREVISION for ncurses shlib bump. 2015-08-17 17:11:19 +00:00
jperkin
b80e538302 Pick up configure version bump. Ride previous version. 2015-08-17 16:05:26 +00:00
jperkin
00d4d1af57 Update pkgin to version 0.9.2. Changes:
* Fix -Wempty-body issue, noticed by joerg.
2015-08-17 09:40:11 +00:00
wiz
eeea55b8ce Remove references to xpkgwedge and USE_XPKGWEDGE flag.
Bump version.
2015-08-17 08:18:31 +00:00
wiz
0a84432cf6 Remove xpkgwedge, not needed any longer. 2015-08-17 08:15:40 +00:00
jperkin
7a744f9636 Update pkgin to version 0.9.1. Changes:
* Fix off-by-one NUL handling in pkg_summary.  Problem noticed by yrmt,
    caused occasional failures on OSX.
2015-08-13 15:16:55 +00:00
jperkin
33a1582556 Use MASTER_SITE_GITHUB. 2015-08-13 10:06:53 +00:00
jperkin
426b9716c0 Update pkgin to version 0.9.0. Changes:
* Significantly reduce RAM requirements for both "install" and "update",
    headline number is "pkgin install gcc47" on SmartOS/x86_64 reduces from
    383MB to 14MB, as well as being significantly faster, especially on
    slower hardware.  See my blog post at
    <http://www.perkin.org.uk/posts/reducing-ram-usage-in-pkgin.html> for
    more details.

  * Handle pkg_add signature verification failures.

  * Support pkg_summary.xz if available.

  * Don't switch to parsable output when stdout isn't a tty, which broke
    various automation tools.

  * Integrate patches/patch-external_progressmeter.h

Tested on NetBSD, OSX, and SmartOS.
2015-08-13 10:05:19 +00:00
szptvlfn
713e1a7859 add missing libX11-xcb.a 2015-08-12 11:34:00 +00:00
wiz
d12016c572 Add lppl-1.0 here as well. 2015-08-02 07:25:15 +00:00
jperkin
422a978dea Update x11-links to 0.97
* Add multilib ftconfig.h headers from EL6.
2015-07-31 08:51:31 +00:00
sevan
7d2818bbd3 Use details about variants when applicable instead of common names, this means
that the illumos variants such as SmartOS & OmniOS will be labelled accordingly
rather than being lumped in under the SunOS 5.11 banner.

This was put together with the help of Joerg @ pkgsrcCon 2015

Reviewed by joerg@ bsiegert@
2015-07-25 15:14:54 +00:00
ryoon
2d78d2e610 Update to 0.96
* Include freetype2 header file.
2015-07-22 19:06:18 +00:00
ryoon
92fa3c632b Update to 0.95
* Add recent NetBSD/amd64 7.99.20 X libraries.
2015-07-21 12:51:42 +00:00
khorben
69374e98f9 Remove the "-s" option from the usage screen of pkg_add(1)
It is not available anymore (since 1.17).
2015-07-20 13:59:44 +00:00
wiz
27a963a9cd If URL is not recognized as "proper" github URL, don't die, but just print
a warning and continue.
Bump version.
2015-07-15 19:01:44 +00:00
wiz
2f30023e84 Rename zpl to zpl-2.0 to make space for zpl-2.1.
Switch all packages currently referencing zpl to zpl-2.0.
Add zpl-2.1.
Add zpl-2.1 to default-allowed per FSF.
2015-07-15 18:19:54 +00:00
dholland
80442937d2 Remove bogus nroff logic inserted for SunOS and AIX in 2004 -- it
seems that the logic intended at the time was inverted; but it's not
necessary anyway. PKGREVISION -> 5
2015-07-10 17:01:16 +00:00
jperkin
a8002412f4 cwrappers-20150707: handle .dylib extension and Darwin linker flags. 2015-07-07 15:00:25 +00:00
jperkin
a076d14ba7 mksandbox-1.5: Mount /run on newer Linux for dynamic resolv.conf 2015-07-05 11:47:14 +00:00
joerg
11d2712a27 Remove USE_X11BASE and X11PREFIX. 2015-07-04 16:18:28 +00:00