Commit graph

3598 commits

Author SHA1 Message Date
hasso
32ef2c234f More portable way to print st_size which is off_t. Fixes build on DragonFly. 2009-03-20 08:50:51 +00:00
joerg
91e5d9ff5a Specify width for tag list. 2009-03-10 20:33:43 +00:00
rillig
542fef01a4 Implemented the suggestion by abs@ of reducing the number of warnings in
patch files. Up to now, the lines that only provide the context for the
patches have been checked for absolute pathnames and the like. Now, only
those lines that really add something to the patched file are checked.
The context lines are checked when the -Wextra option is given.

While here, added some comments to help me understand the code that I
wrote years ago.
2009-03-10 19:41:21 +00:00
joerg
8de13e20ef Use archive_read_finish and avoid double-free if the archive couldn't be
opened.
2009-03-09 20:01:22 +00:00
joerg
4b68a2dafa pkg_install-20090309:
Fix a double free. Reported by seb.
2009-03-09 19:58:45 +00:00
joerg
fcc1963a3e If writing to the archive failed, tell user the file it tried to write. 2009-03-08 17:26:23 +00:00
imil
c1458f988a Updated pkg_select to version 20090308
. fixed background color on VTE terminals
. fixed live pkgsrc over ftp
. fixed dependencies display
. code cleanup

OK'd by seb@
2009-03-08 16:13:24 +00:00
joerg
b02e7e47c4 pkg_install-20090307:
Simplify archive handling by depending on archive_read_finish and the
close callback where needed. Fixes a file descriptor leak as side
effect as reported by wiz.
2009-03-08 14:50:36 +00:00
snj
d15061e424 Add the pkgconfig file for libXi. 2009-03-08 00:03:37 +00:00
imil
db38909291 removed patches after upstream inclusion 2009-03-07 14:31:42 +00:00
imil
8b529acb26 . included patches/ upstream
. MASTER_SITES change
. fixed WRKSRC
. minor fixes
2009-03-07 14:26:27 +00:00
wiz
290a2cb7f2 Fix documentation -- dewey_cmp and dewey_match texts were swapped.
Noted and patch provided by Mihai Chelaru.

Bump version to 1.1.
2009-03-07 01:44:50 +00:00
tnn
5d68b98b8d joergs says the problem is with &&, so revert to revision 1.4 which should
be safe everywhere.
2009-03-06 15:53:21 +00:00
joerg
0e85145c05 Add explicit cast to silence GCC on comparing different signs. 2009-03-06 15:21:17 +00:00
joerg
4778d3c99e Merge lib/dewey.c rev 1.11 from pkg_install:
Avoid sign comparision issues.
2009-03-06 15:19:04 +00:00
joerg
2901543f5b Avoid sign comparision issues. 2009-03-06 15:18:42 +00:00
tnn
83c08423d2 fix previous:
actually, if our /bin/sh has some bug related to set -e,
it's better to write the test with if-then-fi instead.
2009-03-06 13:05:21 +00:00
tnn
2c965309de Invert logic of the package timestamp check, as at least ksh and bash
terminate the shell due to "set -e" when the [ ... ] part is false.
This behaviour seems correct to me, but I can't explain why this code
doesn't fail with our /bin/sh.
2009-03-06 13:00:29 +00:00
joerg
fbb7f3e773 Explicitly build local libarchive without ACL support, I don't want to
get into the mess of needing to figure out linkage on Linux.
2009-03-04 19:47:20 +00:00
hasso
78eb8fd89a Needs msgfmt. 2009-03-04 17:00:37 +00:00
joerg
9eb91efbb3 pkg_install-20090302:
Add new option -r to pkg_info, which works like -R, but expands it
recursively.
2009-03-02 17:13:49 +00:00
joerg
35f74daf9a Remove a close(-1) as hinted by wiz. 2009-03-02 15:30:45 +00:00
joerg
9b9d6a3ce9 Be nice to stupid version of TAILQ_INSERT_TAIL on Linux, that doesn't
create a block context.
2009-03-02 15:15:06 +00:00
joerg
af07339813 pkg_install-20090301:
Plug a number of file descriptor leaks.
2009-03-02 14:59:14 +00:00
joerg
89f19b4095 libnbcompat-20090302:
Add TAILQ_LAST.
2009-03-02 13:54:55 +00:00
wiz
1bb6451a10 regen 2009-02-28 16:25:46 +00:00
wiz
1f3593dd09 Fix typo. 2009-02-28 16:20:50 +00:00
wiz
f629212fdd Remove trailing whitespace. 2009-02-28 16:19:17 +00:00
joerg
5bdcb8f520 pkg_install-20090228:
Integrate the PKG_PATH logic for tightly with the find_archive logic:
- remember initial current working directory from the time PKG_PATH is
  processed, it will be used as reference for all relative entries
- remove now redundant fchdir dance in pkg_add
- pass down to find_archive if this is a top-level package (e.g.
  requested on the command line) or not; the location of top-level
  packages is searched for packages first and for URLs or path names the
  PKG_PATH itself is not processed (e.g. pkg_add foo/bar not look into
  PKG_PATH for bar). This addresses PR 33884 in a different way.
