History log of /freebsd-10.1-release/usr.sbin/pkg/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
287873 16-Sep-2015 delphij

Implement pubkey support for pkg(7) bootstrap. [EN-15:18]

Approved by: so

287146 25-Aug-2015 delphij

Fix local privilege escalation in IRET handler. [SA-15:21]

Fix OpenSSH multiple vulnerabilities. [SA-15:22]

Disabled ixgbe(4) flow-director support. [EN-15:14]

Fix insufficient check of unsupported pkg(7) signature methods.
[EN-15:15]

Approved by: so

272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


269937 13-Aug-2014 gavin

Merge r268728 from head:

When we fail to extract the pkg binaries (for example, / is read-only),
give a more helpful error message.


268918 20-Jul-2014 bapt

MFC: r263650, r263686

Add missing dependency on libm


268896 19-Jul-2014 bapt

MFC: r263648, r264789, r266636

This brings:
- schema validation
- xpath-like interface for ucl objects

Adapt pkg(7) to the new libucl API


263624 22-Mar-2014 bdrewery

MFC r263181:

Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.


263621 22-Mar-2014 bdrewery

MFC r263180:

Fix ABI from /usr/local/etc/pkg.conf not being respected.


263020 11-Mar-2014 bapt

r262400,r262401,r262418

Sync pkg(7) with head


261144 25-Jan-2014 bapt

Implicit include of sys/queue.h instead of relying on gelf.h/libelf.h to bring it
Newer version of gelf.h and libelf.h does not include sys/queue.h anymore

Submitted by: kaiw


259613 19-Dec-2013 bdrewery

MFC r259266:

Fix multi-repository support by properly respecting 'enabled' flag.

This will read the REPOS_DIR env/config setting (default is /etc/pkg
and /usr/local/etc/pkg/repos) and use the last enabled repository.

This can be changed in the environment using a comma-separated list,
or in /usr/local/etc/pkg.conf with JSON array syntax of:
REPOS_DIR: ["/etc/pkg", "/usr/local/etc/pkg/repos"]

Approved by: bapt (mentor)


259073 07-Dec-2013 peter

Hoist all the mergeinfo up to the root in preparation for enforcing merges
to the root only. All MFC's were rerecorded to the root.

Going forward, if an MFC includes mergeinfo, it will need to be made to
the root and committed from the root. Merges with --ignore-ancestry
or diff | patch can go anywhere.

The mergeinfo in HEAD is in a bad state from years of neglect and manual
tampering and this was branched into 10.x. This confuses the coalescing
code and prevents it from doing its job.

Approved by: re (gjb, implicit)


258773 30-Nov-2013 gjb

MFC r258550:
Do not create pkg.conf, as it is not necessary anymore
and packagesite is deprecated

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation


258755 29-Nov-2013 bdrewery

MFC r258348:

Document 'enabled' as boolean instead of string.

Approved by: bapt (implicit)
Approved by: re (gjb)


258126 14-Nov-2013 glebius

Merge r257945 from head:

Do not use just freed memory.

Approved by: re (kib)


257797 07-Nov-2013 bdrewery

MFC r257668:

Use proper capitalization for FreeBSD.org

Approved by: bapt
Approved by: re (gjb)


257632 04-Nov-2013 bdrewery

MFC r257505:

Add -f support to 'pkg bootstrap' and 'pkg add' to force installation
of pkg(8) even if already installed.

This is useful if you somehow messup pkg(8) and need to reinstall from
remote with it already being registered in the pkg(8) /var/db/pkg database.

Also add some sanity checks to 'pkg add'.

Approved by: bapt
Approved by: re (glebius)


257573 03-Nov-2013 bdrewery

MFC r257378,r257400,r257402,r257440:

Add a pkg(7) manpage for bootstrap

Approved by: bapt
Approved by: re (gjb)


257571 03-Nov-2013 bdrewery

MFC r257377:

Add a 'pkg bootstrap' command which will bootstrap pkg(8) without
forwarding any command to it after installation.

Approved by: bapt
Approved by: re (gjb)


257353 29-Oct-2013 bdrewery

MFC: r256770,r257142,r257145,r257146,r257147,r257148,
r257149,r257150,r257158,r257159,r257164,r257168,
r257193

- Support checking signature for pkg bootstrap from remote
and for 'pkg add ./pkg.txz'

- Be verbose on where pkg is being bootstrapped from.

- Add support for reading configuration files from /etc/pkg.
For now only /etc/pkg/FreeBSD.conf is supported.

- Add test package signing key fingerprint into /etc/keys/pkg/trusted.

- Disable fingerprint checking by default for now as the official
packages are not yet signed.

Approved by: bapt
Approved by: re (glebius)


257328 29-Oct-2013 bdrewery

MFC r257051:

Add support for using "pkg+http://" for the PACKAGESITE.

pkg 1.2 is adding this support as well. This should help
lessen the confusion on why the default SRV PACKAGESITE
does not load in a browser.

Approved by: bapt
Approved by: re (glebius)


257309 29-Oct-2013 bapt

MFC: r256968, r256971, r256978

Improve SRV records support for the pkg(8) bootstrap:
- order srv records by priorities
- for all entries of the same priority, order randomly respect the weight
- select the port where to fetch from respect the port provided in the SRV
record

Allow to bootstrap by doing pkg add ./a/path/to/a/pkg_package.txz

Approved by: re (glebius)


256998 23-Oct-2013 bdrewery

MFC r256450:

Rename libbsdyml to libyaml, make private, and bump
SHLIB_MAJOR to 1.0

Approved by: bapt
Approved by: re (glebius)


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


255468 11-Sep-2013 bapt

