Commit graph

171 commits

Author SHA1 Message Date
Baptiste Daroussin
119d718d67 Add a version script to only public expose public function in libpkg
PR:		190742
Submitted by:	feld
With help from:	jilles
2014-06-11 15:04:35 +00:00
Bryan Drewery
9acf7ecf00 - Fix build with upcoming default -fPIE in head
pkg 1.3 deals with this better.
2014-05-30 15:30:32 +00:00
Antoine Brodin
7e36c656f6 Fix packaging on head, .MAKE.FreeBSD_UL has been retired from bmake
With hat:	portmgr
2014-05-29 06:24:08 +00:00
Baptiste Daroussin
33c20959d8 Add the ability to specifiy the file where the ABI string will be determined from 2014-04-03 13:30:39 +00:00
Antoine Brodin
fb61d858df Detect invalid packages that list directories as a file in plist
Exp-run by:	bdrewery
With hat:	portmgr
2014-04-01 18:34:03 +00:00
Bryan Drewery
b0b8ff6067 - Update to 1.2.7
Changes:
  - Only fallback to YAML if UCL parsing fails
  - pkg2ng: Hide warnings about @mtree, @stopdaemon, @comment
    @display and @conflicts
  - Fix escaping issues with COMMENT
  - pkg add: Fix -A to properly mark package as automatic
  - pkg2ng: Fix over NFS
  - pkg2ng: Show message while analyzing shared libraries
2014-03-15 23:41:54 +00:00
Baptiste Daroussin
bade912339 Update comment and description for pkg(8)
it is not new generation anymore and it is the current package tool
While here remove "for FreeBSD" as it also works on other OSes

Reported by:	peter
2014-02-24 10:56:34 +00:00
Bryan Drewery
e5166e09fc - Update pkg and pkg-devel to 1.2.6
This update includes a security update for possible arbitrary code
  execution from package manifest parsing. All users are advised to
  upgrade ASAP. The base pkg(7) was never affected by this. [1]

Changes:
  * Fix libyaml head-based buffer overflow [1]
  * Fix pkg info -E support for ports, which namely affected
    net/openldap* usage. [2]
  * Fix packages registering themselves as dependencies [3]
  * Bash autocompletion fixes [4]
  * autoremove: Don't try to remove locked packages
  * Support 'pkg bootstrap -f', which will force a reinstall of pkg
    on FreeBSD 10.0+
  * Fix %t timestamp formatter with %{...%} modifiers [5]
  * pkg info: Show date installed
  * Add $daily_status_security_pkgaudit_quiet to control 410.pkg-audit.in
    output verbosity level
  * Add an error when trying to update repository and none are defined [6]
  * Fix typos in manpages [7]

Security:	CVE-2013-6393 [1]
Reported by:	secteam (delphij) [1]
PR:		ports/184797 [2]
Reported by:	Pavel Timofeev <timp87@gmail.com> [2], many
Submitted by:	smh@ [3]
Submitted by:	brd@ [4]
Submitted by:	Jamie Landeg Jones [5]
Submitted by:	Rodrigo Osorio [6]
Submitted by:	Michael Gehring, wblock [7]
With hat:	portmgr
MFH:		2014Q1
2014-02-01 21:12:47 +00:00
Baptiste Daroussin
eeedb5abf8 Update to 1.2.5:
- Manpage improvements
- fix $auditfile in pkg audit periodic script
- Fix repo-*.sqlite being corrupted when pkg update is interrupted by the user
- pkg add now tells the version of the package missing
- Strop decoding/encoding all fields, only scripts and description are now encoded/decoded
2014-01-13 14:19:29 +00:00
Baptiste Daroussin
b2fac3aa96 Fix sefault while cleaning up
It only happens if one has list or key/value list in pkg.conf
a workaround to update is to comment it out the time to upgrade

Reported by:	many
Pointyhat to:	bapt (again)
2013-12-16 11:16:41 +00:00
Baptiste Daroussin
70dc3770c8 Update to 1.2.4
Changes:
- Fix segfault in pkg audit -F [1]
- Fix multiple segfault when using eventpipe [2]
- Fix REPOS_DIR being appended instead of overwritten when modified from pkg.conf

Reported by:	many [1]
Reported by:	kmoore [2]
2013-12-16 08:00:15 +00:00
Baptiste Daroussin
0041687f76 Update to pkg 1.2.3
Changes:
- Workaround a bug in bsd.*.mk on FreeBSD 8.x
- Fix a pkg repo segfault
- Document aliases in pkg.conf(5)
- Be more verbose when refusing a repository configuration file
- Sync libucl with upstream (bug fixes)
- Fix a fd leak in pkg repo
- Fix memory leaks due bad usage of libarchive
2013-12-10 15:44:42 +00:00
Bryan Drewery
36eebfc58a - Fix build on 8.x
With hat:	portmgr
2013-12-06 16:14:27 +00:00
Baptiste Daroussin
d6b482fe1c Update to 1.2.2
Changelog:
- Fix pkg which returns bogus non-zero exit status on success
- Better check libucl returns
- Fix bad build system resulting in broken binaries on arm and ia64
- Update pkg.conf documentation
- Add manpage for pkg config
- OOTB support for dragonfly
- Lots of fixes in libucl
- Fix pkg register complaining about shared libraries not found
- Do not resume a jailed or chrooted pkg(8) upgrade
- Document the plist format (in pkg-create(8))
- Pet mandoc -Tlint
- Add manpage for pkg_repos(3)
- Fix dependencies losing portepoch information
- pkg-[r]query: Add %q to display architecture
- Fix pkg add allowing to install package with missing dependencies
- Fix description being stored escaped

