Commit Graph

129 Commits

Author SHA1 Message Date
joerg d595a1c226 Import pkg_install-20090406:
Remove premature return that broke dependency tracking for pkg_add -u.
Fixes PR 41143.
2009-04-06 18:49:08 +00:00
joerg 7bacb5af4b Reimport libfetch-2.23 from pkgsrc, at least one change was lost. 2009-04-04 23:26:03 +00:00
mrg fcc023545e - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
2009-03-29 01:02:48 +00:00
christos e78b589366 import new bind 2009-03-22 15:02:24 +00:00
christos e353dcca6a import new bind 2009-03-22 14:55:05 +00:00
wiz df00d5ab55 Fix merge error. 2009-03-21 10:09:16 +00:00
christos e6c7ef55a0 need udf. 2009-03-20 21:15:29 +00:00
christos e3fc2c5c61 typo 2009-03-20 21:14:21 +00:00
christos c0b438899b refresh 2009-03-20 21:13:48 +00:00
christos 1400370530 merge conflicts 2009-03-20 20:30:52 +00:00
christos 4bcd344e8f Import am-utils 6.x.y 2009-03-20 20:26:47 +00:00
njoly 6d58ff999b Update atf version to 0.6 for pkg-config files substitution.
ok by jmmv@
2009-03-11 15:57:08 +00:00
joerg 0c588b7da9 Import pkg_install-20090309:
Fix double free in pkg_info.
2009-03-10 00:48:40 +00:00
joerg 8a90f43fbf Import libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
for if-modified-since on local files.
2009-03-10 00:44:15 +00:00
ad 5e99d26fbe Adjust weight of SIDL down so idle kthreads don't eat up all of the
thread display
2009-03-08 16:26:03 +00:00
joerg 1b46f9c5df Merge pkg_install-20090307. 2009-03-08 14:53:16 +00:00
joerg 908e85af04 Import pkg_install-20090307: Fix a file descriptor leak in pkg_add. 2009-03-08 14:51:34 +00:00
joerg 08d9a1067c Avoid sign comparision issues. 2009-03-06 15:17:56 +00:00
joerg bae4fdf17e Import pkg_install-20090302:
- plug some file descriptor leaks
- add pkg_info -r
2009-03-02 22:31:13 +00:00
joerg 60d9c2168a Update build glue for pkg_install-20090228. 2009-02-28 19:36:32 +00:00
joerg 847d5ab660 Merge changes for pkg_install-20090228. 2009-02-28 19:36:23 +00:00
joerg e50ad3d100 Import pkg_install-20090228:
- pkg_add:
  - more consistent PKG_PATH processing
  - support setting PKG_PATH in pkg_install.conf(5)
  - don't crash when installing package with conflicts
  - fix updating packages with explicit +PRESERVE
  - document the rules for finding packages more clearly
- pkg_info:
  - don't complain about PKG_PATH, it is not used
  - sync documentation with reality
2009-02-28 19:33:34 +00:00
oster ab54f8ad2b On a multi-cpu/core machine, running 'top' and pressing '1' resulted
in n-1 blank lines at the bottom of the display.  On the same machine,
running 'top -1' and pressing '1' resulted in a garbled display that
would just get progressively worse.  Invert the values returned by
display_setmulti() to correct both issues.
2009-02-27 17:38:14 +00:00
joerg 8ef7bd4c41 Merge. 2009-02-26 19:40:24 +00:00
joerg 4d694e83af Remove pkg_install.conf.5 on make clean. 2009-02-26 18:35:13 +00:00
roy 3d26b90412 Import dhcpcd-4.0.12
Fixes since dhcpcd-4.0.11 include:
 * Logging to LOG_DAEMON instead of LOG_LOCAL0
 * Checking for POLLERR and POLLNVAL
 * Only opening raw sockets when we have a working link
2009-02-26 13:53:19 +00:00
joerg e0c851f773 Update build glue for pkg_install-20090225. 2009-02-25 21:23:17 +00:00
joerg 3018e10272 Import pkg_install-20090225:
- improve diagnostic for audit-packages wrapper
- new pkg_delete code:
  - topologocial ordering of packages
  - bails out before removing anything if it knows that it will run into
    problems later
  - new option -A: remove automatic installed packages that are no
    longer used (e.g. pkg_add foo; pkg_delete -A foo should not alter
    the list of installed packages)
- less chatty pkg_info for -Q
2009-02-25 21:21:40 +00:00
roy 27323c5250 Import dhcpcd-4.0.11
Fixes since dhcpcd-4.0.10 include recovery from send_packet failure
2009-02-21 10:12:30 +00:00
jmmv 658941c968 Build and install h_c; from Nicolas Joly in private mail. 2009-02-17 17:29:19 +00:00
joerg 6a4d107f7d Install pkg_install.conf(5). 2009-02-15 18:24:49 +00:00
joerg 9da2cc5c4b Update to libfetch-2.22:
- Support for conditional fetch
- Allow correctly overwriting fetchRestartCalls from signal handlers by
  making it volatile