Cleanup elf macros

Only define EF_MIPS_ABI when not already supplied
Remove old now unused ARM macros

Reported by: imp
Approved by: re (kib)


255457 10-Sep-2013 bapt

Add support to detect arm vs armv6

There are two different versions of the ARM ABI depending on the
TARGET_ARCH. As these are sligntly different a package built for
one may not work on another. We need to detect which one we are on
by parsing the .ARM.attributes section.

This will only work on the ARM EABI as this section is part of the
ABI definition. As armv6 only supports the ARM EABI this is not a
problem for the oabi.

Older versions of libelf in FreeBSD fail to read the
.ARM.attributes section needed. As armv6 is unsupported on these
versions we can assume we are running on arm.

Submitted by: andrew
Approved by: re (delphij)
Obtained from: pkgng git


253755 28-Jul-2013 bapt

Fix detection of arm ABIs

Submitted by: andrew
Obtained from: pkg git


251560 09-Jun-2013 bapt

Fix a bad calloc(3) call

MFC after: 2 weeks


248133 10-Mar-2013 antoine

Fix a typo in DPADD.


248033 08-Mar-2013 bapt

Fix bootstrapping pkgng by not appending "/latest/" to PACKAGESITE.

Reporter by : Alexander Yerenkow (via irc)


247843 05-Mar-2013 bapt

choose in priority the allocated ABI if any to do the ${ABI} substitution in PACKAGESITE

Reviewed by: bdrewery


247841 05-Mar-2013 bapt

Add the ability to correctly read pkg.conf is exists.

Only look for boostrap useful options:
- PACKAGESITE
- ABI
- MIRROR_TYPE
- ASSUME_ALWAYS_YES

While here makes PACKAGESITE expand the ${ABI} variable.
Allow to deactivate any SRV record look up (MIRROR_TYPE=none)
Use the same mechanism as for pkgng itself: first get configuration out of
environment variable and fallback on pkg.conf if exists.

Reviewed by: bdrewery


247060 20-Feb-2013 bapt

Do not use deprecated functions from libarchive


246790 14-Feb-2013 bapt

In case of failure of the pkg boostrap advice the user to either change the
PACKAGESITE they use or install from ports directly indicating where the port
is localted in the port collection

Submitted by: kientzle


245412 14-Jan-2013 bapt

Directly uses calloc(3) instread of malloc(3) + memset(3)

Reported by: Jeremy Chadwick <jdc@koitsu.org>
MFC after: 3 days


244639 23-Dec-2012 matthew

Remove extraneous space and new-line.

Submitted by: pjd, gcooper
Approved by: bapt
MFC after: 2 weeks


244608 23-Dec-2012 matthew

Third time's the charm. pkg -N output needs to go to stderr.

Approved by: bapt
MFC after: 2 weeks


244594 22-Dec-2012 matthew

Switch from 'pkg -n' to 'pkg -N' as the test for pkgn activation
status. '-n' is already used extensively elsewhere in pkgng (to mean
'dry-run') and this reduces the potential confusion

Submitted by: eadler
Approved by: bapt
MFC after: 2 weeks


244553 21-Dec-2012 matthew

In preparation for making 'pkg -n' the one true method of determining
whether a system has been configured to use pkgng, cause /usr/sbin/pkg
recognise a -n option and exit with a failure code when the pkg port
is not installed.

Approved by: bapt
MFC after: 2 weeks


243883 05-Dec-2012 bapt

if PACKAGESITE url scheme is not 'file://', always try to revolv SRV records and
use them if any. It allows the bootstrap to use directly pkg.FreeBSD.org instead
of pkgbeta.FreeBSD.org

MFC after: 1 month


241737 19-Oct-2012 ed

More -Wmissing-variable-declarations fixes.

In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.


239664 24-Aug-2012 bapt

Fix confirmation logic when detecting a tty

Reported by: mjg


239663 24-Aug-2012 bapt

- change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)
- if not on a tty prompt about the missing pkg(8) but default on 'no' except if
ASSUME_ALWAYS_YES is set

MFC after: 2 days


238461 15-Jul-2012 kan

Make pkg bootstrap program ask for confirmation before proceeding.

The previous behaviour was to silently download and install the pkg
package, without ever telling user about what it was doing and why.

Discussed with: bapt
Reviewed by: kib


235726 21-May-2012 bapt

Add missing \n when generating pkg.conf

Reported by: beat
Approved by: des (mentor)
MFC after: 1 day


234870 01-May-2012 bapt

- close the open file after fetching
- create a default /usr/local/etc/pkg.conf

Approved by: des (mentor)


234351 16-Apr-2012 bapt

- Use _PATH_TMP instead of hardcoded /tmp
- more style(9) fixes
- some refactoring
- better error detection
- Add the DPADD to Makefile

Submitted by: Garrett Cooper <yanegomi@gmail.com>
Approved by: des (mentor)


234322 15-Apr-2012 bapt

- Fix style(9) bugs + inconsistencies

Submitted by: marius
Approved by: des (mentor)


234315 15-Apr-2012 bapt

Do not do double initialisation
style(9) says for (;;) not while (1)

Reported by: culot
Approved by: des


234313 15-Apr-2012 bapt

add usr.sbin/pkg which is a bootstrap tool for pkgng.
it respects PACKAGESITE, PACKAGEROOT, and a new environment variable ABI (if a user want to use a different API from the base one for its packages)
it has no man page on purpose to avoid hidding the pkg(8) man page from the pkgng package.
for now uses pkgbeta.FreeBSD.org as default mirror to find its package
it respects MK_PKGTOOLS

Approved by: des (mentor)