Special thanks to mat@ (for bug busting) and cognet@ (tracking down 2 issues
on arm and as a side effect fixing on ia64
2013-12-06 15:35:13 +00:00
John Marino
2600ce4b43 ports-mgmt/pkg*: Prepare for alternative PORTSDIR support
With the PKG_PORTSDIR make argument set, Release 1.2.2 will properly build
pkg when PORTSDIR doesn't equal the default /usr/ports, as is the standard
case with DragonFly.

Additionally, pkg(8) and pkg-static(8) man pages are conditionally edited
to remove references to the -j option when libjail isn't found on the
system.  This extra-patch should never be used on FreeBSD.
2013-11-29 18:34:34 +00:00
Baptiste Daroussin
a00c8be88c Release pkg 1.2.1
Changes:
- Fix pkg rquery always printing index like lines
- Fix pkg -vv suggestion so it print something actually usable
- Fix shlib's -P and -R options were swapped round.
- Replace broken pkg_repos_count() by pkg_repos_total_count() and pkg_repos_activated_count()
- Fix parsing of options (in manifest)
- pkg add http:// now fetch to a temporary location and cleanup after itself
- Fix generation of the manifest digest
- Properly calculate how many packages where removed
- Fix support for dependencies with the same name (grrrr Fix you port if they have package name collision !!!!)
- Fix pkg info -R in case multiple dependencies has the same name
2013-11-27 18:26:48 +00:00
Baptiste Daroussin
3022fc034b First errata:
- Fix pkg rquery always printing index like lines [1]
- Fix pkg -vv suggestion so it print something actually usable [2]

Reported by:	gjb [1]
Reported by:	ohauer [2]
2013-11-26 17:39:40 +00:00
Baptiste Daroussin
579d16acec Welcome pkg 1.2 final
Changelog:
- Improved build system
- Allow to hook plugins, before closing the local db if it was opened in RW mode
- Allow ARCH to be printed by pkg info
- New pkg bootstrap subcommand that is the counter part of the pkg(7) bootstrap subcommand
- Use port specified in the SRV entries to connect to a given mirror
- Properly support srv priority/weigh when ordering mirrors
- Lots of spelling/grammar fixes
- Broken incremental pkg repo support was removed.
- ABI is now checked again using globs:
  * a 'noarch' package should just specify: ARCH: 'freebsd:*'
  * a package working on both i386 and amd64: ARCH: 'freebsd:9:x86:*'
- new pkg config subcommand to allow direct query of options
- options can now have a description
- pkg repo can now take new arguments:
  pkg repo [path] [rsa_key|'signing_command: <command>']
  This allow calling external command to perform the signing and
  pass the checksum to be signed in the command stdin.
- in case pkg info is querying a file or is a single direct match
  query then default on -f
- pkg info -q is now equivalent of pkg info -qa
- expat is now always bundled (for vuxml)
- vuxml is now the default source for pkg audit
- Accept empty/comment only configuration files
- Print a pkg name only once - even if multiple vulns were found - when using -q
  in pkg audit
- pkg info now default on glob matching
- Support for pkg+foo url scheme where foo can be (http, https, ftp).
- pkg add is now able to read the packages from a pipe or a non-regular
  file '-' is an alias for stdin, this also works from pipes, fifos,
  unix domain sockets etc.
- New 'fingerprint' kind of signature:
    if a repository is declared using the fingerprint type of
    signature, a fingerprint directory should also be provided.
    Inside that fingerprint directory should be 2 directories:
    trusted and revoked.  Those directories will contains files (in
    yaml/ucl format) containing the fingerprint of the trusted
    certificated and the revoked ones:

    --- begins --
    function: sha256
    fingerprint: an_hex_representation_of_the_fingerprint
    --- ends ---

    All unknown attribute will be silently ignored to allow extending
    in the future.

    It also support multiple signatures inside the catalog. the
    catalog should provide the signature in the following form:
    name.sig
    name.cert

- packagesite in pkg.conf is deprecated in favour using dedicated
  repository configuration files
- REPO_DIR is now a list instead of a simple string
- New git like aliases to allow creating custom commands
- Allow using '?' operator in pkg query expressions
- Fix ssh:// support
- New PKG_SSH_ARGS to allow passing custom arguments to ssh command
  used for the ssh:// protocol
- Do not generate catalogs in pkg 1.0 format anymore.
- YAML is replaced by UCL format:

  Both formats are really simular. pkg(8) will falls back on parsing YAML
  when the UCL parser fail. And will emit a warning to the
  user showing a syntax that is compatible with both YAML and UCL.
  More informations on UCL: https://github.com/vstakhov/libucl
- Dependencies on library is now automatic via pkg register and pkg
  create
- Auto upgrade of pkg(8) now restart the upgrade process automatically
- Lots of bug fixes discovered by Coverity Scan
- New debug level traces
- Bug fixes in zsh completion
- rquery can now take a -I argument to output index like lines (needed for
bsdconfig)
- Skip self upgrade with -F is passed
- Autodetect if libelf should be used bundled
- Lots of bug fixes

Thanks a lot to all people allowed this release to happen, may that be from providing
code, ideas, submitting bugs, documenting or just supporting.
2013-11-26 14:49:04 +00:00
Eitan Adler
ed175fb997 Move WITH_DEBUG check below b.p.m so it works with WITH_DEBUG_PORTS
Approved by:	portmgr (bapt, maintainer)
2013-11-23 06:43:14 +00:00
Bryan Drewery
5f801cfb4a - Update to 1.1.4_10 ahead of 1.2 update with critical fixes
Changes:
 * When using SRV mirrors, order the mirrors by the advertised
   priority and weight. This should fix 'pkg update' using mirror
   A while 'pkg upgrade' and 'pkg fetch' end up using mirrors
   A, B and C, resulting in checksum errors due to not all mirrors
   being updated at the same time.
 * Add support for 'pkg+http://' URL scheme and deprecate
   'http://' when using SRV mirroring. This is only a cosmetic change
   that encourages users to not try loading the PACKAGESITE into
   a browser to view it.

Discussed with:	bapt
With hat:	portmgr
Obtained from:	upstream git
2013-11-19 17:30:14 +00:00
Bryan Drewery
f4df7b1171 - Support WITH_DEBUG
- Add shebangfix for bash completion

PR:		ports/183277
Submitted by:	mandree (based on)
With hat:	portmgr
2013-11-13 12:00:06 +00:00
Bryan Drewery
982a938e19 - Force pkg to not use base libbsdyml, which was available in head|stable/10
for some months. libbsdyml is being removed for 10-R. The bundled libyaml
  will be used instead.

Discussed with:	bapt
With hat:	portmgr
2013-10-13 22:33:48 +00:00
Baptiste Daroussin
db16c975cd Fix pkg register -i (staged pass mode) not properly respecting @owner/@group
Reported by:	naddy
2013-10-05 17:52:42 +00:00
Bryan Drewery
0b87b36a60 - Fix spelling of "Upgrades" since it keeps being reported
With hat:	portmgr
2013-09-25 13:40:58 +00:00
Bryan Drewery
adcf207c9d - Fix staging of meta ports that have no files, such as
mail/squirrelmail-plugins

Discussed with:	bapt
With hat:	portmgr
2013-09-24 21:43:43 +00:00
Baptiste Daroussin
93fdaf74af Fix @exec/post-install script execution with pkg register -i [1]
Fix MTREE not properly being extracted with pkg register -i [2]

Reported by:	garga [1]
		bdrewery [2]
2013-09-24 12:26:43 +00:00
Baptiste Daroussin
207a8c47d0 Add uidfix to allow packaging as a user 2013-09-24 11:37:43 +00:00
Bryan Drewery
f2d8aeaa63 Remove 'cat PKG-MESSAGE' for staging 2013-09-23 11:31:33 +00:00
Baptiste Daroussin
210bc2e1a3 Add the manpages to plist, missed in previous commit
Reported by:	ak
2013-09-23 10:07:03 +00:00
Baptiste Daroussin
cf001a2025 Use stage. 2013-09-23 05:59:26 +00:00
Baptiste Daroussin
16f65335a1 Add NO_STAGE all over the place in preparation for the staging support (cat: ports-mgmt) 2013-09-20 22:36:49 +00:00
Baptiste Daroussin
b8cd572806 Fix build on mips
Fix analyzing elf when package/registering from a stage directory
2013-09-19 20:04:51 +00:00
Bryan Drewery
6393831e4d - Fix crash when registering some linux ports, such as
games/linux-candycruncher-demo

With hat:	portmgr
Reported by:	mva
2013-09-05 11:39:57 +00:00
Bryan Drewery
345dcd8bec - Rename ARM patch to proper name and remove unneeded newvers.sh patch
as the PORTREVISION is passed in MAKE_ENV

With hat:	portmgr
2013-09-05 11:36:06 +00:00
Alex Kozlov
d4041784dc - Remove MAKE_JOBS_SAFE variable
Approved by:	portmgr (bdrewery)
2013-08-14 22:35:50 +00:00
Baptiste Daroussin
e144a95e3b Add proper support for detect new arm eabi
Bump port revision.

Submitted by:	andrew@
2013-07-17 12:11:59 +00:00
Bryan Drewery
e2825cdfcf - Update to 1.1.4
Changes:
 * Fix crash when opening repository in some cases
 * Fix build with -Werror
 * Fix 'pkg install [-f] pkg' not finding results
 * Fix 'pkg upgrade -f' always wanting to upgrade pkg first
 * Fix 'pkg install -R' always wanting to install pkg first
 * Fix backwards compatibility for 1.0-built packages for
   tracking shlibs. This may cause some packages to be
   reinstalled after the repository is updated.
 * Fix pkg (upgrade|fetch|install) -r <repo> crash
 * Fix crash when specifying invalid repo with -r
2013-07-06 11:29:18 +00:00
Bryan Drewery
c606c07468 - Fix build with -Werror 2013-06-30 14:43:56 +00:00
Bryan Drewery
730af60405 - Update to 1.1.3
Changes:

 - Fix repository signing verification with new format during update
 - Disable terminal title setting
 - Fix %a/%k returning true/false instead of 0/1
 - Various memory/fd leaks have been fixed
 - Fixed pkg self-upgrade detection
 - ZSH completion fixes
 - Several crashes fixed

With hat:	portmgr
2013-06-28 22:26:28 +00:00
Bryan Drewery
ea1e0ca975 - Fix 'pkg query %a' returning true/false instead of 0/1.
This was showing as a warning in portmaster/portupgrade and could
  have caused packages to be registered incorrectly automatic/non-automatic
  on upgrade.

Reported by:	many
Obtained from:	upstream git
2013-06-27 03:46:59 +00:00
Baptiste Daroussin
a94a3c07fe Update to 1.1.2
Changes:
- Fix install|upgrade -f not executing post-install scripts [1]
- Fix bad size calculation on i386 for pkg delete (always say 4G will be freed)
- Fix pkg query '%sh' now properly converting to human number on i386
- Fix zsh completion missing ']' [2]
- Fix pkg stats in case no remote repositories are configured [3]

Reported by:	ohauer [1], Kimmo Paasiala via github issue #520 [2], rene [3]
2013-06-25 10:08:49 +00:00
Baptiste Daroussin
1e3f0fdb2b Update to 1.1.1:
Changes:
- Fix an pkg crashing on i386
- Fix a regression on the output of pkg version
2013-06-24 13:02:06 +00:00
Baptiste Daroussin
e758ac528f Update to 1.1 final
Changes since 1.0.X:
- new simpler and more reliable solver
- shared libraries are now always tracked
- ssh:// is supported as a protocol to distribute packages (needs pkg 1.1+ on
  the server hosting the packages)