- Explicitly document that the size of struct url can increase.
2009-02-14 19:36:51 +00:00
joerg b8b994aea2 Import pkg_install-20090214:
- pkg_add:
  - doesn't crash on missing +BUILD_INFO
  - for -u skip the package it will update when l oking for conflicts
  - don't fail in libarchive when trying to use directories as packages
- pkg_admin:
  - stricter argument checking for audit family of commands
  - fetch-pkg-vulnerabilities -u will only update if the remove file
    is newer
- pkg_delete:
  - fix PKG_METADATA_DIR passed to deinstall script
  - when using -d, ignore @dirrm
  - fix -d code to unregister the correct pkgdb entry
- pkg_info:
  - fix crashes on incomplete packages
2009-02-14 17:18:56 +00:00
lukem f092a45e5d fix -Wsign-compare issues 2009-02-12 09:05:13 +00:00
joerg 560d13285f Retire. 2009-02-05 19:58:17 +00:00
roy fe76f6974c Import dhcpcd-4.0.10
Changes since dhcpcd-4.0.9
 * Move the ARP check to after the REQUEST to be more RFC2131 conformant.
2009-02-04 09:08:46 +00:00
wiz ba273597f5 New sentence, new line. Use more markup. 2009-02-03 05:16:08 +00:00
joerg bb314659c8 Merge pkg_install-20090201 and update build system. 2009-02-02 20:47:19 +00:00
joerg d66ee6c3fd Import pkg_install-20090201. From the branch merge in pkgsrc:
- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
  around pkg_admin. They try to mimic the classic options if used
  sanely.
  "pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
  - progress bar is currently missing for downloads
  - "pkg_add -" is no longer supported
  - no adhoc check for conficts between dependencies and already
    installed packages
  - "pkg_add -s" has been replaced with an option in pkg_install.conf,
    verification of plain detached GPG signatures is no longer supported
  - optional check for vulnerabilities before adding a package
  - if /var and /usr/pkg are on different fileystems it is twice as fast
    now
  - conflicts due to overlapping plists are checked before installation
  - pkg_add no longer plays with the process limits
  - pkg_add and pkg_delete have a new destdir option; scripts have to
    either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
  entry from pkgdb
2009-02-02 20:44:00 +00:00
roy 366affd3d0 Import dhcpcd-4.0.9
Changes from dhcpcd-4.0.8
 * Add a bit more pedantic error checking
 * Zero the DHCP message struct instead of trying to terminate the options
2009-01-31 12:57:30 +00:00
roy 12dbb39b5a Import dhcpcd-4.0.8
Changes since dhcpcd-4.0.7:
 * broadcast address correctly set for hooks
 * respect renewal time if given but rebind time is not
 * nohook 20-resolv.conf works as well as nohook resolv.conf
 * short hostnames are now sent
2009-01-28 04:46:01 +00:00
christos 744913a534 fix defs.h building. 2009-01-26 16:30:14 +00:00
agc df41ea2ee2 Add the build glue and sets information for the libopenpgpsdk library, and
the openpgp binary.
2009-01-24 01:15:24 +00:00
jmmv ca1ed55e40 Properly generate test programs by including common.sh. Otherwise, they
are all broken!
2009-01-20 10:29:59 +00:00
jmmv c57d9133b5 Enable the build of ATF. 2009-01-19 07:14:06 +00:00
jmmv 36b1da6c51 Add reachover Makefiles to build ATF 0.6. These replace the old Makefiles
that were spread all around the tree when ATF lived in dist/atf.
2009-01-19 07:13:03 +00:00
jmmv e2207522e1 Import ATF 0.6. Replaces the old ATF 0.5 that was in dist/atf.
Changes in this release:

* Make atf-exec be able to kill its child process after a certain period of
  time; this is controlled through the new -t option.

* Change atf-sh to use atf-exec's -t option to control the test case's
  timeouts, instead of doing it internally.  Same behavior as before, but
  noticeably faster.

* atf-exec's -g option and atf-killpg are gone due to the previous change.

* Added the atf-check(1) tool, a program that executes a given command and
  checks its exit code against a known value and allows the management of
  stdout and stderr in multiple ways.  This replaces the previous atf_check
  function in the atf-sh library and exposes this functionality to both
  atf-c and atf-c++.

* Added the ATF_REQUIRE family of macros to the C interface.  These help
  in checking for fatal test conditions.  The old ATF_CHECK macros now
  perform non-fatal checks only.  I.e. by using ATF_CHECK, the test case
  can now continue its execution and the failures will not be reported
  until the end of the whole run.

* Extended the amount of ATF_CHECK_* C macros with new ones to provide more
  features to the developer.  These also have their corresponding
  counterparts in the ATF_REQUIRE_* family.  The new macros (listing the
  suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and
  _STREQ_MSG.
2009-01-19 07:11:50 +00:00
christos c42a4332d6 bump versions for time_t 2009-01-11 22:42:39 +00:00
christos a8517db3dc new autoconf needs _cv_ 2009-01-04 22:57:17 +00:00
christos 9d45a37e43 work around new gm4 issue, by commenting out stuff. 2009-01-04 20:34:11 +00:00