Commit graph

3116 commits

Author SHA1 Message Date
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