Commit graph

124 commits

Author SHA1 Message Date
rillig
5bd70c5633 Removed the block comments, as they were full of redundant words. 2007-12-02 11:29:22 +00:00
rillig
ec3566cb97 Use SIGUSR1 instead of SIGINT, since the latter may occur indepenently
and should be handled like everywhere else.
2007-11-22 10:08:38 +00:00
rillig
64068a6484 Exit if reduce-depends produces an error. 2007-11-22 09:59:59 +00:00
rillig
fb9095ac47 Replaced the usage message with a standard one.
"This is a" was redundant and has been removed.
2007-11-22 09:56:22 +00:00
rillig
f035607086 A little sanity checking prevents that a file called "=2.5" is created
in www/zope25-PropertyFolder because of the dependency pattern
"zope>=2.5<2.7".
2007-11-22 09:54:41 +00:00
tron
6daf841974 Don't warn that the "check", "info" or "list' target will be removed.
They are still in use and not really hard to maintain.
2007-11-19 14:59:40 +00:00
rillig
d4195ed2b9 Added a missing line continuation to prevent output of a shell command. 2007-11-17 14:00:55 +00:00
joerg
6794692960 Fix uninitialised variable resulting in wildcard patterns printed twice.
From Arnaud Lacombe in PR 37367.
2007-11-12 15:35:41 +00:00
rillig
9a68cfc082 show-installed-depends will not be removed. 2007-11-10 23:44:01 +00:00
rillig
7c3346811e Removed the "will be removed soon" marker for show-downlevel, since it
is documented in the pkgsrc guide and (since this commit) also
accessible via "bmake help".
2007-11-10 00:38:30 +00:00
rillig
bd4e2f8b16 The comment in the first paragraph says that the targets in this file
should probably removed. Check if they are really used by anyone, by
printing some warnings to stderr.
2007-11-07 17:39:02 +00:00
rillig
333ce170ee Removed some extra code that I had added years ago (bsd.pkg.mk 1.1610)
when pkg_create didn't print an error message on failure. If that should
ever happen again, we should fix pkg_create instead of adding code here.
2007-11-07 17:30:01 +00:00
rillig
26a8f20f44 Fixed the latest pkglint warnings. 2007-11-07 17:04:43 +00:00
gdt
1ddd7f3cd0 Replace ${PKG_SILENT}${_PKG_DEBUG} with ${RUN}, per pkglint. 2007-11-07 16:50:00 +00:00
gdt
8b83dcbd56 use ${OLDNAME} instead of OLDNAME to make it clear that it's a
make variable.  Pointed out by rilling/pkglint.
2007-11-07 16:29:49 +00:00
gdt
61acf9d422 Allow make replace to replace a package with a name other than the new
one, via "make replace OLDNAME=oldpkgname".

Enhance replace-names to use OLDNAME if present.  Move replace-names
target before replace-tarup, and change replace-tarup to use the
computed oldname. Make deinstall respect OLDNAME.

Tested on netbsd-current with standard make replace and with OLDNAME.
2007-11-07 13:50:09 +00:00
rillig
8945fb054b Simpler .include lines. 2007-10-31 12:07:13 +00:00
rillig
a4361cd6f5 Switched two words, so that the version number of the package appears to
the right instead of the (strictly) redundant word "found".
2007-10-14 07:42:31 +00:00
rillig
e4e9db758a Added CVS Id. 2007-10-01 10:08:20 +00:00
rillig
192098606d Documented the used environment variables. 2007-09-27 11:11:32 +00:00
gdt
41baa6d8fa revert previous; it has trouble in two many places and 1) a fix isn't
obvious 2) we're in freeze, so restore to working as quickly as
possible.
2007-09-22 15:19:47 +00:00
gdt
398104408b When replacing, use the oldname as found in work/.replace_oldname to
tar up, instead of PKGBASE.

