Commit graph

1717 commits

Author SHA1 Message Date
wiz
e730c49186 3.9: Update for pkg-config path change. 2005-07-21 16:25:05 +00:00
wiz
ffd1f9a21f Fix a typo and improve markup. 2005-07-21 09:07:38 +00:00
rillig
41fd3a3447 Updated and rewrote the man page. 2005-07-21 02:47:58 +00:00
rillig
9e5f485a2e Added a new subroutine log_subinfo that has an additional parameter
taking the name of the current subroutine. Removed unnecessary checks
for backup filenames.
2005-07-21 02:01:02 +00:00
rillig
20dd1b05f5 Changed debugging output to reflect the recent split of checkfile_Makefile. 2005-07-21 01:08:05 +00:00
rillig
e22a89a8ab The checkfile_Makefile subroutine is split into load_package_Makefile
and checkfile_package_Makefile. This made another command line option
-CMakefile possible, which allows Makefile checking to be switched off
(it is on by default).
2005-07-21 01:03:34 +00:00
rillig
72b09128cb In the diagnostic messages, multiple adjacent slashes are compressed to
one.
2005-07-21 00:19:11 +00:00
rillig
2020c428e0 Updated to be in sync with mk/replace.mk, revision 1.120. 2005-07-20 23:59:53 +00:00
rillig
5eac6ccafa Don't print "vague" diagnostics by default. A "vague" diagnostic is one
that has been in pkglint before I started hacking it. Mostly, they don't
contain a specific file location where to look for the cause or they are
generated using dubious code. The remaining warnings are only a few, but
they are mostly usable and valid.
2005-07-20 21:09:28 +00:00
rillig
634fbab5eb Don't show warnings for tool names that are enclosed in single quotes.
Replace ${PHPPKGSRCDIR} with ../../lang/php5 when expanding Makefile
variables. Show a warning if Makefile variables contain unresolved
substitutions after expanding them. Fixed a newly introduced bug that
prevented bsd.sites.mk from being found.
2005-07-20 21:04:16 +00:00
rillig
feedddadf3 Added a subroutine expand_variable that replaces certain known ${...}
substrings with reasonable values.
2005-07-20 18:20:27 +00:00
rillig
0e8288f766 Removed global variable for checking type conformity of Makefile variables. 2005-07-20 17:32:15 +00:00
rillig
4cd98ed128 Removed global variable %seen_Makefile_include. 2005-07-20 17:11:56 +00:00
rillig
0461cf930d Removed globally visible variable %predefined_sites. It is now a
"static" variable of the check_predefined_sites subroutine.
2005-07-20 17:08:59 +00:00
rillig
134872c680 Changed the default value of $pkgname from "" to undefined. 2005-07-20 16:56:24 +00:00
rillig
be35fe2dc1 Removed three more global variables. 2005-07-20 16:52:28 +00:00
rillig
696a1c3dc8 Removed global variable $pkgsrc_rootdir. 2005-07-20 16:38:10 +00:00
rillig
ff1cbbd6d6 The package's files are now processed by a large switch inside a loop
instead of many switches, each in its own loop. That way, each file is
only checked once.
2005-07-20 16:28:32 +00:00
hubertf
3d4abdba19 Sync over files from src/usr.sbin/pkg_install to fix PR pkg/30658:
Warn, but don't error out on pkgs that were built with IGNORE_RECOMMENDED.

Bump version to 20050718.
2005-07-18 09:14:04 +00:00
jlam
83147ffa68 Remove some unnecessarily strong dependencies on perl that resulted
from including perl5/buildlink3.mk.  These packages just need the Perl
interpreter, and can just add "perl" to USE_TOOLS instead.
2005-07-16 19:10:37 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
jlam
e26a9ed756 Drop support for TOOLS_DEPMETHOD.<tool>. The new way to specify a
run-time dependency (DEPENDS) on a tool is to append a ":run" modifier
to the tool name, e.g.,

	USE_TOOLS+=	perl:run

