summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2005-06-01Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.jlam5-61/+55
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-01Fix grammar in comment.wiz1-2/+2
2005-06-01update pkg_chk to 1.59:abs2-4/+4
Fix fallout of 'sh -e' change in 1.58 - make pkg_chk -lb work again
2005-06-01Formatting improvements. Bump date for previous. New sentence, new line.wiz1-20/+37
2005-06-01update pkg_chk to 1.58abs3-233/+223
- 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-05-31Added PKG_PRESERVE, NO_PKGTOOLS_REQD_CHECK and NO_PKG_REGISTER.rillig1-1/+4
2005-05-31When checking the type of variables, the variable name must begin at therillig1-3/+3
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-31Removed unused subroutine abspathname. Added the things it did to the TODOrillig2-63/+4
list.
2005-05-31Removed the -N command line option, which had been deprecated before.rillig3-31/+24
Also removed -Cnewpkg. Instead, the warnings for new packages are only emitted if the files have not yet been committed to CVS.
2005-05-30Sync with base 1.53: Comment out too noisy warning.wiz1-2/+6
2005-05-30Update to 20050530:wiz17-108/+167
Sync with base system: Ranges support and some other stuff that wasn't pulled over.
2005-05-29Sync with 20050529 in src/.minskim2-5/+5
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-28- pull in the changes from usr.sbin which prevent an over flowdmcmahill4-19/+25
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-26Renamed -Wexpensive to -Wbl3. By default this option is enabled. Added arillig1-4/+25
subroutine checkfile_buildlink3_mk that performs the basic Makefile checks on buildlink3.mk, if it exists.
2005-05-26Added a command line option -Cexpensive, which enables more expensiverillig1-10/+17
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-26Renamed $distinfo to $distinfo_file, to match the pkgsrc variable name.rillig1-16/+17
When calculating the value of $distinfo, PKGDIR gets replaced with $pkgdir.
2005-05-26Reduced the debugging messages to the ones that provide useful contextrillig1-38/+16
or additional information about the further checking process.
2005-05-26Made the regular expression for direct use of tools in shell commandsrillig1-6/+10
stricter. Changed capturing groups into non-capturing groups. Added log messages for legitimate uses of tools in shell commands and variables.
2005-05-26Marked a bunch of warnings as "vague". These warnings are enabled byrillig1-61/+63
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-25Added the dirname($file) to the search path for include files whenrillig1-2/+8
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-25Sort options, mark up URL.wiz1-6/+6
2005-05-25Add: * fatal error if RMD160 missingwiz1-0/+1
2005-05-25For DragonFly. This is from PR #30262 from Joerg Sonnenberger.reed2-4/+4
I didn't test under DraginFly myself.
2005-05-25Make this compile and install on Darwinrh2-4/+4
2005-05-25Added EXTRACT_USING, INTERACTIVE_STAGE and MANSOURCEPATH to the list ofrillig1-3/+4
variables that accept direct tool names.
2005-05-25In checklines_direct_tools, quote shell commands, too. Unquoted shellrillig1-2/+2
commands are too hard to recognize.
2005-05-25Fixed a regular expression in checklines_direct_tools. Added debuggingrillig1-2/+5
output.
2005-05-24Minor wording fix.rillig1-2/+2
2005-05-24Rewrote the part of detecting direct use of tools in variables and shellrillig1-57/+80
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-24When converting USE_PERL5 to USE_TOOLS, the user might want to setrillig1-2/+2
TOOLS_DEPMETHOD.perl=DEPENDS.
2005-05-24Made perl a run-time dependency.rillig1-1/+2
2005-05-24Converted USE_PERL5 into USE_TOOLS. Changed the SUBST stage torillig1-7/+4
post-configure. Removed DISTVER variable.
2005-05-24Added USE_PERL5. Added a comment when these definitions may be removed.rillig1-1/+3
2005-05-24Removed ONLY_FOR_PLATFORM, as I could not see any reason to keep it. If yourillig1-3/+1
really need it, please consider using NOT_FOR_PLATFORM instead.
2005-05-24Replaced the algorithm in check_category with one that is fast, correct andrillig1-10/+14
always terminates. I somehow got the old algorithm into an endless loop.
2005-05-24Renamed category_check to check_category. Using $dir insiderillig1-13/+14
check_directory, as opt_packagedir wasn't named appropriately.
2005-05-24Added stricter checking for the RCS Id tags. Now they are always requiredrillig1-38/+34
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-24Bugfix release for lintpkgsrc. Now I know why some packages userillig1-2/+2
${.CURDIR} when including other Makefiles. This is no longer necessary. Welcome to 4.17.
2005-05-24Add "." to the list of .include directories when reading packagerillig1-1/+2
Makefiles. This fixes PR 30322.
2005-05-24Keep all Makefile lines for processing. Replaced the algorithm forrillig1-17/+16
detecting contiguous empty lines. Better checks for pkg/ directory.
2005-05-24Allow multiple USE_TOOLS+= lines.rillig1-2/+2
2005-05-24Marked USE_GNU_TOOLS as deprecated.rillig1-2/+3
2005-05-23Write white-space like in SUSv3 and the man pages.rillig1-3/+3
2005-05-23Added NO_MTREE.rillig1-1/+2
2005-05-23lintpkgsrc(1) honors the PKGLINT_FLAGS environment variable, which can berillig3-20/+34
used together with the -l option.
2005-05-23Fixed man page handling on platforms that don't have the mandoc macros.rillig1-14/+12
Together will all the other changes of the last days, this makes up version 4.16. Most changes affected the elimination of false warnings.
2005-05-23When opt_dumpmakefile is activated, only print the contents of the Makefilerillig1-3/+1
once, with line numbers.
2005-05-23Only warn about use of $(VARIABLE) if it is not preceded by another $.rillig1-2/+2
This avoids false positives in sed(1) expressions.
2005-05-23Fixed a bug introduced by the message normalization patch (forgot a !rillig1-2/+3
operator). Don't blame the user for using tool names in PKGSRC_USE_TOOLS and USE_TOOLS definitions, as this is what they are for.
2005-05-22Normalized capitalization of log messages.rillig1-181/+171