- multirepository is no longer considered experimental and works by default.
- incremental update of the catalog (only if the repository was created by pkg
  1.1+)
- simplification of the public API
- stabilisation of the public API (we will now try to keep it stable and if
  change are needed there will be deprecation time before removal of some old
  functions)
- new experimental pkg convert (can convert from and to legacy pkg database)
  pkg2ng now uses pkg convert (still recommanded to use pkg2ng)
- new pkg lock/unlock to prevent any manipulation of a given package (no
  upgrade,delete,etc)
- improved UI (now you can see the progress of an upgrade what is left to be
  done)
- new pkg annotation to allow one to add annotations (free form key/value) to a
  package)
- pkg audit is now able to directly parse the vuxml native format and not only
  the compact version
- pkg -vv now shows all available options and their current settings
- pkg -vvv now shows a description of all the available options
- pkg info now automatically considers the query as globbing if * is in the
  requested pattern
- new hook plugin interface (allows users to create hooks that get called at
  anytime during and upgrade/installation/deletion of a package)
- new cmd plugin interface (allows users to create new sub command available for
  pkg)
- pkg register can now register a port installation in the legacy database
  format
- repository can be defined in simple yaml files
- Explain why a package is being reinstalled
- A package can now be marked to only be upgraded from a given repository via
  annotations