- document the rules for finding packages more explicitly
- allow specifying PKG_PATH in pkg_install.conf as well; environment
  takes precendence.
- remove PKG_PATH related logic in pkg_info(1), it doesn't deal with
  PKG_PATH anyway
- remove PKG_PATH, PKG_TMPDIR and TMPDIR description in pkg_info(1),
  they are no longer used
2009-02-28 16:03:56 +00:00
joerg
f9a9823e92 When checking for explicit conflicts, skip the old version checkif no
old version exists (e.g. because this is not an update).
Reported by Thomas Klausner.
2009-02-27 19:34:12 +00:00
joerg
f01efe1be7 Provide TAILQ_FOREACH_SAFE if it is missing. 2009-02-26 16:14:18 +00:00
joerg
816c3045cd pkg_install-20090226:
Always try to preserve the +PRESERVE file from the old package, even
when the new one has one as well. This fixes the update case for the
special case of pkg_install itself as reported by tron@.
2009-02-26 12:52:43 +00:00
wiz
108d0702df Recognize groff-1.20.1 on Linux.
From Stathis Kamperis on pkgsrc-users.

Bump version.
2009-02-26 07:05:10 +00:00
joerg
afe5fbacdd Be silent if querying a variable and no installed information exists.
"pkg_info -Q automatic foo" should not bitch.
2009-02-25 20:52:10 +00:00
joerg
f774c82b95 Include sys/poll.h and poll.h directly if they exist.
nbcompat/poll.h conflicts with the system header on Solaris
and is implicitly included by nbcompat.h already, if needed.
Fixes PR 40756.
2009-02-25 19:31:53 +00:00
wiz
e6bba895cc Bump date for previous. Remove trailing whitespace. 2009-02-25 16:57:51 +00:00
joerg
7fc8fb8212 pkg_install-20090225:
Rewrite pkg_delete to expand the list of packages to delete first and
reorder it if necessary. It will bail out if it knows in advance that it
can't remove a package. It will also fail for errors while removing one
package, unless forced. Add an option to remove automatically installed
packages that are no longer used.

The pkgviews support is kept, but untested. The error handling for
pkgviews most of all is as weak as before.

Basic review from hubertf@, man page changes by bad@.
2009-02-25 16:29:08 +00:00
joerg
2939cc9d49 Fix markup. From Tim Zingelman. 2009-02-25 15:19:00 +00:00
abs
dbeaf82136 Updated pkgtools/pkg_chk to 1.97
Fix PR 36641 - pkg_chk -g requires pkgsrc source tree, from Aleksey Cheusov.
2009-02-21 20:50:06 +00:00
wiz
9cf0bcd52a Sort options in usage. Break lines appropriately. 2009-02-20 07:50:15 +00:00
wiz
c7d27eda6c Use more and better markup.
Add EXIT STATUS section.
Sort options and their descriptions.
2009-02-20 07:46:15 +00:00
wiz
b6c7ef8f10 Use more and more proper markup.
New sentence, new line.
Add EXIT STATUS section.
Sort options and their descriptions.
Bump date for previous.
2009-02-20 07:41:15 +00:00
dmcmahill
7037193a4e Update to cdpack-1.9. This version teaches cdpack how to add packages
ending in .tbz as well as .tgz.  Should address the problem reported
in PR pkg/40515.  I am explicitly not using the mk.conf settings
for PKG_SUFX though because at run time we may or may not have a valid
mk.conf on hand that corresponds to how the packages were built.
2009-02-20 05:16:51 +00:00
joerg
f0209f8ffe Make sure that SYSCONFDIR is expanded in pkg_install.conf(5). 2009-02-19 20:27:36 +00:00
wiz
b0396c17a1 Some minor improvements. 2009-02-19 09:41:39 +00:00
abs
44dc2856b0 Fix PR 40151 - bootstrap of pkgsrc fails on Ubuntu 8.10
- At least Ubuntu 8.1 sets __attribute__((warn_unused_result)) on fwrite()
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
  which means (void)fwrite(...) will *always* generate a warning, so
  set -Wno-error to bypass this in Linux.sys.mk
- Ubuntu 8.1 also jumps through hoops to ensure ARG_MAX is *undefined*, so
  work around this in tnftp and libnbcompat
2009-02-19 00:51:12 +00:00
imil
ac431e9fa5 Updated pkg_notify to 0.4.3
Changes since 0.4.2:
- added -c list-file (seb@)
- no more MASTER_SITES, using files/ instead
- removed README in favor of a man page
- corrected pkglint(1) warning about multi-line SUBST_SED

OK'd by cube@
2009-02-18 21:23:21 +00:00
joerg
5ff23c6137 bootstrap-mk-files-20090217:
Don't leak the unprivileged user for USE_DESTDIR=full.
2009-02-17 17:08:13 +00:00
joerg
fa27df019a Improve support for ancient OpenSSL releases. 2009-02-16 20:59:11 +00:00
joerg
3fe7d4b4fb Point to the various commands of pkg_admin that replace audit-packages,
not just fetch-pkg-vulnerabilities. Suggested by David Holland.
2009-02-15 18:20:32 +00:00