This enables modifying that file to have a package that isn't
automatically found be the replace target, e.g., "echo libglade2-2.6.2
> work/.replace_oldname" after make replace fails to find a package to
tar up when doing make replace in libglade.
2007-09-21 15:13:55 +00:00
rillig
c05db5893e Instead of the overly verbose "Required installed package", the type of
dependency (bootstrap, build, full) is printed.

When building a package that pulls in the basic tools as dependencies,
it is good to know whether these are build or full dependencies, so the
additional information is useful.
2007-09-21 07:27:41 +00:00
rillig
842f8b2745 Replaced _PKG_SILENT _PKG_DEBUG with the shorter RUN. 2007-09-20 18:30:34 +00:00
rillig
1316235db9 Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN} and made the code simpler. 2007-09-07 17:01:10 +00:00
joerg
ae3dae849b Use the new pkg_add -m for cross-compiling instead of -f. 2007-08-15 13:20:57 +00:00
joerg
8eae292c51 Fix a number of bugs in the DESTDIR support:
- check-perms.mk was not DESTDIR aware, prefix files before passing it
  to the directory extraction
- PKG_FILELIST_CMD was calling pkg_info, which is fine for normal
  installation, but fails of course for DESTDIR. Just drop the @ lines
  from ${_DEPENDS_PLIST} and use that.
- To make he former work, ensure that _flavor-generate-metadata is part
  of _INSTALL_ALL_TARGETS. It was normally a dependency of
  _flavor-register, but that is skipped for DESTDIR.
- Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-14 23:58:24 +00:00
jlam
fe9b8d7edd Don't remove the whole metadata directory in _flavor-clean-metadata...
instead only remove the files generated by _flavor-generate-metadata.
This should preserve the +INSTALL and +DEINSTALL scripts (which are
created during the "build" phase") across a "make update" or a "make
deinstall".
2007-08-14 21:32:17 +00:00
gdt
28ac528511 Factor out _REPLACE_NEWNAME_CMD.
Use $$newname consistently rather than $PKGBASE and $PKGNAME.
Rationalize @ with STEP_MSG.
Ensure ${RUN} is used once, and all commands are included.
2007-08-13 14:18:23 +00:00
rillig
5002a8e475 Made the code simpler:
- Replaced ${_PKG_SILENT}${_PKG_DEBUG} with ${RUN},
- Moved the code to load oldname into a macro.
2007-08-13 08:33:45 +00:00
gdt
1d2084981e add missing \, reported my Mark Perkins 2007-08-11 14:18:05 +00:00
gdt
2a32611320 store +REQUIRED_BY and +INSTALLED_INFO in work/.replace-FOO rather
than in work/.pkgdb, so as not to lose them in install-clean.
Because of this, put them back explicitly.
(Fixes 'make replace loses +REQUIRED_BY', and also the unreported
'make replace loses +INSTALLED_INFO'.)
2007-08-10 17:57:28 +00:00
jlam
be040a55a4 Rename the generate-metadata and clean-metadata targets to _flavor- style
names to indicate that they are purely private to flavor/pkg.
2007-08-10 04:03:23 +00:00
jlam
6ea0c2868e Remove ${WRKDIR}/.pkgdb during "install-clean" as that directory
contains files that are generated during the "install" phase.  This
should fix the problem where PLIST modifications were ignored if the
PLIST was modified between a "make deinstall" and a "make reinstall".
2007-08-10 04:00:43 +00:00
jlam
7ea1d9339e Skip blank lines in +REQUIRED_BY files so that we don't error out trying
to locate the +CONTENTS file for a "blank" package.

Why are there blank lines at all in +REQUIRED_BY?
2007-08-08 16:39:05 +00:00
tnn
d5062d2372 Need to also unset unsafe_depends_strict along with unsafe_depends here. 2007-08-08 11:35:16 +00:00
gdt
873cb31073 Change the meaning of unsafe_depends to mean that a dependency has
been replaced which might have had an ABI change.  In practice, a
package is considered to maybe have had an ABI change if the version
changes.  Introduce a new tag unsafe_depends_strict, which is
unconditionally set on depending packages whenever make replace is
done.

This will cut down considerably on the amount of rebuilding required
with pkg_rolling-replace, while still guaranteing that packages are
rebuilt if there was an ABI change in a dependency.
2007-08-08 02:07:27 +00:00
gdt
f435245a77 Improve previous: Per tnn@ suggestion, don't do pkg_admin unset unless
+INSTALLED_INFO is present, to avoid complaint from pkg_admin (see
pkg/36741).  Separate tag removal into a separate target, and use
STEP_MSG and _PKG_DEBUG properly.
2007-08-08 01:44:24 +00:00
gdt
d5af98e19c Remove unsafe_depends and rebuild tags from a package just before
fixing up the required-by file.  The invariant on unsafe_depends (on
which pkg_rolling-replace depends) is once again maintained, but now
cleanly, rather than assuming that all tags are cleared.

(proposed on tech-pkg with no objections, and concurrence from tnn@)
2007-08-07 22:27:12 +00:00
adrianp
e67737df3a Use ${PKGTOOLS_VERSION} when detecting which version of pkg_install is
installed.  Idea from one of joerg@'s patches.
2007-08-04 11:21:08 +00:00
joerg
34c60ba2a2 Update _USE_DESTDIR=full handling to use the new -u/-g code and
require pkg_install-20070802 for using it. It is now considered
to work correctly and ready for general consumption.
2007-08-03 14:03:39 +00:00
jlam
e92540b3b8 Preserve any existing +INSTALLED_INFO file from an installed package
before replacing it, and restore it when the new package is installed.
This saves any state information that should be carried over to the
new package, e.g. automatic=yes.

XXX Still need to do the same when "un-replacing".
2007-08-02 23:00:18 +00:00
joerg
005620851f Add core of the infrastructure support for cross-compilation.
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of
  the target filesystem
- derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR
- buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR
- compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf)
- PKG_DBDIR is prefixed with _CROSS_DESTDIR
- package-install and bin-install are not called with su
- install and strip are redirected to the tool version
- links for the target specific ar, as, ld, nm, objdump, ranlib and
  strip are added