- install and upgrade will show from which repository packages are taken from
- old/unused 'informations' field has been removed in favor of using
annotations
- pkg repo produce a repo.txz in pkg 1.0 (legacy) fromat

Internal:
- massive usage of hash tables (uthash), which simplifies a lot of the code,
  and improves performances
- lots of optimisation in plist and manifest parsing
- lots of optimisation in loading packages (mmap used when possible)
- lots of cleanup in memory usage
- regression test framework is now ready (using atf) regression test are slowly
  being added and populated.
2013-06-24 06:02:21 +00:00
Bryan Drewery
70fe959214 - Update to 1.0.14, bringing minor fixes before the 1.1 release.
Changes:
  - 'pkg update' fix [already in port]
  - Crash fix on i386 [already in port]
  - Fix for periodic scripts [1]

PR:		ports/179723 [1]
Reported by:	fred@SUNBOT.Homedns.ORG [1]
2013-06-19 21:45:43 +00:00
Baptiste Daroussin
21efbdc097 Actually push the right patch 2013-06-18 20:01:32 +00:00
Baptiste Daroussin
4b812bde72 Fix a segfault on i386 and powerpc64 while registering a port as automatic [1]
Prevent 'pkg update' will always think that the repo is up to date if no mtime header is sent by the http server [2]
Bump port revision

Reported by:	adrian[1], hrs [1]
Tested by:	hrs [1]
Submitted by:	cperciva [2]
2013-06-18 19:57:51 +00:00
Bryan Drewery
3ac42a22f2 - Update to 1.0.13
Changes:

  - Add pkg -N to detect if pkgng is installed and activated.
    See pkg(8) for usage as this is not completely safe for 9.1's
    bootstrapper.
  - Update manpages with examples
  - Fix crash in shlib handling (was already in port)
  - Fix shlibs scanning over NFS
  - Update to new repository/upstream URL at
    http://github.com/freebsd/pkg

With hat:	portmgr
2013-06-11 13:01:56 +00:00
Baptiste Daroussin
9645ade55f Add NO_LATEST_LINK in case of pkg-devel being the default pkg 2013-06-10 22:40:06 +00:00
Baptiste Daroussin
0eb6b89d24 The pkg developement team is proud to announce the new 1.1.0 beta1 release of
pkg.

Here is the list of new features that happened in pkg 1.1:
- new simpler and more reliable solver
- shared libraries are now always tracked
- ssh:// is supported as a protocol to distribute packages (needs pkg 1.1+ on
  the server hosting the packages)
- multirepository is no longer considered experimental and works by default.
- incremental update of the catalog (only if the repository was created by pkg
  1.1+)
- simplification of the public API
- stabilisation of the public API (we will now try to keep it stable and if
  change are needed there will be deprecation time before removal of some old
  functions)
- new experimental pkg convert (can convert from and to legacy pkg database)
  pkg2ng now uses pkg convert (still recommanded to use pkg2ng)
- new pkg lock/unlock to prevent any manipulation of a given package (no
  upgrade,delete,etc)
- improved UI (now you can see the progress of an upgrade what is left to be
  done)
- new pkg annotation to allow one to add annotations (free form key/value) to a
  package)
- pkg audit is now able to directly parse the vuxml native format and not only
  the compact version
- pkg -vv now shows all available options and their current settings
- pkg -vvv now shows a description of all the available options
- pkg info now automatically considers the query as globbing if * is in the
  requested pattern
- new hook plugin interface (allows users to create hooks that get called at
  anytime during and upgrade/installation/deletion of a package)
- new cmd plugin interface (allows users to create new sub command available for
  pkg)
- pkg register can now register a port installation in the legacy database
  format
- repository can be defined in simple yaml files

Internal:
- massive usage of hash tables (uthash), which simplifies a lot of the code,
  and improves performances
- lots of optimisation in plist and manifest parsing
- lots of optimisation in loading packages (mmap used when possible)
- lots of cleanup in memory usage
- regression test framework is now ready (using atf) regression test are slowly
  being added and populated.

To use this new version:
  Ports users (or in building factories: poudriere/tinderbox):
    Add WITH_PKGNG=devel to your make.conf
    pkg set -o ports-mgmt/pkg:ports-mgmt/pkg-devel

  Binary package users, if the remote repository is providing pkg 1.1:
    pkg set -o ports-mgmt/pkg:ports-mgmt/pkg-devel
    pkg upgrade

