joerg
258724b565
pkg_install-20080126: Make pkg_add pass down -I and -m when recursively
...
adding packages.
2008-01-26 23:30:24 +00:00
rillig
95ce0db1bf
When updating a package, the "(perhaps the packing list is incorrectly
...
specified?)" warning isn't correct, so don't print this assumption at
all.
2008-01-26 09:23:31 +00:00
joerg
d8d13db647
Explain unprivileged_user.
2008-01-26 03:14:18 +00:00
joerg
e562ac2e2f
pbulk-0.25:
...
Add bulkbuild-rebuild which can be used to build packages individually.
It assumes that all dependencies are built and the results of the scan
phase exists. That means it can be used after a bulk build to try to
rebuild a failing package. Fixes PR 37407.
2008-01-26 01:57:00 +00:00
joerg
d84d1ca637
pbulk-0.24:
...
When all jobs are processed in master mode, close the listen socket
and shutdown(2) all peers. Give them a second to close(2) the
connection themselve, so that the port remains usable on the master.
This is the standard compliant fix for PR 37002.
2008-01-26 00:34:57 +00:00
rillig
9449794a9c
Some commands like "mktexlsr" and "texconfig" must not be called from
...
package Makefiles.
2008-01-25 17:59:24 +00:00
tnn
34692a4cfc
Fixed a problem in pkg-build, bump rev.
2008-01-21 13:11:56 +00:00
tnn
44711aada0
Fix a hardcoded path (probably a mistake in rev 1.8)
2008-01-21 12:37:46 +00:00
joerg
235f1bf734
No revision bump for pkgsrc native tools, update version.
2008-01-18 15:46:22 +00:00
rillig
a83158c015
PKGREVISION++ for the invalid definition of shell functions.
2008-01-18 11:38:17 +00:00
rillig
06c878c3b1
Fixed the definition of shell functions, as reported in PR 37795.
...
See also:
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_05
http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04
2008-01-18 11:36:18 +00:00
tnn
c722fc0905
pkg_chk-1.88: add mktemp to the list of substituted commands.
2008-01-18 07:50:03 +00:00
joerg
5eda607514
pbulk-0.21:
...
Don't try to remove a non-existing file if no package had an error
during the build.
2008-01-17 19:25:33 +00:00
joerg
a166fd74ea
pbulk-0.20:
...
- run checksum stage of a build with the privileged user, as DISTDIR
might not be writeable
- create the actual package as privileged user as well
- pre-create work.log when using user-destdir
- in pre-build, only wait if the meta subdirectory exists. bulklog itself
can often be a mount point.
2008-01-17 17:47:09 +00:00
joerg
4498fe021c
pbulk-0.19:
...
- add support for building using DESTDIR.
2008-01-16 14:20:08 +00:00
tnn
e21f12791a
Bump date because of several HPUX & OSF1 fixes.
2008-01-16 11:41:15 +00:00
tnn
e0adffbdde
Supports installation to DESTDIR.
2008-01-16 03:32:59 +00:00
tnn
0f5043a902
Fix CPP detection
2008-01-16 03:05:57 +00:00
joerg
dd293c5fa6
Use %lu + casts instead of depending on size_t's %z. Some Operating
...
Systems like Solaris don't implement %z.
2008-01-15 22:14:30 +00:00
joerg
a4b00a08e7
pbulk 0.18:
...
- If not running on NetBSD or not using /usr/bin/make, set the default
of pbulk's make to ${prefix}/bin/bmake.
- Make path to neato an option and don't install it on demand.
- Fix a bug in the master mode that should fix the strange faults seen
with native libevent on NetBSD.
- Add option to skip checksum computation. Don't upload a checksum file
if that option is active.
2008-01-15 21:43:31 +00:00
tnn
4b8fb48be4
Retire support for builtin X11 on HP-UX. The builtin libs are simply
...
too broken. (Missing dynamic Xaw libs, header issues and so on ...)
I'll make X11_TYPE=modular the default on HP-UX instead.
2008-01-14 08:27:31 +00:00
tnn
7f888fd6b0
Make CPP definition compiler-agnostic
2008-01-14 05:55:30 +00:00
tnn
03c313fb85
fix typo
2008-01-14 05:14:59 +00:00
tnn
4c52ae5bee
We always have install-sh on HPUX
2008-01-14 05:08:52 +00:00
tnn
c45631dd04
First cut at some HPUX specific overrides. No version bump of the package
...
yet since this will be work in progress for a couple of days ...
2008-01-14 05:00:43 +00:00
rillig
2ef4aec279
Fixed typos.
2008-01-13 22:31:25 +00:00
gdt
1dfd5850bd
Add patch from Brook Milligan to avoid treating warnings about
...
non-deletable packages as dependencies. Bump version to 0.14.
Example problematic output (perhaps should also be fixed in
pkg_install):
Information for pkg_install-20070810:
*** PACKAGE MAY NOT BE DELETED ***
Built using:
checkperms-1.7
*** PACKAGE MAY NOT BE DELETED ***
2008-01-11 13:29:37 +00:00
rillig
34e8a5cf5d
Greg wants me to check for unused license files.
2008-01-10 03:48:34 +00:00
rillig
ae2d8788af
Check misspelled macro names, for example __NetBSD_Version instead of
...
__NetBSD_Version__. Inspired by emulators/wine/patches/patch-ac 1.37.
2008-01-10 03:33:46 +00:00
heinz
12aae4e3b5
The package needs a C compiler.
2008-01-08 20:03:54 +00:00
adrianp
44c6e6e2dd
Add 'audit-packages -F <file>' to process a list of packages/patterns
...
from a file.
Update and sort options in the man page
2008-01-07 22:27:59 +00:00
rillig
53c3ee0e89
+ REPLACE_LOCALEDIR_PATTERNS
2008-01-06 19:26:01 +00:00
rillig
d989bc8536
+ BUILD_MAKE_CMD
2008-01-06 18:37:21 +00:00
rillig
567c07ece4
Deactivated the "NOTE: you can write "tool" instead of "${TOOL}", as
...
suggested by darcy@.
2008-01-06 14:55:00 +00:00
rillig
5287c0d6e2
When a variable is compared to a string in an .if or .elif directive,
...
check that the string fits to the variable type.
Currently, the generated warnings are mainly for X11_TYPE, for which
"xorg" is not a valid value. (hi joerg!)
2008-01-06 01:02:14 +00:00
rillig
d332897390
Improved an explanation for an error message, since the previous version
...
didn't really explain anything.
2008-01-05 22:13:20 +00:00
rillig
50295b3994
Improved the wording of the "Makefiles must not be included" error message.
2008-01-05 21:54:50 +00:00
rillig
775bba2f32
Don't give a warning for incomplete RCS tags in patch files, as they
...
probably will not do any harm.
2008-01-05 18:41:02 +00:00
rillig
90e88a8d2d
Reactivated the code to warn about missing comments in patches. It seems
...
that the time has come that we can no longer find out what a patch does,
unless we document it. The CVS history is not of great help in many
cases, patches get moved in the repository and so on.
To not scare casual pkglint users, these warnings are only shown if
pkglint is run with the -Wstyle or -Wall option.
2008-01-05 18:04:06 +00:00
tron
860c51a3a0
Require at least version 0.35 for the benefit of system with native X.org.
2008-01-05 16:22:15 +00:00
tron
1c75254c0e
Update "x11-links" package to version 0.35:
...
- Add suport for "inputproto", "randrproto" and "xineramaproto".
2008-01-05 16:08:52 +00:00
rillig
f1aafc9c0a
In the check for variable ordering in package Makefiles, MASTER_SITES is
...
not required to appear, since META_PACKAGEs don't need to define it.
2008-01-05 11:13:37 +00:00
rillig
f77793c396
Added code to analyze the conditions in .if and .elif directives. This
...
will soon be extended to checking for spelling mistakes in PKG_OPTIONS
handling.
2008-01-04 16:12:03 +00:00
rillig
8c3c6df190
Whenever a Makefile.common is included by another file, that file should
...
be mentioned in the Makefile.common.
2008-01-04 16:03:55 +00:00
rillig
4071dbc4be
Updated pkglint to 4.82.
...
Changes since 4.81:
- Moved lintpkgsrc to its own package.
- Less internal errors when parsing shell code.
- White-space checks in PLIST.
2008-01-04 15:59:47 +00:00
rillig
5299226d71
If a command line argument is used, it should be mentioned by exactly
...
this name (pkg-name) and not some related description, to make searching
easy.
2008-01-04 14:24:38 +00:00
rillig
906ad29157
Prepared pkglint for the upcoming cleanup of the .include directives in
...
mk/*.
2008-01-04 01:43:56 +00:00
rillig
eeebd3ec03
When calling open(2), don't try to get an error message from libarchive,
...
since it won't know anything about it. (hi joerg!)
2008-01-03 22:31:20 +00:00
rillig
10ac5aa6c4
+ lintpkgsrc
2008-01-03 21:05:34 +00:00
rillig
e770357f67
Imported lintpkgsrc.
...
lintpkgsrc checks various things on the complete pkgsrc tree.
2008-01-03 17:43:15 +00:00
rillig
447576b03c
Added a way to determine the PKGPATH when checking a package.
2008-01-03 16:16:22 +00:00
rillig
f09c8701b9
If one of the NO_*_ON_* variables contains something other that
...
${RESTRICTED}, print the variable name in the warning message.
While here, added an explanation for the warning.
2008-01-01 20:44:29 +00:00
rillig
811346657e
All characters in PLIST files are relevant, so make trailing white-space
...
an error. Who would ever want to install files whose name ends in
white-space?
2008-01-01 13:44:11 +00:00
minskim
24f56460bb
Do not skip the configure phase. This package needs it to configure
...
libnbcompat. Pointed by Mark Wicks in PR 37609.
2007-12-27 23:19:06 +00:00
joerg
a0e4ad1e20
Prepare for update of NetBSD and pkgsrc-2007Q4 by tagging current state
...
as 20071224. Changes include:
- better diagnostic for conflicting packages
- explicitly check already installed packages for conflicts with
to-be-installed package
- document pkg_admin rebuild-tree in usage
- man page fixes
- forcefully remove pkgdb entries (needed for user-usage in some cases)
2007-12-23 23:58:27 +00:00
rillig
adf53f5a0d
Prevent internal errors when one-letter variables are used. The warning
...
to disambiguate them is still printed.
PR: 37593
2007-12-22 22:27:17 +00:00
rillig
2c5b005b55
Updated pkglint to 4.81.
...
Changes since 4.80:
- Stricter CVS Id check
- REQD_FILES_PERMS, META_PACKAGE, PKGSRC_COMPILER
- Warning if info pages are installed into share/info.
2007-12-22 11:21:47 +00:00
rillig
664171769f
GNU info pages should not be installed into share/info.
2007-12-22 11:15:52 +00:00
rillig
6e0168c5df
+ REDQ_FILES_PERMS
2007-12-21 12:36:59 +00:00
rillig
e035f2d2e6
Updated the list of pkgsrc compilers (+hp, +pcc).
2007-12-21 12:31:20 +00:00
rillig
1081c0d265
Improved the wording of an explanation, to avoid confusion.
2007-12-19 12:34:08 +00:00
rillig
e59cd5c03e
- Added support for the new META_PACKAGE variable.
...
- Warn about duplicate entries in PLISTs.
2007-12-19 12:04:34 +00:00
rillig
545e51df61
The +CONTENTS file is checked for conflicts, not +REQUIRED_BY.
2007-12-19 02:22:54 +00:00
tron
523298223d
Another day, another update (and probably not the last one):
...
Update the "x11-links" package to version 0.34:
- Add suport for "libICE", "libSM", "libXext", libXinerama", "libXrandr",
"libXrender", "libXt" and "xcursor"
- Improve support for "Xfixes".
2007-12-17 18:20:19 +00:00
rillig
5a54dec7a9
Documented struct package_conflict and added a note about the
...
inefficiency when reading all the +REQUIRED_BY files.
2007-12-17 09:42:03 +00:00
tron
e53552d815
Update "x11-links" package to version 0.33:
...
- Improve handling of "libXmu" on systems with native X.org.
2007-12-16 19:05:52 +00:00
tron
6ec9146c39
Fix build on pre-Leopard Mac OS X systems.
2007-12-16 12:43:50 +00:00
tron
cb8742689f
Mac OS X Leopard doesn't "InstallFlags" in "darwin.cf". We therefore don't
...
need to (and cannot) apply a patch to prevent that. This package builds
under Leopard now.
2007-12-16 12:29:17 +00:00
tron
f90fb49d2b
Update "x11-links" package to version 0.32:
...
- Update X.org support to support systems with modular X.org in the
base distribution.
- Add support Mac OS X Leopard.
2007-12-15 17:53:39 +00:00
joerg
026ceb86b5
Force dependency on libevent from pkgsrc on NetBSD, the native version
...
is broken. This shows e.g. as querying the status can trigger a signal
10. Bump version.
2007-12-15 11:06:12 +00:00
rillig
cb61e59737
Made the CVS Id check stricter, to catch many mistakes in pkgsrc-wip.
2007-12-13 15:56:49 +00:00
tnn
0d152f7013
document 'rebuild-tree' in usage()
2007-12-10 10:34:42 +00:00
rillig
771ec66978
Updated pkglint to 4.80.
...
Important changes since 4.79:
- Fixed some internal errors.
- Adjusted pkglint to changes in the pkgsrc infrastructure: SUBST_VARS.*,
PKG_USERS_VARS, PKG_GROUPS_VARS.
- Improved the parser for shell code.
- Cleaned up the handling of the :Q operator, so that pkglint warns about
it places where it is not required.
- ${RUN} has deprecated ${_PKG_SILENT}${_PKG_DEBUG}.
2007-12-07 11:47:52 +00:00
rillig
aa9a155e1a
+ AUTO_MKDIRS
2007-12-07 11:28:17 +00:00
joerg
88572b8312
Skip empty lines in the limited list. Bump to 1.16.
2007-12-05 21:33:58 +00:00
tnn
2e9b188782
pkg_rolling-replace-0.12:
...
Replace the nested shell loops in depgraph_installed() with some awk
that only needs to invoke pkg_info once. This gives a ~20x speedup.
Previously, if many packages were installed, depgraph generation took a
considerable amount of time; in the order of 30 seconds even on moderately
fast hardware.
2007-12-02 02:11:05 +00:00
rillig
085721094b
In error messages, it is important to be as specific as possible, to
...
help the user understand the problem.
2007-11-30 17:31:38 +00:00
rillig
aed144c8fe
Catch some common mistakes in dependency patterns.
2007-11-30 14:19:20 +00:00
rillig
872ab1f25d
style
2007-11-30 00:39:39 +00:00
rillig
bae1429f34
Do not install a package if some of the installed packages would
...
conflict with it. This fixes PR 37451.
2007-11-30 00:30:39 +00:00
rillig
bb376f4684
Remove the package metadata even if it is read-only, without prompting
...
the user.
2007-11-29 22:50:05 +00:00
rillig
7c9d37db1d
(typo:) When checking PLIST.common_end and loading PLIST.common,
...
actually load that file.
2007-11-29 21:05:29 +00:00
mishka
7b9053b306
Check for deprecated mkisofs flags. Fix found and bump pkgrevision.
2007-11-28 16:18:01 +00:00
rillig
532c6fad52
Added some comments that explain the data structures.
2007-11-28 11:34:20 +00:00
rillig
e46725b9b6
Fixed code duplication. When canonicalizing package names, also do it
...
for PHP.
2007-11-22 09:36:38 +00:00
rillig
3a2dd48968
Removed USE_TOOLS+=perl:run, since Perl is not used as a tool, only as a
...
dependency which is included automatically by the various Perl modules.
I wonder why the PERL5 variable is still defined without perl being in
USE_TOOLS.
2007-11-20 21:46:20 +00:00
rillig
13a034c937
At some place, it should be documented why libnbcompat is _not_
...
installed as a shared library but rebuilt for every package that needs a
certain feature. That place is either here or in files/README.
2007-11-20 18:55:25 +00:00
rillig
8f2787ea9e
Inform the user when configuring libnbcompat. While here, fixed some
...
quoting issues. (They never caused anything to fail, but who knows what
will happen in the future?)
2007-11-20 18:15:23 +00:00
rillig
4d0c26aa79
Even on non-BSD systems, the "-R all" option should disable printing of
...
the "time" attribute. Noticed by Malcolm Herbert on tech-pkg.
2007-11-19 08:41:25 +00:00
rillig
0a6bd0ea38
Don't install corrupted catpages on Solaris and AIX. PKGREVISION++
...
Cleaned up the Makefile.
2007-11-17 16:00:20 +00:00
rillig
f015bfbd08
The type of BUILTIN_FIND_GREP.* had been wrong. It's not List of
...
ShellWord, but a simple String. This has led to some confusion in
db1.builtin.mk.
2007-11-16 08:11:16 +00:00
wiz
ccf4f0a7e4
Add two missing .Ek.
2007-11-14 22:57:07 +00:00
rillig
58e89bfad3
Properly check the return value of load_lines("PLIST.common").
2007-11-14 16:03:07 +00:00
rillig
800c101860
Some shells, for example /bin/ksh on Solaris, don't like "else fi"
...
without any commands in between.
2007-11-14 12:38:18 +00:00
rillig
485e264ceb
Provide more useful details in the error message for conflicting packages:
...
- The package that cannot be installed
- The pattern of the conflict
- The name of the installed (conflicting) package.
2007-11-13 19:53:11 +00:00
rillig
32b2e77b19
There are several error messages with the same words. To make finding
...
the cause easier, add more information to one of them.
2007-11-13 19:30:26 +00:00
martti
9afb20a137
Added commented-out LICENSE=something.
2007-11-11 11:35:48 +00:00
joerg
b97a055750
Don't use the build time version to find packages, we want to pick up
...
the newest version. Bump version to 20071109.
2007-11-08 23:24:56 +00:00
joerg
e725e20c42
Bump version or revision of all packages that have a runtime dependency
...
on gzip.
2007-11-08 19:39:42 +00:00
joerg
2021db9549
Supports DESTDIR.
2007-11-08 19:00:56 +00:00
rillig
c2c24d424f
Mention that RUN does more error checking than _PKG_SILENT + _PKG_DEBUG.
2007-11-07 17:25:33 +00:00
rillig
c3d161ff5d
In variable assignments in the shell you can sometimes leave out the
...
double quotes.
2007-11-07 17:01:24 +00:00
rillig
299c46b883
Filemasks and Pathmasks may very well contain special characters, so the
...
:Q operator should not be removed from them.
2007-11-07 16:47:27 +00:00
rillig
23d42df84f
In shell commands, handle backticks inside double quotes. By the way,
...
double quotes inside backticks inside double quotes are error prone.
2007-11-07 16:42:56 +00:00
rillig
e50a5ca891
When checking a single *.mk file, determine the used variables. This
...
avoids many false positive warnings when checking files in the mk/
directory.
2007-11-07 16:19:01 +00:00
rillig
0522f0e913
Fixed the XXX from the last commit. PLIST conditionals are read in when
...
a package is checked and discarded for the directory and filename
checks.
2007-11-07 12:11:18 +00:00
rillig
168edd6650
Directories may be removed in a PLIST if there is a corresponding @exec
...
${MKDIR}.
In PLIST.common_end, directories that have been populated in
PLIST.common may also be removed.
XXX: The PLIST_SUBST macros that may expand to "@comment " are currently
not distinguished from pathname macros. This leads to some false
positive warnings.
2007-11-07 11:58:57 +00:00
rillig
0e0e1a73df
Warn about removal of unrelated directories in the PLIST.
2007-11-07 11:09:07 +00:00
rillig
8247838eb8
The "short" names for tools may only be used in the predefined
...
{pre,do,post}-* targets, not in user-defined ones.
2007-11-06 14:22:03 +00:00
joerg
91812f0d5f
Also add -E to usage(). From PR 37265.
2007-11-05 09:39:38 +00:00
rillig
b85607e796
The fifth field in a CVS/Entries file is the keyword mode. It doesn't
...
have to be always empty.
2007-11-04 12:17:10 +00:00
minskim
829766824a
Teach bootstrap-mk-files about groff-1.19.2 on Darwin.
2007-11-04 08:08:52 +00:00
rillig
a99d7b98d6
Reverted the deprecation of USE_NCURSES.
...
XXX: To discuss: How is this variable different from PREFER_PKGSRC=ncurses?
Why do we need it at all? Why isn't it documented anywhere?
2007-11-03 14:49:43 +00:00
joerg
6a334feaf4
pkg_install does the right things with the files, so CHECK_PERMS is not
...
useful and creates cyclic dependencies if pkg_install is outdated.
From Peter Bex.
2007-11-03 14:49:00 +00:00
joerg
e7633a92f1
Tag pkg_install as 20071103.
2007-11-03 13:54:14 +00:00
rillig
755071e255
USE_NCURSES is deprecated. It has no effects anymore.
2007-11-03 11:48:53 +00:00
joerg
e47f81c12a
Remove obsolete option r from usage() and man page. I can't even
...
remember what is was for. From Yakovetsky Vlad in PR 37265.
2007-11-02 16:03:37 +00:00
rillig
5ea2c37615
Added quotes around the filenames, as suggested by joerg@.
...
While here, removed an unnecessary variable.
2007-11-01 23:08:29 +00:00
rillig
23369be14a
When rename(2) fails, it is useful to know some details about the
...
filenames that have been involved.
Do not use assert() for error checking.
2007-11-01 21:57:37 +00:00
rillig
3334e27105
"Safe" variables should not have the :Q operator, since it only makes
...
the code harder to read and does not have any effect anyway.
2007-10-31 19:24:52 +00:00
rillig
c31aa0c714
Do not print warnings about missing PLIST definitions for Perl modules
...
and other packages that set GENERATE_PLIST.
2007-10-31 12:24:48 +00:00
rillig
48bf740968
Added a function for checking bmake conditionals.
2007-10-31 12:20:07 +00:00
rillig
65662084d9
Second try to deprecate LICENCE. ACCEPTABLE_LICENCES continues to exist,
...
since the reasons for keeping two variables for one purpose seem to be
greater than the ones for simplicity. Don't ask _me_ why.
2007-10-31 12:15:09 +00:00
seb
2acd20e5db
Update to version 1.30.
...
Approved by MAINTAINER, jmmv@.
Add option -N: with the expection of pkgtools/libkver (see manual
page about NETBSD_RELEASE) avoid installation of default packages as well as
INSTALL_PACKAGES and BUILD_PACKAGES during the creation of the chroot.
Note: This is useful for running pbulk in a sandbox created by
pkg_comp as binary packages , possibly very low in the build
dependencies tree like pkgtools/digest, won't be built by pkg_comp
while creating the sandbox hence pbulk won't have to rebuild nearly
all packages otherwise already up-to-date.
The maintainer notes that this seems like abusing pkg_comp to just
create sandboxes. And well... yes indeed!
2007-10-27 17:11:24 +00:00
grant
7f3230db8c
bump PKGREVISION for archivers/pax fix (largefile support).
2007-10-27 11:19:34 +00:00
jlam
ae9b935fd0
* If PLIST_SRC is explicitly set to an empty value in a package Makefile,
...
then automatically generate a PLIST that says "${PKGNAME} has no files".
* If PLIST_SRC and GENERATE_PLIST are not set in a package Makefile,
and no PLIST files exist, then fail during the package build with
PKG_FAIL_REASON.
* Remove "intentionally empty" PLISTs again.
Now, the easy way to say that a package installs no files is to just
add the following to the package Makefile:
PLIST_SRC= # empty
2007-10-25 22:00:39 +00:00
jlam
38c496d6c0
Re-add "intentionally empty" PLISTs for meta-packages and other packages
...
that directly manipulate empty PLISTs.
Modify plist/plist.mk so that if the PLIST files are missing and no
GENERATE_PLIST is defined, then the package fails to build.
2007-10-25 17:49:45 +00:00
jlam
56ba4d2690
Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
...
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
rillig
488acb7bba
Reverted the deprecation of LICENCE and ACCEPTABLE_LICENCES, since there
...
is no consensus among the pkgsrc developers about them. Some want to
keep them (proper British spelling), others want to eliminate them
(redundancy).
2007-10-25 16:12:04 +00:00
rillig
0fd5c8dfaf
It's not very useful to have empty PLIST files, so warn about it. This
...
may happen when a package has been newly created and the print-PLIST
target has not yet been run.
2007-10-25 16:08:48 +00:00
joerg
a82568cd03
Make language lawyers happy and rename report_recipient to plural.
2007-10-17 20:42:30 +00:00
rillig
e304c3352a
LICENCE and ACCEPTABLE_LICENCES (British English) are deprecated.
2007-10-17 10:50:59 +00:00
rillig
f44cba8d1a
I just removed the $bulklog directory once again, due to running
...
bin/bulkbuild when instead I wanted to resume the bulk build. To prevent
this frustration, added a warning and a five second waiting period.
2007-10-15 07:26:34 +00:00
rillig
9d0009f173
Fixed the problem with package name matching that Klaus Heinz discovered
...
in http://mail-index.netbsd.org/tech-pkg/2007/10/14/0004.html
The pattern "pkg_install" matched "pkg-install-20070828", but "pkg*all"
didn't. Now it does.
2007-10-14 23:24:24 +00:00
rillig
095814e759
Updated the URLs for ftp.NetBSD.org, so that they will work after the
...
upcoming clean-up.
2007-10-13 19:38:27 +00:00
rillig
f07791f522
Whew. pkglint didn't know FAIL_MSG at all.
2007-10-13 08:57:09 +00:00
rillig
4de0af6841
FAIL_MSG may be a hidden command.
2007-10-13 08:55:48 +00:00
rillig
d37d9f955a
As pointed out in PR 37113, it is dangerous to set MAINTAINER
...
unconditionally in Makefile.common, so warn about it.
2007-10-12 20:16:01 +00:00
rillig
db967c35eb
X11_TYPE=xorg is no longer supported.
2007-10-12 07:04:15 +00:00
rillig
4d0642f1f2
When installing the bootstrap kit from a directory, correctly handle the
...
case when ${prefix} already exists.
2007-10-10 09:04:21 +00:00
martti
bd986edbc7
Remove trailing spaces.
2007-10-09 19:19:08 +00:00
kano
abdb54b351
fix obsolete URLs for www.NetBSD.org
...
close PR pkg/37071
reviewd by xtraeme@
2007-10-07 12:59:11 +00:00
rillig
bdf7f596d0
+ MISSING_FEATURES
2007-10-01 11:50:40 +00:00
rillig
b2af3dbd6f
On Solaris, at least the catpages can be installed. By the way, mandoc
...
pages cannot be processed with nroff -man. Since we already have the
preformatted files in the FILESDIR, what was the point of regenerating
them?
PKGREVISION++
2007-10-01 09:54:32 +00:00
rillig
9045d939ae
Marked _PKG_SILENT and _PKG_DEBUG as deprecated, added USE_FEATURES.
2007-10-01 07:51:09 +00:00
rillig
7bb29d5237
Honour the setting of MANINSTALL.
2007-09-29 13:39:22 +00:00
rillig
b59af9beee
There is no master/slave mode anymore.
2007-09-29 13:24:32 +00:00
joerg
dfcb17cf7f
- Be less aggressive when resizing the version field, just resize if
...
the old size is not enough. Fixes PR 37031.
- Disable dependency tracking in libarchive build. Supposed to address
PR 36953.
Bump version to 20070927.
2007-09-27 13:30:27 +00:00
wiz
6873775564
GConf, not GConf2; bump version to 2.7.
2007-09-25 13:59:42 +00:00
rillig
ca6b5bf2c5
Reverted two of my recent changes.
...
See: http://mail-index.netbsd.org/pkgsrc-changes/2007/09/21/0046.html
2007-09-22 00:12:33 +00:00
joerg
e1263c0baa
If dirfd is either a function or a macro, use it. If it doesn't exist,
...
but DIR contains dd_fd, define it as macro. Otherwise use -1 when
calling fts_safe_changedir in fts(3). Based on patch from Sean Boudreau.
2007-09-21 19:51:58 +00:00
joerg
f60512c785
Fully ANSIfy and use size_t and uint32_t in places where u_int was used
...
before. This fixes the build on QNX, where u_int is not exposed by the
current set of headers. Make the prototypes of the crypto functions
consistent.
2007-09-21 18:44:36 +00:00
joerg
7a57e890e0
Fix spelling of variable and add DESTDIR support.
2007-09-21 17:14:39 +00:00
rillig
468f3fe28a
Removed code duplication by calling the client-clean script.
...
Before removing prefix, fix the permissions. Everything inside that
directory must be writable and all directories must be searchable.
NetBSD's chmod has an option -P which I would have liked to use, but
POSIX requires only -R to be implemented. Therefore, it is possible that
permissions of files outside the prefix are changed due to symlinks.
The client-clean program promises to clean $prefix, so fail if that is
not possible. A common cause for this is that some files inside have
their flags set (see chflags(1) on NetBSD).
When installing the bootstrap kit, the source may be either a regular
file (which is then assumed to be a tar archive) or a directory (which
is copied directly). The latter option is new and allows for easier
changes of files once the bulk build has started.
2007-09-21 13:42:54 +00:00
rillig
a51fc4af4a
Only save PREFIX in a tar file if the package has reached the install
...
phase. This saves some disk space, and in most cases the contents of
PREFIX is not interesting before.
Added quotes around keep_wrkdir and keep_prefix because they were
missing in a previous version of the example configuration file.
2007-09-21 13:34:52 +00:00
rillig
de9db037a8
Thou shalt not nest double quotes in backticks, for the Solaris /bin/ksh
...
cannot handle it.
2007-09-21 09:08:08 +00:00
rillig
a3bbbc87b7
Finally fixed the bogus warnings in PHP extension packages concerning
...
the patch files.
2007-09-20 10:38:57 +00:00
rillig
bda3916463
Variables mentioned in SUBST_VARS.* are marked as used. An assertion in
...
that code had been proven wrong as is now gone.
PKG_USERS_VARS and PKG_GROUPS_VARS are added to BUILD_DEFS by the
infrastructure, so no warnings should be emitted for "unused" variables
in this case.
The comment for USE_LANGUAGE in combination with GNU_CONFIGURE is
considered to be intentional if it contains either of the words "c",
"empty" or "none".
2007-09-20 08:39:37 +00:00
abs
d9de31bed4
update pkg_chk to 1.87.
...
Make -k work with -l, so a missing package will still result in a list of
binary packages being displayed
2007-09-20 08:18:13 +00:00
joerg
79ba801833
Don't cache the allocated argv in a local static variable, just allocate
...
and free it.
2007-09-18 15:44:18 +00:00
joerg
5046845687
Remove EXPECT_DEBUG code and if(0)'ed call of setbuf.
2007-09-18 15:40:47 +00:00
joerg
7177f144cd
Make allocation errors fatal. Better than leaking memory in the error
...
case.
2007-09-18 15:38:10 +00:00
adrianp
7c6a237bbe
Add and document FETCH_PRE_ARGS, idea from David Sainty in PR #23899 .
...
This allows such settings as the following in audit-packages.conf:
FETCH_PRE_ARGS="env ftp_proxy://ftp.myproxy.com"
Which will be set before FETCH_CMD is run.
2007-09-17 22:40:27 +00:00
joerg
b770135e28
Fix a major memory leak in Dewey that existed sine ~forever.
...
This was made a lot more critical with the changes to use the iteration
API, as that is running a lot more Dewey comparisions.
Thanks to adrianp and wiz for the reports.
Bump to 20070916.
2007-09-16 19:03:52 +00:00
joerg
66a0cbeee0
Don't use u_char when uint8_t are meant. Don't mess with __attribute__,
...
conditionally use it in the only place it is used. This should fix
problems on QNX reported by Sean Boudreau.
2007-09-14 08:12:29 +00:00
rillig
992bf38f02
All variables named by SUBST_VARS.* are marked as being used.
...
Quoting warnings are only printed when -Wquoting is enabled.
2007-09-11 22:01:18 +00:00
joerg
72c8bdc51b
Bump to 20070911 for pkg_add -u fixes.
2007-09-11 14:55:52 +00:00
rillig
d091934e69
Replaced undefined behavior with an error message. We don't expect
...
absolute paths in the PLIST anyway.
2007-09-11 13:46:10 +00:00
rillig
6a27b7d10c
Removed unused variable.
2007-09-11 13:39:05 +00:00
rillig
e3b68da0ff
Applying sizeof() to a string parameter does not return the size of the
...
buffer, but the size of a pointer to a buffer. This makes pkg_add -u
work again. It failed before, trying to rename the +REQUIRED_BY file to
"/us" or "/va", depending on the value of PKGDBDIR.
2007-09-11 12:33:13 +00:00
rillig
6dc93e6b52
Cleaned up the TODO list from things I don't find worth implementing.
2007-09-10 07:38:46 +00:00
jlam
2761568ac2
Convert to use the features framework.
2007-09-08 21:57:57 +00:00
rillig
470ab0a92f
Removed the warning about pkg_add or pkg_delete "not running as root"
...
completely. It only made the code more bloated, and a user trying to add
or delete packages would get lots of "Permission denied" warnings
anyway.
2007-09-08 09:58:14 +00:00
rillig
775b3e4acb
Avoid EPERM errors from tar when installing packages as an unprivileged
...
user.
2007-09-08 09:45:22 +00:00
rillig
91c415b938
The WRKDIR and PREFIX can be saved in the log directory when a package
...
doesn't build properly. These options are off by default since they
require much disk space.
2007-09-07 15:51:53 +00:00
rillig
716ddb1f45
In unprivileged builds, the user running pkg_add and pkg_delete is
...
almost always an unprivileged user. So there's no point in printing a
warning in that case.
2007-09-07 15:45:14 +00:00
jlam
df7d10dbeb
Convert all libnbcompat/buildlink3.mk references to inplace.mk.
2007-09-06 21:51:52 +00:00
jlam
7c7115cdda
Drop libnbcompat/buildlink3.mk and force all packages that use
...
libnbcompat to use it "in place". libnbcompat is just really special,
and is of almost no use to anything other than the pkgsrc bootstrap
process.
2007-09-06 21:29:26 +00:00
jlam
09587da60b
Use only features available in nawk.
2007-09-06 21:19:42 +00:00
joerg
5c78e10908
If waitpid was interrupt for some reason, restart it. Error out on all
...
other negative return values or when errno != EINTR.
2007-09-06 21:16:12 +00:00
joerg
06fc161002
Fix build on QNX. From Sean Boudreau.
2007-09-06 21:08:08 +00:00
obache
a22621e7ed
Ensure undef before typedef, to avoid error when a application detect missing
...
types by itself and define (ex, pkgtools/pkg_install).
2007-09-04 09:47:38 +00:00
rillig
bf6beaf8cb
Fixed some internal pkglint errors.
2007-09-04 09:44:07 +00:00
rillig
fe7dfb9bf3
load_lines returns false on failure, not undef.
2007-09-04 09:34:20 +00:00
jlam
ac74037944
* When adding or checking a package using pkg_admin(1), give a more
...
meaningful warning if the file is a symlink whose target doesn't exist.
The message has now been changed from:
pkg_admin: netbsd32_compat30-extras: File `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' is in +CONTENTS but not on filesystem!
to:
pkg_admin: Symlink `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' exists and is in +CONTENTS but target does not exist!
* Pass values for --sysconfdir (and --prefix) to the configure script
instead of passing them through CPPFLAGS. Both SYSCONFDIR and PREFIX
are only used by audit-packages, and the audit-packages Makefile
already handles passing these values inherited from the configure
script. This avoids compiler warnings that, e.g. SYSCONFDIR has been
redefined on the command line.
* Fix quoting for arguments to the configure script -- :Q instead of
\"\".
Bump version to 20070828. Reviewed by <joerg>.
2007-08-29 15:42:39 +00:00
dillo
dfb18cea5b
Add FILE_NAME, the name of the binary package file.
...
Prompted by Jeremy, okayed by Joerg.
2007-08-29 14:15:50 +00:00
abs
d3d32b7cbe
Update pkg_chk to 1.86:
...
- Fix '-l' to list dependencies needed at runtime by each package, as
opposed to those at build time. Avoids issues such as 'jdk15' pulling
in sun-jdk & sun-jre
2007-08-27 15:28:54 +00:00
rillig
1e9fb5689a
Only gcc understands those -W* flags for warnings.
2007-08-25 09:33:57 +00:00
joerg
9286e87ae0
Drop -RELEASE and similiar components of the OS version on FreeBSD as
...
well.
2007-08-24 15:25:08 +00:00
rillig
b289c83c80
Clean up the old log files when retrying to build a package.
2007-08-24 07:17:46 +00:00
rillig
8e4f54e5cc
Added some comments to the configuration file, to help the uninitiated
...
reader.
2007-08-24 06:32:41 +00:00
wiz
4afb1ce7a3
regen.
2007-08-23 21:58:52 +00:00
wiz
065afff669
Replace reference to (obsolete) -M with tar(1). Bump date.
...
Requested by joerg.
2007-08-23 21:58:24 +00:00
heinz
9368c471eb
Added support for installation to DESTDIR.
2007-08-23 20:40:56 +00:00
joerg
6f95ca1670
xorg-dirs is gone. Bump to 4.79.
2007-08-23 09:47:37 +00:00
adrianp
92d3b5842c
Fix a bug in the processing of GPG in audit-packages.conf. This should fix
...
PR# 36773 opened by David A. Holland.
While we're here look for settings with no values in audit-packages.conf
and ignore them.
Tighten up processing of audit-packages.conf for the situation where
settings are specified multiple times. (report from joerg@).
2007-08-22 23:23:22 +00:00
joerg
731c214320
When looking for a package with a wildcard pattern, don't add the
...
suffix. find_best_matching_file does that already and doing it twice
is actually counterproductive. Bump to 20070821.
2007-08-21 07:11:42 +00:00
agc
3f175c6486
Add DESTDIR support
...
Make symbolic links to directories in the appropriate way
Change email addres sto match current preferences
2007-08-20 21:44:03 +00:00
agc
446a0e15d2
Add DESTDIR support
2007-08-20 21:42:26 +00:00
joerg
a9278bdbcb
x11/xorg-libs/version.mk was removed, catch up.
2007-08-18 00:20:56 +00:00
gdt
785779a3cc
Remove leading spaces from PKGNAME, to cope with an old bug.
2007-08-17 01:19:45 +00:00
joerg
1d9752887b
close is a function, fix C&P errors. From Aleksey Cheusov.
...
Bump version, remove pkgrevision.
2007-08-16 13:02:05 +00:00
joerg
6eee19dc11
Work around broken default visibility in Linux (PR 36790).
...
Linux has sin_len either (PR 36791).
2007-08-16 12:50:34 +00:00
tnn
38c78edf17
Revbump sweep of all libevent consumers due to update to libevent-1.3d.
2007-08-16 09:27:03 +00:00
joerg
020f22df97
Don't hard-code tar as tar, but make it an option and use the tool
...
version correctly. Fixes issues on platforms where the first tar
in path doesn't support -z. Bump to pbulk-0.12.
2007-08-15 21:10:54 +00:00
joerg
515bcbf499
Shorten wording.
2007-08-15 20:55:28 +00:00
joerg
7d8b7c6596
Fix grammar. From salo@
2007-08-15 20:52:02 +00:00
joerg
14b81a3089
Start abstracting pkgdb access by introducing pkgdb_pkg_file.
...
The function returns the path name of the given file for the package.
The memory needs to be freed by the caller.
2007-08-15 02:08:40 +00:00
joerg
66657d027d
Make _pkgdb_getPKGDB_DIR return const char * and fix fallout.
2007-08-15 01:49:02 +00:00
joerg
8d30fc2491
Bail out if the PLIST contains no @name field. This check existed since
...
the initial revision in 2002, so assume it just works...
2007-08-15 01:21:46 +00:00
joerg
ab17300d32
Split off the part dealing with already installed packages into
...
a subfunction.
Bail out if the package name doesn't have a version name.
Bail out if the internal rename failed (it was an assert before).
Invert some of the branches to cut off three levels of indirection.
2007-08-15 01:16:27 +00:00
joerg
6a1fd2334f
Add new option -m to pkg_add. This allows to override MACHINE_ARCH
...
for the purpose of installing a package and enables cross-compiled
pkgsrc to not use -f all the time.
Bump version to 20070815.
2007-08-14 22:47:51 +00:00
joerg
f8f97243e2
Fix indentation.
2007-08-14 13:15:58 +00:00
joerg
6a86f42a52
Merge tmppkg into main variable block and remove indentation.
2007-08-13 19:15:37 +00:00
joerg
0363bc546f
Check explictly for argc == 0 to find out if options where specified.
...
Don't depend on NULL termination of argv, count instead.
Remove more traces of slave mode.
2007-08-13 19:13:13 +00:00
rillig
6aecf48699
Added mk/misc/category.mk, which contains the definitions that are only
...
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is
also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13 08:12:41 +00:00
rillig
0505043778
Documented expect() and prepared pkglint for the upcoming introduction
...
of category.mk.
2007-08-13 08:08:44 +00:00
joerg
8ab021fab7
pkg_admin: when retrying with a wildcard pattern, use the computed
...
pattern and not the base name.
pkg_info: add -E option to return the best matching installed package.
Bump to 20070813.
2007-08-12 22:09:02 +00:00
joerg
386755f3cb
Restore ignorance of entry types for lsbest and lsall for now.
...
The check for already installed packages depends on being able
to run them in PKGDB_DIR. This is clearly obnoxius, but leave it
for later.
2007-08-12 18:54:08 +00:00
joerg
567020fab0
Reference correct variable.
2007-08-12 17:51:36 +00:00
joerg
7df87b070e
- Introduce find_best_matching_file and match_local_files. This replace
...
the functionality offered by findmatchingname and findbestmatching
name. They optionally strip the suffix from the filename before
matching it, instead of modifying the pattern directly.
Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.
Bump version to 20070812.
2007-08-12 16:47:17 +00:00
adrianp
5bc5a2248d
* Use stdout for printing results of vulnerable/eol packages found.
...
Reported by Greg Troxel on tech-pkg@
* Add -q which operates the same as 'pkg_info -q' and only displays
the package name of any vulnerable/eol packages found.
Suggestion by joerg@
* man page updates for -q
* Document the required permissions for audit-packages and
download-vulnerability-list in the man page.
2007-08-10 22:50:46 +00:00
joerg
3c81e91396
Remove comment about importing from NetBSD.
2007-08-10 22:42:13 +00:00
gdt
52887c8e10
Reword description of rebuild-tree, and point to pkg_delete -f as a
...
possible cause of inconsistencies. Remove comment about make replace,
since it does not, absent pkgsrc/mk bugs, result in incorrect
dependency records.
2007-08-10 22:39:13 +00:00
gdt
2c897a092e
pkg_delete In the list of options, note -ff option to remove {\bf
...
preserved} packages, and caution the reader that it is dangerous.
Ride hours-earlier version bump.
2007-08-10 22:29:49 +00:00
joerg
ded9371ddc
Not my day. If I write "return 0 when at least one match was found",
...
actually return 0...
2007-08-10 21:43:58 +00:00
joerg
0fa5f07e10
Add "rebuild-tree" command to pkg_admin. It recomputes the dependencies
...
and builds the +REQUIRED_BY files from that.
Bump to 20070810.
2007-08-10 21:18:31 +00:00
joerg
ea7045b735
Contrary to its comments, CheckForPkg is meant to print all matching
...
packages (see pkg_info -e). Restore this behaviour. Still print a
warning when the pkgdb can't be processed.
Reported by Daniel Horecki and pointed to the option by tnn@.
2007-08-10 15:37:51 +00:00
joerg
06cbbe0491
Don't use ld -x or ld -X. Bump version to 20070810.
...
Discussed with and tested by various people over the last two month.
This problem was exposed by pbulk.
2007-08-10 13:04:13 +00:00
wiz
00d71b8259
regen.
2007-08-10 01:12:02 +00:00
wiz
59bfde374f
More indent for tagged lists; add key to FILES and add
...
descriptions there.
2007-08-10 01:11:05 +00:00
joerg
0009d030c3
Actually assign variable that tells the caller that we got a match.
2007-08-10 00:03:51 +00:00
joerg
a4790010d4
Make var_set and var_get arguments always use full path names.
2007-08-09 23:54:17 +00:00
joerg
14862bcfd4
Remove @option extract-in-place support for now (will be the default
...
later) and document @option preserve in pkg_add(1).
2007-08-09 23:32:59 +00:00
joerg
7a51a218c2
Change interface of is_automatic_installed and
...
mark_as_automatic_installed to take a package name and not a full path.
Add assertions to test for this.
Drop a few islinktodir checks.
Change pkg_info to use iterate_pkg_db instead of scanning the directory
by hand. As a side effect don't try to check for the pkgdb dir first,
let pkgdb_dump and iterate_pkg_db handle that.
Make pkgdb_dump return failure if it can't open the package db.
2007-08-09 23:18:30 +00:00
joerg
710504e20a
Pass a number of strings around as const char *.
2007-08-09 23:06:42 +00:00
joerg
b847c0bf73
Fix segmentation fault when the package has no variables set and
...
no info file. Patch from Dieter Baron in pkg/36741.
Bump version to 20070809 for today's fixes.
2007-08-09 18:03:38 +00:00
joerg
9da2f994e0
Use the passed in string and Pkgdeps when calling strsep, fixing
...
processing of the build options. Reported by tron@ in PR 36754 and
Mark E. Perkins on pkgsrc-users.
2007-08-09 14:14:45 +00:00
joerg
1295367366
For user-destdir installation, we need to ues the REAL_ROOT_USER.
...
It doesn't hurt in the other cases, so do it consistently.
2007-08-09 14:12:35 +00:00
joerg
a50b83c42f
Add DESTDIR support.
2007-08-09 13:29:02 +00:00
joerg
5d2cdcf3b6
When matching a non-pattern (aka a base name), assign the correct
...
variable. This fixes pkg_info -e and in turn pkg_tarup.
2007-08-09 12:53:35 +00:00
joerg
f9b953763b
Replace note_whats_installed, add_to_list_fn and generally most
...
users of findbestmatchingname and findmatching name with more
descriptive and easier to use iterator functions. This functions
are a first step to abstract away pkgdb layout from most parts of
the code. It also helps to reduce side effects and point out potential
bugs in this code.
Fix a potential, but practically irrelevant buffer overflow.
No longer allow symbolic links directly in pkgdb to store the meta
data of individual packages outside. E.g. /var/db/pkg/atk-1.18.0
must be a directory and not point to it. This is not yet enforced in
all parts of the code, more changes will follow.
Bump version to 20070808.
2007-08-08 22:33:38 +00:00
wiz
a367b31fdf
New sentence, new line; use more markup; fix a typo.
2007-08-08 22:00:40 +00:00
tnn
8629b7a0f5
Fix build on Solaris by including fcntl.h, needed for O_RDONLY definition.
2007-08-08 12:21:14 +00:00
tnn
f32a62ac9e
pkg_rolling-replace-0.10:
...
- Abort if any of rebuild, unsafe_depends, unsafe_depends_strict are still
set after "make replace".
- Following changes in pkgsrc, does not replace by default if the
dependencies' ABI is still compatible.
- Add option -s that retains the old behaviour of always replacing.
- Add option -r for "replace only", this supresses creation of binary pkgs.
- The -n option has not been fully updated for these changes.
- versions 0.[7-9] were skipped to avoid any ambiguity from the 0.04 -> 0.5
transition.
2007-08-08 11:28:04 +00:00
wiz
892e6014df
Drop trailing whitespace.
2007-08-07 20:46:43 +00:00
lukem
a6b77a348a
No need for PKGREVISION for tnftp-20070806.
2007-08-07 05:05:04 +00:00
tnn
ad86fdd1e5
Update to pkg_rolling-replace-0.6:
...
- Explicitly unset 'unsafe_depends' and 'rebuild' tags after replacing.
Needed after changes in pkgsrc/mk/flavor/pkg/replace.mk, fixes PR 36738.
- Introduce ${PKG_ADMIN}, ${PKG_INFO}, ${PKG_CHK} variables instead of
calling the tools directly by name.
2007-08-06 15:07:56 +00:00
tnn
7b610949fe
Use full parameter lists in macros to avoid bogus replacements.
2007-08-05 22:06:11 +00:00
adrianp
0f8a3686bb
s//etc/${PKG_SYSCONFDIR}/
2007-08-05 17:21:50 +00:00