Commit graph

1741 commits

Author SHA1 Message Date
seb
a47d96ceb9 Update to version 0.118: pkgdiff fix and tuning.
Fix the automagic tuning of the number of unified diff context
lines.  It was broken since previous commit to files/pkgdiff.

Also arguments '-u' and '-U NUM' to GNU diffutils 2.8.1, as seen
in NetBSD 2.0_STABLE and current, are not intended to be used
together. Hence only '-U NUM' is now specified. I did not reverted
to the '-u -NUM' form used before as it seems undesirable.

Please note that if PKGDIFF_FMT is specified in the environment,
for testing or debugging purposes, we skip the automagic tuning of
the number of unified diff context lines.  The user probably wants
to try another diff format, as suggested in the commit log of
revision 1.12 of files/pkgdiff. So there is no point in adding '-U
NUM' to PKGDIFF_FMT: it may just not work. See:

$ diff -c -U 1 /dev/null /dev/null
diff: conflicting output style options
diff: Try `diff --help' for more information.

While here save a few basename(1) runs.
2005-08-02 12:16:19 +00:00
rillig
2bce08d2bc Print warnings if the values of ${PKGNAME}, ${SVR4_PKGNAME},
${DISTNAME}, ${DISTFILES}, ${EXTRACT_SUFX} cannot be resolved
completely. It's better than proceeding with definitely unusable values.
2005-08-02 08:33:31 +00:00
rillig
5cf3e67b43 Some more speed optimization. 2005-08-01 23:54:09 +00:00
rillig
ddc2bad236 Converted PkgLint::FileUtils::Line to use an array instead of a hash for
saving the fields. This gives a 5 percent speed-up.
2005-08-01 22:29:13 +00:00
dmcmahill
c0d9814d89 update to cdpack-1.6.
- add -m, -o, and -r flags to optionally specify the machine-architecture
  operating system, and os version to be displayed in the generated README
  file.  From Greg Woods via private email.

- White space fixes from Greg Woods.

- Clean up the generated README file as well as several of the messages
  to reflect if the collection is a CD-ROM or DVD set.  Some patches from
  Greg Woods, more from me.

- List the tools used at runtime.
2005-08-01 21:47:43 +00:00
rillig
347db3598b Sppeded up the subroutines read_makefile and check_for_multiple_patches. 2005-08-01 21:28:06 +00:00
rillig
3496d25434 Added a new command line option --debug|d. It is currently used for
measuring the time spent in the main checking subroutines. Using that
function I discovered that method calls like $line->text are awfully
slow. The subroutine checkfile_PLIST spent half of its time in this
function call. Now it is almost twice as fast as before.
2005-08-01 21:02:30 +00:00
rillig
452f1079ac Simplified the code---no user-visisble changes. 2005-08-01 18:39:40 +00:00
rillig
656b775a63 More code cleanup. This time it's only white-space issues. 2005-08-01 18:03:37 +00:00
rillig
03037814cd Internal cleanup: moved some subroutines so that fewer forward
references are needed. As the return value of the checkfile_*
subroutines is not needed, it is not provided anymore. Some other small
changes, which all do not affect the actual output or behavior of
pkglint.
2005-08-01 17:06:56 +00:00
wiz
42cc128e46 Remove (commented out) USE_DB2 here too. 2005-08-01 15:40:19 +00:00
wiz
5347dad73a Remove another legacy var that was removed from pkgsrc before the previous branch. 2005-08-01 11:40:56 +00:00
wiz
e3990d3f87 Remove some legacy vars that were removed from pkgsrc before the previous branch. 2005-08-01 11:37:38 +00:00
wiz
9dc4f9590b Remove obsolete USE_PAM. 2005-08-01 10:55:42 +00:00
agc
f889f01b22 Update digest to version 20050731:
Pull in a patch from Vsevolod Stakhov via FreeBSD:

	Because that the 55-bytes input-message becomes just 64 bytes
	block after `the message terminator code(0x80)' and
	`size-field(8-bytes field)' are added.  Perhaps, I think the
	block of a lot of one be made at this time.

Fixes PR 30857
2005-07-31 22:45:24 +00:00
rillig
23eea97776 Inserted empty lines before elsif to make the code more readable. 2005-07-30 23:39:33 +00:00
rillig
8091e8ca7d The global variables are only needed when checking a package, not a
package category.
2005-07-30 23:35:24 +00:00
wiz
56e1c19167 Remove pkgconflict here too. 2005-07-30 21:28:06 +00:00
rillig
8250b297f7 Removed the package as it has not been working since 2001. Ok'ed by
wennmach.
2005-07-30 20:38:30 +00:00
he
829942b695 Allow PATCH_DIST_CAT in the PATCH_SITES section.
Bump version to 4.19.
2005-07-29 16:01:12 +00:00
reed
1014a5d2a8 Add xorg file which has common Xorg file entries.
Forgot in commit a few moments ago.

This was discussed on tech-pkg on July 7.
2005-07-25 20:54:00 +00:00
reed
1a9fbfd351 Added xorg support, based on if ${X11BASE}/lib/X11/config/xorgversion.def
exists. Added new files for the xorg related files.

Version is now x11-links-0.26.
2005-07-25 20:50:25 +00:00
hubertf
fd107baf6b Pull over change from src/usr.sbin/pkg_install:
| Modified Files:
|         src/usr.sbin/pkg_install/add: perform.c
|
| Log Message:
| cleanup: preserve errno. Needed so err() functions ran after running
|          cleanup(0) print the correct error message.
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.109 -r1.110 src/usr.sbin/pkg_install/add/perform.c
2005-07-25 13:13:00 +00:00
hubertf
c762ea0231 Pull over this change from src/usr.sbin/pkg_install (-current):
| Modified Files:
|         src/usr.sbin/pkg_install/add: extract.c
|
| Log Message:
| Fix 'pkg_add -R' handling - not registering really means not touching
| the pkgdb too - useful for pkg_add as non-root!
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.34 -r1.35 src/usr.sbin/pkg_install/add/extract.c
2005-07-25 13:03:59 +00:00
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