Tools without modifiers or with an explicit ":build" modifier will
cause build dependencies (BUILD_DEPENDS) on those tools to be added.
This makes the notation a bit more compact.
2005-07-15 20:14:02 +00:00
jlam
bf9129c41e Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
PKGSRC_USE_TOOLS go away.  There is now only a single USE_TOOLS variable
that specifies all of the tools we need to build/run the package.
2005-07-15 18:27:48 +00:00
rillig
65c501b6e6 Don't use reserved variable names (${_f_} => ${f}). 2005-07-05 01:09:17 +00:00
rillig
79ea6ab3c9 Removed the need for the global variable $opt_packagedir. No user-visible
changes.
2005-07-02 23:13:58 +00:00
rillig
c1037d8c75 Removed very old checks for files/md5, files/patch-sum, COMMENT and pkg/. 2005-07-02 22:31:17 +00:00
rillig
51b3b77959 Added a parameter to the checkfile_* subroutines that specifies the base
directory of the package. The other parameter, the file to check, is
always relative to the current directory.
2005-07-02 22:23:47 +00:00
rillig
e2d2fab6bc TODO: make all pathnames relative to the current directory. 2005-07-02 15:22:52 +00:00
rillig
2b6133ab33 The subroutine check_package gets the package directory as argument.
This is the first step to get rid of the global $opt_packagedir
variable. While doing this, I will hopefully notice all uses of relative
pathnames and repair them, so that pkglint can be called with multiple
arguments soon.
2005-07-02 15:21:13 +00:00
rillig
7d1d2b772c Restricted the warning option -Wsort to only apply to PLIST files and
therefore renamed it to -Wplist-sort. This option is disabled by default
to avoid excessive warnings. Apart from an unfounded suggestion
somewhere in the past, I don't see a reason why PLIST files should be
sorted. Remember: The option is still available, it's just disabled by
default.
2005-07-02 14:46:06 +00:00
rillig
76a7152077 Removed the check for expanded RCS tag completely, assuming no one will
ever need to distinguish between expanded and unexpanded RCS tags while
committing.
2005-07-02 12:02:58 +00:00
rillig
ebdbfd378d Clarified the warning message when an uncommitted file has an expanded
NetBSD RCS tag instead of an unexpanded one. A user had complained about
it.
2005-07-01 21:12:18 +00:00
seb
c7063627c4 This package's installation does not run mtree (NO_MTREE=yes) so use
INSTALLATION_DIRS to set up ${PREFIX}/man/man1.
2005-06-27 23:05:42 +00:00
rillig
607d58548d The subroutines checkfile_MESSAGE, checkfile_PLIST, checkfile_distinfo and
checkfile_patches_patch are called with path names relative to the current
directory, not to the package directory. The other subroutines will follow.
2005-06-27 19:28:08 +00:00
atatat
b1f7ff373a Actually use PKG_DBDIR and PKGSRCDIR values from the build process,
rather than just pretending to.  I know I meant this to work, but
somehow I forgot actually to make it work a long time ago.

Addresses a problem pointed out in private email.
2005-06-26 17:34:19 +00:00
rillig
7b546b206d Don't warn on empty scripts/ directories, which may occur during CVS
updates. Don't write logging messages for Makefiles that are being read
but for Makefiles that are included and for those whose inclusion is
skipped. Skip include files that contain Make variables. When checking
for direct use of shell commands, don't print the line continuation,
that is the trailing white-space and backslash. These changes lead to
pkglint-4.18.
2005-06-24 22:36:59 +00:00
jmmv
1d0097c87f Avoid creating an empty directory that is not used (and which didn't match
the PLIST).  Noticed by minskim@.
2005-06-19 14:42:48 +00:00
jlam
d0915c61c3 Fix inappropriate uses of ${LOCALBASE} or ${X11PREFIX} instead of
${PREFIX}.
2005-06-17 04:49:45 +00:00
jlam
e46a9dd380 Create directories before installing files into them. 2005-06-17 03:50:19 +00:00
jlam
2e07c2fb0d Update pkgtools/xpkgwedge to 1.14. Changes from 1.13 include using
the make required by the imake config files, which is specified by
${IMAKE_MAKE}.  This allows differing make programs to be used for
the main build versus xmkmf.
2005-06-14 20:12:51 +00:00
jlam
8be3e662e0 Update pkgtools/xpkgwedge to 1.13. Changes from version 1.12 include
invoking the make(1) program as "make" instead of hardcoding the
(wrong) path in ${MAKE_PROGRAM}.  This will rely on the tools framework
to have set up "make" to properly call the correct make(1) program.
This should fix cases where pkgxmkmf called the wrong make(1) program
on Linux systems.
2005-06-14 07:23:56 +00:00
rillig
16d5984a59 pkglint complains about empty DESCR files again. Fixes PR 30509. Updated
version number to 4.17.1.
2005-06-14 03:52:01 +00:00
jlam
6725d83ed5 Use += to not override previous USE_TOOLS setting. 2005-06-13 17:19:12 +00:00
jlam
5626c2a62f Update pkgtools/x11-links to 0.25. Changes from verison 0.24 include
synchronizing with the files listed in src/distrib/sets/lists/x* for
XFree86 4.5.0.
2005-06-10 03:44:07 +00:00
dmcmahill
b16a2ef3e0 add autoconf test for missing (like in openbsd-3.6) or broken (like
in AIX-4.3.2) PRIu64.  If it is missing or broken, provide one.  Should
address PR30375.  Welcome to pkg_install-20050607
2005-06-10 01:37:21 +00:00
rillig
25b5a911d7 Check for non-normalized dependency lines like package:../package instead
of package:../../category/package.
2005-06-07 17:53:08 +00:00
jlam
f7bc8ecc4c List shell tools that are needed by the pkg_view and linkfarm scripts. 2005-06-07 16:34:50 +00:00
jmmv
c0fc7c293d Update to 1.21:
- Make the EXTRA_MK variable be a list of files rather a single one.
  From brook at biology.nmsu.edu in PR pkg/30099.
- Directly recognize pkg_* commands to be executed within the sandbox
  (i.e., no need to use the chroot keyword).
  From Robert Elz in PR pkg/29749.
- Fix a typo in the manual page.
2005-06-06 18:50:07 +00:00
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