Note that pkg 1.1 can use a repository created for pkg 1.0 and vis versa.

Huge thanks to all the people that have contributed to the pkg developement:
- may that be by code
- documentation
- bug report
- feedback
- ideas

List of people who contributed code:
Baptiste Daroussin, Matthew Seaman, Bryan Drewery, Vsevolod Stakhov,
Marin Atanasov Nikolov, Alexandre Perrin, Romain Tartière, Julien Laffaye,
Glen Barber, John Marino, Alex Kozlov, Roman Naumann, Sofian Brabez,
Alberto Villa, Will Andrews, Eitan Adler, Dan McGregor, namor, niamtokik,
Arthur Gautier, Garrett Cooper, Andrew Turner, Jeremy Chadwick,
Hajimu UMEMOTO, Mark Lokowich, Eygene Ryabinkin, Pietro Cerutti,
Rolf Grossmann, Ed Schouten, Dimitry Andric, David Forsythe, Stefan Grundmann,
Craig Rodrigues, Antoine Brodin, Andrey Zonov, Joel Dahl

Stats between 1.0 and 1.1:
287 files changed, 63418 insertions(+), 18763 deletions(-)

1198 commits
2013-05-30 15:17:29 +00:00
Bryan Drewery
cf68b5dbeb - Fix crash while packaging netbeans
Reported by:  many
Reviewed by:  bapt
2013-05-17 05:13:32 +00:00
Bryan Drewery
9363964e16 - Fix typo (does not affect build or package)
Submitted by:	ohauer
With hat:	portmgr
2013-05-01 19:17:59 +00:00
Bryan Drewery
d12bc1cea7 - Update to 1.0.12
*** Binary Package Builders: It is recommended to rebuild
    all packages and then run 'pkg check -Ba' and 'pkg
    upgrade' on your client servers once. This will allow
    the new shlib tracking to reinstall packages that have
    changed shlib requirements. This step is optional.

Changes:
    * Always track provided SHLIBS now when packages are
      created
    * Automatically reinstall packages when their needed shlibs
      or dependencies change. This removes the need to run
      'pkg install -Rf' in many, but not all, cases.
    * New DB lock strategy when stored on a network filesystem
    * pkg version: Show ? when package is missing on remote
    * pkg check -s: Return non-zero exit status if a mismatch
      is found
    * pkg audit: Implement -q
    * Add more periodic scripts
    * Add bash completion script
    * pkg audit: Performance optimizations
    * Build fixes
    * Add some forward-compatibility support for upcoming 1.1

Thank you to all contributors, listed in the upstream commits:
    https://github.com/pkgng/pkgng/commits/1.0.12

With hat:	portmgr
2013-05-01 18:51:46 +00:00
Baptiste Daroussin
0b7621a916 Fix build after addition of -Wmissing-variable-declarations to WARNS=6 in HEAD
Submitted by:	ed
Feature safe:	yes
2013-04-20 21:44:04 +00:00
Bryan Drewery
8570c6914f - Update to 1.0.11
Changes:
 - Fixes pkg-[r]query %d only returning the first
   depedency. This could have resulted in packages
   being built without a full depedency list. It is
   recommended to rebuild any packages built in the
   last day.

With hat:	portmgr
2013-03-31 01:02:19 +00:00
Bryan Drewery
4dbbe6647a - Update to 1.0.10
- Replace tab with space in pkg-descr

Changes:
  - gcc44/gcc48 build fixes
  - pkg-install now returns 0 when requested pkgs already
    installed
  - Fixed pkgconf file handling
  - Hard-coded post-deinstall list has been moved to
    bsd.pkgng.mk as _FORCE_POST_PATTERNS so we can update
    that instead of having a pkgng release every time a new
    one is identified.
  - Add pkg check -n for -d to be scriptable
  - Fix memory corruption if WWW passed directly to manifest
  - COMMENT/Description/WWW are now required to make valid
    packages
  - Store fetched packages as 0644
  - Add events for conflicts
  - Add -F to pkg-install
  - Pipe fixes
  - Misc fixes
2013-03-30 04:50:17 +00:00
Bryan Drewery
0be5237230 - Fix lib/gio/modules/giomodule.cache being seen as a leftover
due to @unexec gio-querymodules running before files were deinstalled.
  A more extensible solution is being sought for 1.0.10 to be used through
  bsd.pkgng.mk

Reported by:	miwi, swills
With hat:	portmgr
2013-03-18 13:04:26 +00:00
Bryan Drewery
4d051e3180 - Remove the need to patch newvers.sh on revision updates by
passing PORTREVISION into the MAKE_ENV
2013-03-18 13:02:03 +00:00
Bryan Drewery
a01f6eaec9 - Fix crash in pkg-update
You may need to manually 'pkg add' 1.0.9_1 or rebuild
  from ports if you are on 1.0.9

Submitted by:	Alexandre Perrin <alexandre.perrin@netoxygen.ch>
Obtained from:	upstream git
With hat:	portmgr
2013-03-14 10:11:34 +00:00
Bryan Drewery
78c489629d - Update to 1.0.9
Changes:
  - pkg-query(8) now returns EX_UNAVAILABLE when no package could be found [1]
  - pkg-rquery(8) now returns EX_UNAVAILABLE when no package could be found
  - Incompatible ABI message has been improved
  - Support base libbsdyml when possible over bundled libyaml
  - Fix `pkg install -fR` not installing missing dependencies [2]
  - Fix build with clang/gcc-4.7 in some cases [3]
  - Fix SRV MIRROR support
  - pkg-{fetch,install,upgrade} -L has been deprecated. Please use -U now.
    -L will be removed in a future release. Thiwas was done to be consistent
    with future support for -U in pkg-rquery(8) and pkg-search(8)
  - Make DEVELOPER_MODE architecture suggestion more clear that it is non-fatal.
    This is not really implemented yet and is just a hint.
  - Fix @cwd not being respected for @exec/@unexec. This mostly manifested as
    directories being created in the wrong place when installing packages.
  - New configuration option FETCH_TIMEOUT [4]
  - Documentation updates

