Commit graph

796 commits

Author SHA1 Message Date
joerg
63f9c9b7cc Include basic package creation logic in the bootstrap version of
pkg_install. Use this with PKG_COMPRESSION=none to convert all of the
bootstrap to USE_DESTDIR=yes.
2015-12-27 12:36:42 +00:00
joerg
b67e0b390e Refactor Makefiles slightly to remove redundancy between normal and
bootstrap build.
2015-12-27 12:18:20 +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
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
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
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
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
wiz
d12016c572 Add lppl-1.0 here as well. 2015-08-02 07:25:15 +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
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
agc
3f1bdca4aa Fix format string in pkg_add's help message - from J. Lewis Muir
Bump version number for pkg_install to 20150508
2015-05-08 16:29:37 +00:00
wiz
2000d3d19c Add lppl-1.2, an older version of lppl-1.3c, and add it to default-allowed
like the 1.3c version.
2015-05-08 10:37:32 +00:00
wiz
8ab127a536 Add the GUST Font Source License (GFSL) from
http://ctan.org/license/gfsl

Since this is basically the LaTeX Project Public License with one clause
removed, add it to the default acceptable licenses.
(lppl is fine with both OSI and FSF and already allowed.)
2015-05-02 13:21:37 +00:00
joerg
73982d96a0 Since CONFIG_*_OVERRIDE replaces the automatic list, add ${WRKSRC}
manually.
2015-04-21 00:28:19 +00:00
rodent
a8a7c601b6 default_acceptable_licenses+=w3c 2015-04-19 22:19:15 +00:00
jperkin
7243ee4d58 Ensure we do not try to regenerate the fetch catpage. Avoids possible
issues on platforms where nroff isn't native.
2015-04-02 23:06:34 +00:00
pho
763c3057a4 Add AC_SYS_LARGEFILE to files/configure.ac
Given that libarchive is built with large file support, pkg_install
needs it too. Otherwise libarchive and pkg_install may see different
definitions of types such as struct stat, resulting in a runtime
failure on some platforms (especially Darwin 9):

  % bmake package
  => Creating binary package /usr/pkgsrc/pkgtools/pkg_install/work/.packages/pkg_install-20141227.tgz
  pkg_create: cannot write to archive: tar format cannot archive this (type=00)

The reason why this was unnoticed until now is that libarchive's
"configure" has just been regenerated with Autoconf 2.69. Prior to
2.69, AC_SYS_LARGEFILE did nothing significant on Darwin so there was
no actual inconsistency between libarchive and pkg_install, which was
just coincidental.
2015-01-22 18:15:39 +00:00
jperkin
ce0d0b89c4 Move -larchive from the general LIBS variable to each program that needs it,
prevents us from attempting to link the inplace libarchive against itself.
Fixes build on systems which do not include a native libarchive, and avoids
possible issues on systems which do.

Tested on SmartOS (no native libarchive) and OS X in both builtin and pkgsrc
configurations.  Ok joerg@.
2015-01-22 09:19:47 +00:00
adam
3827883f7e Fix building with libarchive v3; cosmetics 2015-01-20 19:15:56 +00:00
wiz
a5661f099c Fix example, noted by htodd. 2015-01-11 22:53:44 +00:00
wiz
98b6b1422a Restore pkg_admin 'add' command; it's still used by bootstrap in one place. 2015-01-02 14:26:16 +00:00
wiz
009a078654 regen (using 'mandoc -Ios=pkgsrc') 2014-12-30 15:17:28 +00:00
wiz
627d407a75 Remove pkg_views support, second part: infrastructure. 2014-12-30 15:13:19 +00:00
schmonz
fd482f2fbd Spell "vulnerabilities" correctly. 2014-12-05 14:31:07 +00:00
prlw1
7db652e722 typos 2014-11-05 14:40:01 +00:00
wiz
4008ea7f61 New sentence, new line. Bump date for recent changes. 2014-10-28 06:58:22 +00:00
cheusov
b9b7b500a1 IGNORE_OSABI was renamed to CHECK_OSABI 2014-10-28 02:08:38 +00:00
cheusov
65d779ade2 New config parameter IGNORE_OSABI was added to pkg_install.conf.
If it is "yes", pkgtools/osabi package does not check kernel version.
Oked by bouyer@
2014-10-27 00:12:47 +00:00
wiz
0a3fb5512c Add openssl license and allow it by default, since it's FSF approved:
http://www.gnu.org/licenses/license-list.en.html#OpenSSL
2014-05-15 09:59:09 +00:00
wiz
ec5c09997e Add cecill-2.1 and allow it per default.
OSI-approved, see
http://opensource.org/licenses/CECILL-2.1
2014-04-16 14:41:21 +00:00
wiz
6129186986 Fix typo. 2014-03-19 21:45:12 +00:00
wiz
5a2384ea22 Add European Union Public Licence and add it to default allowed licenses,
since it's OSI-approved:
http://opensource.org/licenses/EUPL-1.1

