Permalink
Commits on Apr 25, 2018
  1. Catch another package created from the wrong file copypasta.

    brd committed Apr 25, 2018
    Add the full output of what the upgrade does to match it so we are
    sure we are removing, installing and upgrading the right things.
Commits on Apr 24, 2018
  1. Change the version of foo to closer match how this would probably wor…

    brd committed Apr 24, 2018
    …k and check for the correct packages in the list
Commits on Apr 6, 2018
  1. Gracefully handle conflicts

    gahr authored and bapt committed Apr 6, 2018
    Before:
    Checking integrity...Child process pid=40754 terminated abnormally:
    Segmentation fault
    
    After:
    Checking integrity... done (0 conflicting)
    The following 1 package(s) will be affected (of 0 checked):
    
    New packages to be INSTALLED:
            vim-console: 8.0.1655 [FreeBSD]
    
    Number of packages to be installed: 1
    
    The process will require 23 MiB more space.
    
    Proceed with this action? [y/N]: y
    [dev.ptrcrt.ch] [1/1] Installing vim-console-8.0.1655...
    pkg-static: vim-console-8.0.1655 conflicts with vim-8.0.1655 (installs files
      into the same place).  Problematic file: /usr/local/bin/evim
    
    Issue #1663
Commits on Apr 3, 2018
  1. Fix a typo in pkg-updating.8

    0mp authored and brd committed Apr 3, 2018
Commits on Mar 20, 2018
  1. Add a test to try and tease out a failure I saw with conflicts.

    brd committed Mar 20, 2018
    This is still incomplete but it stills shows a problem.
  2. Switch to new_manifest()

    brd committed Mar 20, 2018
Commits on Mar 13, 2018
  1. document IGNORE_OSVERSION pkg.conf option

    opntr authored and bapt committed Feb 10, 2018
    Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
Commits on Mar 6, 2018
Commits on Mar 2, 2018
  1. Change #include <capability.h> to capsicum.h.

    trombonehero committed Mar 2, 2018
    As mentioned in issue #1640, Capsicum has moved from using a header file
    called `capability.h` (which could be confused with a Linux header
    relating to POSIX.1e "capabilities") to the clearer `capsicum.h`.
    Change all instances of `#include <sys/capability.h>` in pkg to
    `#include <sys/capsicum.h>`.
    
    This should cause no functional change on systems that have both the old
    and the new header file (which includes both 11-STABLE and 10-STABLE),
    and it fixes breakage on systems that only have the new header file.
    Systems that only have the old header file (e.g., 9-STABLE) will be left
    behind: there shouldn't be any build breakage but pkg will no longer be
    sandboxed. On the other hand, Capsicum was marked as an experimental
    feature on 9-STABLE and that branch has been EOL'ed, so we probably
    don't need to worry too much about it.
Commits on Feb 27, 2018
  1. Sort options

    brd committed Feb 27, 2018
Commits on Feb 20, 2018
  1. s/missmatch/mismatch/

    brd committed Feb 20, 2018
Commits on Feb 19, 2018
  1. Revert d46e423

    brd committed Feb 19, 2018
    This has other side effects, so revert for now.
Commits on Feb 16, 2018
  1. Close a leak

    brd committed Feb 16, 2018
  2. Fix resource leak

    brd committed Feb 16, 2018
  3. Check if open actually succeeded and error if not.

    brd committed Feb 16, 2018
    Also close fdcwd in other error cases.
  4. Clean up some resouce leaks

    brd committed Feb 16, 2018
Commits on Feb 15, 2018
Commits on Feb 13, 2018
  1. Merge pull request #1666 from vstakhov/osversion-fix

    vstakhov committed Feb 13, 2018
    Improve OSVERSION mismatch check
  2. Improve error message

    vstakhov committed Feb 13, 2018
Commits on Feb 6, 2018
  1. audit: Drop privileges after opening the files/database but before pa…

    bdrewery authored and bapt committed Jan 31, 2018
    …rsing.
    
    Also assert (return EPKG_FATAL) in pkg_audit_process() if running as
    root.
    
    This allows setting /var/db/pkg mode 0750.
Commits on Jan 30, 2018
  1. Complain more clearly about read-only FS errors.

    trombonehero authored and bapt committed Jan 30, 2018
    If `eaccess(2)` on the pkgdb fails because the filesystem is read-only,
    expose this to the user via an "Insufficient privileges" message
    (implied by `EPKG_ENOACCESS`) rather than failing silently with
    `EPKG_FATAL`.
Commits on Jan 14, 2018
  1. Add an option to ignore the osversion check on FreeBSD

    bapt committed Jan 14, 2018
    Suggested by:	avg