PR:		ports/173515 [1]
Reported by:	eadler [1]
Submitted by:	Alexandre Perrin [1]
PR:		ports/175899 [2]
Reported by:	Adam McDougall <mcdouga9@egr.msu.edu> [2]
Submitted by:	John Marino [3]
Submitted by:	Dan McGregor [4]
Reviewed by:	bapt (release changeset)
With hat:	portmgr
2013-03-14 02:42:11 +00:00
Bryan Drewery
5582b4f0db - Use USE_SUBMAKE to fix running 'make build deinstall install' not properly
using the pkg-static(8) from WRKSRC during the install phase

PR:		ports/171831
Reported by:	Garrett Cooper <yaneurabeya@gmail.com>
Approved by:	portmgr (bapt)
2013-03-09 22:53:59 +00:00
Baptiste Daroussin
9685e62881 pkg uses /usr/share/mk/* framwork to build, so it can be tuned via
make.conf/src.conf which is something we don't want when building from the ports
tree.

Make sure to ignore make.conf and src.conf when building.

Reported by:	kargl@
Tested by:	kargl@
2013-02-27 07:05:52 +00:00
Baptiste Daroussin
ed8719542a - update to 1.0.8
- changes:
  * libpkg: When reseting a package reset the associated flags
  * libpkg: Allow to build with newer and older libarchive
  * Fix pkg clean trying to get information on non existing packages
  * Fix build with bmake
  * Fix multi repository save remote repository to wrong database
  * Fix pkg repo incremental update
  * Return an error when one of the repository failed to update in multi repo
    mode
  * Fix dragonfly abi detection to fit the way dragonfly development is done
2013-02-20 22:37:48 +00:00
Baptiste Daroussin
c806932592 - update to 1.0.7
- changes:
  * Fix HTTP_MIRRORS parsing
  * Workaround libarchive not 100% supporting mtree format
  * prepend remote repository by 'repo-' in multirepository mode
  * If mirror is stored in http use If-Modified-Since
  * Register the packagesite in the remote database, pkg update detects
    packagesite chanes
  * Fix pkg check -s
  * Allow to pipe events in json format though a unix socket/fifo via EVENT_PIPE
    configuration
  * store errno in events when it fits to avoid errno to be overwritten
2013-01-28 20:42:22 +00:00
Baptiste Daroussin
c2e3d6cff0 - update to 1.0.6
- changes:
  * Avoid installing .symbols on current

Reported by:	kwm
Tested by:	kwm
2013-01-22 10:51:18 +00:00
Baptiste Daroussin
aa06b36b84 - update to 1.0.5:
- changes:
  * Expand all instances of $ORIGIN in RPATH strings
  * Use -rpath when building pkg
  * Handle the case where left-over records are present in the local database
  * Fix license logic
  * Fix spelling in manpages
  * Fix built with gcc when build without DEBUG_FLAGS
  * Allow to set HTTP_PROXY/FTP_PROXY directly in pkg.conf(5)
  * Fix +MTREE_DIR extracting during binary installation of a package
  * Add experimental feature: HTTP_MIRRORS, see below

Please note that this version does something we normally do not do in a release
branch. It adds an experimental feature: HTTP_MIRRORS, that was requested for
PC-BSD. This feature makes possible to retrieve a list of mirrors via an http
request first, looking for the URL: http://... lines in the fetched page.
2013-01-22 07:20:08 +00:00
Bryan Drewery
041145b6cc - Fix build due to uninitialized variables, which
were previously hidden due to DEBUG_FLAGS

Obtained from:	Upstream git repo
Approved by:	bapt
2013-01-13 18:25:20 +00:00
Baptiste Daroussin
cec931194c Do not install .symbols on current
Reported and tested by:	kwm
2013-01-12 22:49:07 +00:00
Bryan Drewery
a571a5e592 - Only show conversion "seatbelt" notice if no
pkgng packages have been installed yet. This fixes
  the notice showing after already running pkg2ng but
  having 1 or more packages fail to convert.

Approved by:	bapt
2013-01-09 03:48:37 +00:00
Bryan Drewery
5d26e224e2 - Enable seatbelt again after further testing. It will
work fine as is with portmaster distfiles.

  pkg_info -Ea will list invalid packages, while pkg_info only
  gives a warning for the packages. This is already handled
  due to stderr being sent to /dev/null. The NB_OLDPKGS does
  come out correct.

Approved by:	bapt (implicit)
2012-12-22 19:58:04 +00:00
Baptiste Daroussin
dda5685792 Temporary disable the seat belt it doesn't play nice with portmaster 2012-12-21 18:32:55 +00:00
Bryan Drewery
99a563929c - Fix runtime version still showing 1.0.3
Approved by:	bapt
2012-12-21 16:11:05 +00:00
Baptiste Daroussin
52541f3406 - update to 1.0.4
- changes:
  * zsh completion for the help subcomment [1]
  * Make unlocking an already unlocked database a no-op,
  * Create the PKG_DBDIR if it doesn't exists
  * Fix download size calculation
  * When analysing shlibs, interpret the special token $ORIGIN in RPATH correctly
  * For shared libraries installed by a package, don't require dynamic library dependencies to resolve
  * Do not warn twice about unknown keywords
  * New PERMISSIVE option please do not use !!!
  * Add a seat belt in the ports Makefile to avoid automatic switching to pkgng [2]

Submitted by:		ume [1]
Requested by:		stas [2]
Bad english by:		bapt [2]
Good english by:	bdrewery, gjb [2]
2012-12-21 12:21:03 +00:00
Baptiste Daroussin
93a80fc8aa Add a patch to bump the version output bump by pkg -v this was forgotten in
the last release

Feature safe:	yes
2012-12-07 16:17:29 +00:00
Baptiste Daroussin
6ad5396a43 - update to 1.0.3
- changes:
  * Accept to query _https._tcp srv records
  * Fix diskspace change calculation in pkg upgrade
  * Fix pkg info -s -F apackage
  * Better ABI determination
  * Fix pkg upgrade badly returning 0 in case of failure
  * Fix build with recent clang 3.2

Feature safe:	yes
2012-12-07 11:26:51 +00:00
Baptiste Daroussin
310cd31280 - update to 1.0.2
- changes:
  * Add a completion for zsh
  * 1 in pkg.conf is consider as true or yes for booleans
  * Fix incremental pkg repo
  * Provide a pkgconf pkg.pc file for third party software using libpkg
  * Multiple grammar fixes
  * Several fixes in pkg create
  * Do not emit error if the deletion of a directory fails with EBUSY
  * Use isdigit(3) rather than isnumber(3)
  * Jail support is automatically disabled it /usr/include/jail.h is not present
  * Fix a regression leading to pkg install always returning 0 even when
    something wrong happened
  * Improve portability so that it now builds on DragonFly BSD

Feature safe:	yes
2012-11-06 16:32:41 +00:00
Baptiste Daroussin
a90808a87f Mark as not ccache safe
Reported by:	Piotr Kubaj <pkubaj@gmail.com>
2012-10-01 16:33:19 +00:00
Baptiste Daroussin
7f590f9ad9 - update to 1.0.1
- changes:
  * Allow extra space for environment and command when piping to /bin/sh for scripts
  * Improved DEVELOPER_MODE output
  * Error when neither www or desc is defined in the manifest
  * pkg help now have the same level of informations as usage()
  * Lots of fixes in manpages
  * Only try to get checksum on regular files
  * pkg2ng: Preserve files under $PKG_DBDIR that don't belong to pkg_tools
  * add dry-run to pkg autoremove
2012-10-01 13:54:16 +00:00
Baptiste Daroussin
219c41c8e9 Mark as job safe
Submitted by:	Adam McDougall <mcdouga9@egr.msu.edu>
2012-09-24 22:18:57 +00:00
Baptiste Daroussin
72e4b80c71 - update to 1.0
- changes:
  * SRV mirroring is on by default
  * fix large scripts executions
  * pkg check -d now installed packages tags as automatic
  * performance improvements
2012-08-30 14:19:30 +00:00
Bryan Drewery
e73d68fc73 - Fix crash when no PACKAGESITE is defined in pkg.conf
Approved by:	bapt (mentor, maintainer)
2012-08-23 22:09:53 +00:00
Pietro Cerutti
34270a1982 - Fix prompt sign in pkg-message, pkg2ng must be run as root
Approved by:	bapt (portmgr)
2012-08-22 10:18:41 +00:00
Baptiste Daroussin
710d4251be - update to 1.0-rc6
- changes:
  * pkg query now fails if no format strings has been provided
  * pkg delete pkg is no more allowed expect if -f is specified
  * large improvements on pkg backup/restore interface
  * do not propose to downgrade dependencies expect if forced to
  * every script execution now uses posix_spawn(3)
  * this abi is now check on pkg update, if a remote repository does not fit the
    desired abi, pkg update will fail.
  * allow pkg set -o even if the oldoriring has been uninstalled
  * pkg version now has -O to match on package origin
  * respect TMPDIR environnement setting
  * pkg.conf now has a ${ABI} variable correcponding to the detected ABI or the
    set one (sample pkg.conf has been modified to use it)
  * when run as non root pkg upgrade is automatically set to dry-run mode
  * pkg version can now work on remote repository (no need for a ports tree)
  * many buf fixes and man pages improvements
2012-08-16 17:05:58 +00:00
Baptiste Daroussin
80a49985ce Fix a regression appending newline to commments
Reported by:	avilla
2012-07-30 08:25:34 +00:00
Baptiste Daroussin
8cf9526831 - update to 1.0-rc5
- changes:
  * speed improvements in pkg repo on multi core boxes
  * fix pkg upgrade proposing to downgrade dependencies
  * fix pkg2ng losing seom origin from dependencies
  * fix losing new line informations in descriptions
  * new -A option to track a new installation as automatically installed
2012-07-30 06:23:26 +00:00
Baptiste Daroussin
db838cc82a add a fix to pkg2ng preventing losing track of some dependency origins leading
to a failure of the conversion.

Reported by:	Pierre Guinoiseau (via gitub issue #314)
Tested by:	Pierre Guinoiseau
2012-07-29 22:21:30 +00:00
Baptiste Daroussin
79769610e4 - update to 1.0-rc4
- changes:
  * Fix reinstalling package due to options change losing automatic flag
  * Fix pkg set -o
  * do not use dlopen for figure out path of libraries to track shlibs
  * more manpages cleanup
2012-07-20 20:21:09 +00:00
Baptiste Daroussin
26bc5ba5b1 - update to 1.0-rc3
- changes:
  * fix bug corrupting automatic and licenselogic flags
  * some mdoc fixes
  * fix a new dependencies pulled by upgrade showed as reinstalling instead of
    installing
  * some fixes in repo generations
2012-07-13 23:15:45 +00:00
Baptiste Daroussin
d08b26f7dd - update to 1.0-rc2
- changes:
  * fix an important bug on script handling resulting in scripts runned sometime
    twice
  * time can no more be negative while fetching
  * fix a crash on pkg check
  * fix an infinite retry loop when fetching a file that return 404
  * emit a warning when search gives no results
2012-07-13 15:39:57 +00:00
Baptiste Daroussin
fd554fce86 - update to 1.0 rc1
- changes:
  * schema for remote repositories are versionned
  * fix ordering of scripts
  * ability to query SRV dns records for automatic mirror detection (ala
    portsnap/frebsd-update) via the SRV_MIRROR options default to off
  * new FETCH_RETRY options (default to 3)
  * more style(9) compliance of the code
  * lots of cleanup in exits codes
  * lots of typos fixes in manpage
  * improvements in manpages
  * pkg2ng now move the old database into /var/db/pkg.back
  * new -B option to pkg check to reanalyse the files and populate shlibs
  * new install -fR to reinstall all packages depending on a given package
  * disable shlib when using pkg-static

No new feature to expect in next releases, only bug fixes
New feature will be for 1.1 (already planned :))
2012-07-11 22:17:37 +00:00
Baptiste Daroussin
0c571441dc Fix alignement error making pkg repo segfaul on i386
Reported by:	gjb, Ivan Klymenko <fidaj@ukr.net> (via ports@)
Tested by:	gjb
Obtained from:	pkgng git repository
2012-07-04 09:59:23 +00:00
Baptiste Daroussin
6fe34aef3c fix distinfo (sorry I commit the wrong one before) 2012-07-02 15:07:52 +00:00
Baptiste Daroussin
7db30eeb77 - update to 1.0 beta17
- changes:
  * downgrading is always forbidden except if you explicitly force it
  * yet another fix for incremental pkg repo
  * pkg install/upgrade now detect ports which remote has different option set
    and propose to reinstall them
  * code refactoring, and improvement in pkgdb.c and pkg_repo.c
  * new -f options for pkg update
  * new -f and -q options for pkg repo
2012-07-02 13:42:22 +00:00
Baptiste Daroussin
9e3a60e39e Really fix build on 8-stable and 9-stable
No revision bump because no changes but allowing building when it failed

Obtained from:	pkgng git (Bryan Drewery)
2012-06-27 06:27:14 +00:00
Baptiste Daroussin
4f79580b23 - update to 1.0-beta16
- changes:
  * fix incremental pkg repo
  * fix stage directory (copy mode) support
  * improvements on documentation (man pages, error messages)
  * new ARCH_INDEP options in developper mode to allow notifying a maintainer
    that a port might be archiecture independant
  * fix compilation on recent 8-stable and 9-stable
  * improvemens is usage() output
  * new option PORTAUDIT_SITE to allow user to set the url for the auditfile
  * pkg create -an to not repack existing packages
  * new periodic script to make daily backup of the database
  * new stats (pkg-stats(8)) subcommand
  * big improvements and bug fixes in pkg (r)query
  * deactivate shlibs tracking all the time in pkg-static
  * lots of bug fixes

Thanks to all contributors
2012-06-25 13:23:38 +00:00
Baptiste Daroussin
4ed25952f9 - Fix pkg2ng with new options framework 2012-06-15 10:46:45 +00:00
Baptiste Daroussin
a5d3bde5f9 Backout reproducible packages.
pkgng tried since beta14 to create reproducible package: aka 1 package build
twice will get exactly the same checksums, this revealed some problem with
python that were workaround in beta15 but lots of build system seems to really
not approciate it, while the feature is good and might be reactivated in the
futur, the ports tree and upstream build systems, need a lot of work to be able~
to deal with 100% reproducible packages :(
2012-06-03 19:02:27 +00:00
Koop Mast
c8e790e8a0 Add pkg-remove.8 to MLINKS.
Approved by:	portmgr (bapt@)
2012-06-03 16:07:19 +00:00
Baptiste Daroussin
66ade9c22c - update to 1.0-beta15
- changes:
  - new -d to pkg fetch to download the dependencies along with the package
  - fix automatic flag tracking over installs and upgrades
  - fix hardlink detection (size calculation of git is now sane again :))
  - pkg remove is now an alias to pkg delete
  - fix a bug with shlibs track causing segfault
  - pkg check -r now updates flatesiz and checksums
  - all generated yaml now contain a yaml object separator, pkg info -Ra can be
    pased directly to a yaml parser
  - pkg query and pkg rquery do not fallback anymore on matching everything if
    -g -x or -X is passed in arguments
  - fix python packing on pointyhat/tinderbox with a ugly workaround for now
  - pkg info '' and pkg search '' now complains about empty pattern
  - pkg rquery now return 1 if nothing matched
2012-06-03 14:47:21 +00:00
Baptiste Daroussin
27150984d0 - Fix pkg update adding repo.txz twice
PR:		ports/168235
Submitted by:	Andriy Syrovenko <andriys@gmail.com>
2012-05-22 16:49:26 +00:00
Baptiste Daroussin
a1ffe962fd - update to 1.0-beta14
- changes:
  * new DEVELOPER_MODE option: it will fail instead of just printing warnings
  * package creation is now reproductible, the same package built twice will
have the same checksum
  * pkg install, upgrade and fetch now automatically performs the update of the
remote metadata if necessary
  * portmaster patch: use_pkgng is not nessecary anymore
  * portmaster patch: new format you can just copy it in the
ports-mgmt/portmaster/files
  * portmaster patch: support for portmaster -o
  * portmaster patch: Enable --check-depends, aliasing pkg check -adv
  * pkg set -A to mark a package as automatically installed (-a now matches all:
 better consistency with other commands)
  * new -D option for pkg info (same as pkg_info -D)
  * pkg set -o now change origin for a port and everything that depends on it
  * new -L option for pkg {fetch,install,upgrade} to skip updating metadata.
  * when a package isn't valid, print human information about what is missing
  * some fixes in ordering (revealed by p5-XML-Sax mess)

Thanks to all contributors
2012-05-22 13:16:46 +00:00