- compiler wrapper detect if linking is requested or not
- special command sinks for CPP and CC/CXX add the cross-compile magic:
  - modify include dirs to get the target /usr/include
  - modify linker dirs and runpath to use target /usr/lib at link time,
    but keep correct rpath entries

Supported-by: Google SoC 2007
Basic tests by he@ on Sparc. Review from jlam@.
2007-08-02 18:19:31 +00:00
adrianp
9b5c38d79d Add support for the upcoming pkg_install-20070714 which now includes
audit-packages.
2007-07-14 17:17:45 +00:00
joerg
34d85224d6 Don't cd to PREFIX, it might not exist yet. bin-install doesn't do
that either.
2007-07-13 14:42:53 +00:00
joerg
409b183fc0 Remove USE_MTREE support. Keep one copy (the NetBSD version) for
the purpose of print-PLIST in plist/common-dirs.mtree.

Discussed with wiz@, no objections on tech-pkg@.
2007-07-02 14:54:09 +00:00
rillig
0f21e6fc1c When a recursive make is run, stdin must be preserved. Otherwise su(1)
cannot ask for a password and fails. Patch provided by OBATA Akio in
http://mail-index.netbsd.org/pkgsrc-users/2007/04/23/0001.html
2007-06-15 10:39:08 +00:00
joerg
f3cceb12c3 Alter the pattern to detect upper limits to actually match some real
patterns. Otherwise the upper bound would silently get dropped.
2007-06-10 07:31:42 +00:00
jlam
bf1aa1dd87 Back out previous and always define the shell variable $silent
appropriately again based on the value of _BOOTSTRAP_VERBOSE.  This
code was lost in revision 1.27.

This should again suppress the output during "mirror-distfiles" in the
case where the bootstrap dependency is already installed.
2007-06-07 15:30:26 +00:00
rillig
fb21124de0 The variable $silent may be undefined, not only empty.
(This is needed for changing the "set -e" to "set -eu" in the ${RUN} macro.)
2007-06-05 13:19:10 +00:00