ok@ gdt
2014-03-18 15:11:38 +00:00
ryoon
2cadd68123 Fix build under SCO OpenServer 5.0.7/3.2 2014-03-14 22:09:04 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
richard
e0578d6253 Add special case for dependency checking in 'non-bootstrap' builds,
don't redefine 'pkg_info' if it already exists.
This is notably for pkg_rolling_replace -u in case pkg_install
was revbump'd and openssl happens to be in PKG_DEFAULT_OPTIONS.
2014-02-21 18:18:49 +00:00
tron
c64e9eb269 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:18:26 +00:00
jperkin
9582311a77 Add CATMAN_SECTION_SUFFIX support. 2013-09-12 11:03:10 +00:00
wiz
ea73376087 Fix pkg_info -X segfault when last entry wasn't terminated with \n.
Addresses PR 48207.
2013-09-12 07:28:28 +00:00
wiz
083eff9c30 Add missing files to 'make distclean'.
Fix a typo.
2013-09-11 14:39:21 +00:00
khorben
d915c85610 Fixed installation of signed packages. Some variables part of struct
signature_archive were not initialized properly, therefore randomly failing
in the verify_signature_read_cb() callback.

Partly closes PR pkg/48194; pkgsrc needs to be updated as well.

"please commit" agc@

XXX pull-up to netbsd-6
2013-09-11 14:10:05 +00:00
jperkin
9f9d79bc6f pkg_install-20130902: Fix 'pkg_add -f'.
Remove incorrect return value when in force mode, which was causing pkg_add
to exit with failure even though the operation completed successfully.  This
also fixes the case where 'pkg_add -uf' would leave an update in an
inconsistent state.
2013-09-02 10:28:44 +00:00
jperkin
8be7ef8937 Remove files inside pkgdb directory before trying to remove the directory
itself.  Copied from similar code in pkg_delete.

This fixes the issue when an +INSTALL script fails but the pkgdb directory
couldn't be removed, leading to an inconsistent state.
2013-08-21 11:46:02 +00:00
obache
21da31ed9a * BSD/OS and OSF/1 are also missing `z' modifier support for printf(3) format.
* bare `zu' modifier is used, it should be replaced with `PRIzu` instead.

Fixes crash with `pkg_admin rebuild' on platforms missing %z support,
PR pkg/48070.
2013-08-03 11:45:14 +00:00
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
wiz
c7ccfda434 Add cc0-1.0-universal here as well. 2013-07-09 21:06:12 +00:00
riastradh
418ec8861c Remove now-redundant include of bsd.prefs.mk. 2013-06-05 18:20:55 +00:00
obache
5a8fb24367 require bsd.prefs.mk before using condition. 2013-06-05 04:24:58 +00:00
martin
cea747688b var_get_memory():
if no eol is found in the string we set "next" to NULL, assign it
to "buf" and then check the loop condition by dereferencing it - which
does not work well.
Change the loop condition to first check for buf == NULL.
2013-05-17 07:27:29 +00:00
riastradh
be08346321 Fix cross-build of pkgtools/pkg_install.
Can't execute the newly built tools if they were cross-built.

(This is not especially useful until we do cross-bootstrap, though.)

ok agc
2013-05-10 00:49:00 +00:00