Commit graph

1669 commits

Author SHA1 Message Date
jlam
c65b1c3e4b Change the way the PLIST is generated. We now use a separate loop after
the files in the work directory are built to discover the directories
that need to be removed at deinstall time.  This fixes PR pkg/25325 by
Georg Schwarz.
2005-06-06 09:05:25 +00:00
jlam
be22067560 Fix the permissions on the directories installed by the x11-links
package in case the build user's umask is too strict.  This change is
mostly from the patch in PR pkg/29256 by Ian Leroux.
2005-06-06 08:42:53 +00:00
wiz
07a4a586a1 Remove USE_GIF. 2005-06-03 13:54:32 +00:00
wiz
cc0d324a0c Remove USE_IDEA. 2005-06-03 13:26:17 +00:00
wiz
f22fa09090 Remove USE_ESOUND. 2005-06-03 13:20:24 +00:00
wiz
540ce344e5 Include netdb.h for Solaris. From Neil Hoggarth in PR 30399. 2005-06-02 10:31:11 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
wiz
80d0469364 Fix grammar in comment. 2005-06-01 14:54:18 +00:00
abs
9e2946589a update pkg_chk to 1.59:
Fix fallout of 'sh -e' change in 1.58 - make pkg_chk -lb work again
2005-06-01 14:14:47 +00:00
wiz
e14eaa5810 Formatting improvements. Bump date for previous. New sentence, new line. 2005-06-01 11:38:45 +00:00
abs
7715a5d6f2 update pkg_chk to 1.58
- sort -l output so that dependencies always come before packages
  which depend upon them
- completely rework -u so that a list of packages to be update is generated,
  then all mismatched packages are removed, then the list is processed to
  add in packages. If -u is interrupted, a second run will resume the update
- update (-u) works with binary packages
2005-06-01 11:29:45 +00:00
rillig
80e3d86e1a Added PKG_PRESERVE, NO_PKGTOOLS_REQD_CHECK and NO_PKG_REGISTER. 2005-05-31 22:03:02 +00:00
rillig
89368bbb35 When checking the type of variables, the variable name must begin at the
beginning of a line. This fixes false warnings for variables that are
commented out. Added ${JAM_COMMAND} to the commands that may have
"install" or "test" as arguments.
2005-05-31 21:32:45 +00:00
rillig
c338f5dab6 Removed unused subroutine abspathname. Added the things it did to the TODO
list.
2005-05-31 21:15:06 +00:00
rillig
390ee38b79 Removed the -N command line option, which had been deprecated before.
Also removed -Cnewpkg. Instead, the warnings for new packages are only
emitted if the files have not yet been committed to CVS.
2005-05-31 20:44:02 +00:00
wiz
5baac3d7e2 Sync with base 1.53: Comment out too noisy warning. 2005-05-30 19:45:02 +00:00
wiz
810ffe10ac Update to 20050530:
Sync with base system: Ranges support and some other stuff that wasn't
pulled over.
2005-05-30 13:23:31 +00:00
minskim
36e75fce9c Sync with 20050529 in src/.
If a pattern does not have any suffix, assume that it matches both
".tbz" and ".tgz".  This allows to install binary package dependencies
that are not exact matches, but satisfy requirements.
2005-05-29 19:20:53 +00:00
dmcmahill
04a3acbd97 - pull in the changes from usr.sbin which prevent an over flow
of a 32 bit signed number when pkg_add-ing a binary package
  file larger than 512 Mb.

- Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050527
2005-05-28 02:50:45 +00:00
rillig
95d1b6957c Renamed -Wexpensive to -Wbl3. By default this option is enabled. Added a
subroutine checkfile_buildlink3_mk that performs the basic Makefile
checks on buildlink3.mk, if it exists.
2005-05-26 07:07:00 +00:00
rillig
697bd74e7e Added a command line option -Cexpensive, which enables more expensive
checks. Currently the effects are that buildlink3.mk files are read in.
Moved around code in checklines_direct_tools to allow $regex_tools to be
used in the list of legitimate shell commands. Added a new rule that
legitimates tool names inside double quotes.
2005-05-26 06:50:09 +00:00
rillig
9747906084 Renamed $distinfo to $distinfo_file, to match the pkgsrc variable name.
When calculating the value of $distinfo, PKGDIR gets replaced with $pkgdir.
2005-05-26 06:26:10 +00:00
rillig
5d0fbe27cc Reduced the debugging messages to the ones that provide useful context
or additional information about the further checking process.
2005-05-26 06:17:20 +00:00
rillig
5ed85b2808 Made the regular expression for direct use of tools in shell commands
stricter. Changed capturing groups into non-capturing groups. Added log
messages for legitimate uses of tools in shell commands and variables.
2005-05-26 05:52:34 +00:00
rillig
f41381460b Marked a bunch of warnings as "vague". These warnings are enabled by
default, but can be disabled by using the -Wno-vague command line
option. These warnings will be replaced step-by-step with new-style
warnings.
2005-05-26 00:16:36 +00:00
rillig
99d190a2ee Added the dirname($file) to the search path for include files when
scanning package Makefiles. Changed the output format to include a
newline where necessary. Added the search path to the error message.
This might fix PR 30322.
2005-05-25 17:41:18 +00:00
wiz
c8925d9c73 Sort options, mark up URL. 2005-05-25 16:53:59 +00:00
wiz
31a5af7870 Add: * fatal error if RMD160 missing 2005-05-25 13:12:10 +00:00
reed
4582a2f631 For DragonFly. This is from PR #30262 from Joerg Sonnenberger.
I didn't test under DraginFly myself.
2005-05-25 02:23:15 +00:00
rh
a1db503eb4 Make this compile and install on Darwin 2005-05-25 01:40:05 +00:00
rillig
9637ca8c4c Added EXTRACT_USING, INTERACTIVE_STAGE and MANSOURCEPATH to the list of
variables that accept direct tool names.
2005-05-25 01:07:24 +00:00
rillig
bf484e0863 In checklines_direct_tools, quote shell commands, too. Unquoted shell
commands are too hard to recognize.
2005-05-25 00:53:35 +00:00
rillig
2bbdfbed9b Fixed a regular expression in checklines_direct_tools. Added debugging
output.
2005-05-25 00:00:24 +00:00
rillig
3b9d17fc0b Minor wording fix. 2005-05-24 23:50:07 +00:00
rillig
bc3f2c494f Rewrote the part of detecting direct use of tools in variables and shell
commands. The warnings are precise (file, line, varname, shellcmd) and
can be easily translated into Perl code. They might even be placed in
external files someday.
2005-05-24 23:49:03 +00:00
rillig
f975a8d8d5 When converting USE_PERL5 to USE_TOOLS, the user might want to set
TOOLS_DEPMETHOD.perl=DEPENDS.
2005-05-24 21:29:59 +00:00
rillig
bca3a34da0 Made perl a run-time dependency. 2005-05-24 21:28:21 +00:00
rillig
db31dbdd4b Converted USE_PERL5 into USE_TOOLS. Changed the SUBST stage to
post-configure. Removed DISTVER variable.
2005-05-24 21:24:30 +00:00
rillig
5c413007cc Added USE_PERL5. Added a comment when these definitions may be removed. 2005-05-24 21:19:11 +00:00
rillig
af77e6d3c0 Removed ONLY_FOR_PLATFORM, as I could not see any reason to keep it. If you
really need it, please consider using NOT_FOR_PLATFORM instead.
2005-05-24 20:28:39 +00:00
rillig
f519bf67f7 Replaced the algorithm in check_category with one that is fast, correct and
always terminates. I somehow got the old algorithm into an endless loop.
2005-05-24 20:17:31 +00:00
rillig
dfb3e8627f Renamed category_check to check_category. Using $dir inside
check_directory, as opt_packagedir wasn't named appropriately.
2005-05-24 19:14:19 +00:00
rillig
b4b5823590 Added stricter checking for the RCS Id tags. Now they are always required
to be in the first line of a file, except for MESSAGE files. Rewrote the
warning for RCS Ids in patches (binary => no-keyword).
2005-05-24 18:56:37 +00:00
rillig
e53d0fa6c3 Bugfix release for lintpkgsrc. Now I know why some packages use
${.CURDIR} when including other Makefiles. This is no longer necessary.
Welcome to 4.17.
2005-05-24 15:39:05 +00:00
rillig
22f3d4bdbf Add "." to the list of .include directories when reading package
Makefiles. This fixes PR 30322.
2005-05-24 15:37:17 +00:00
rillig
8a0fc0bbf6 Keep all Makefile lines for processing. Replaced the algorithm for
detecting contiguous empty lines. Better checks for pkg/ directory.
2005-05-24 14:29:52 +00:00
rillig
d1f3a37bf8 Allow multiple USE_TOOLS+= lines. 2005-05-24 12:38:41 +00:00
rillig
4eaf0c5194 Marked USE_GNU_TOOLS as deprecated. 2005-05-24 10:54:20 +00:00
rillig
48ea185224 Write white-space like in SUSv3 and the man pages. 2005-05-23 09:31:20 +00:00
rillig
4cac391a07 Added NO_MTREE. 2005-05-23 09:26:53 +00:00