Commit graph

41 commits

Author SHA1 Message Date
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
wiz
b6160330f7 Update MASTER_SITES and/or HOMEPAGE, from Sergey Svishchev. 2006-10-04 21:53:15 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
minskim
e992931f9c USE_TOOLS+=lex 2006-06-21 18:33:51 +00:00
minskim
6e1ee94c8a USE_TOOLS+=yacc 2006-06-20 22:18:19 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
veego
815bc267a9 Add missing $NetBSD$ which was there when i generated distinfo. 2005-05-17 06:26:40 +00:00
veego
e57db3afa2 Don't initialize $(LD_SEARCH_FLAGS), which is used in the $(LD) link command.
Inspired by an patch from agc to tk83. Thx to krister for pointing that out
to me.
fix PR pkg/30241
2005-05-16 17:04:03 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
jlam
8b2040b409 Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
The wrapper will correctly set the CPP environment variable to a
stat((2)able path to a C preprocessor, then rely on the PATH to
find and invoke the real rpcgen.

Remove NO_EXPORT_CPP in package Makefiles where it was used just to
avoid problems with rpcgen.  The build system now just does the right
thing automatically without needing package-specific knowledge.

This fixes PR pkg/27272.
2004-12-18 19:24:26 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
he
0efe4873bb Add a patch to fix a race condition in the straps program. If
traps arrive in a steady stream, straps will exit before the client
(scotty) manages to connect, because traps are handled before new
client connections in straps.  Adds a sleep(3) first, and rearranges
the order of handling of these events, so that scotty can get around
to connecting as a client before the first trap is handled by straps.

Bump pkgrevision to 3.
2004-07-07 14:39:33 +00:00
minskim
286b465b38 - Use -ltcl and -ltk instead of -ltcl83 and -ltk83, which are
version-dependent.
- Buildlink tcl-scotty.
- Enable pkgviews installation.
2004-06-05 04:30:44 +00:00
minskim
91068be19e Enable pkgviews installation. 2004-06-04 14:48:59 +00:00
minskim
6c8483a9fd Use buildlink framework and switch to Tcl 8.4.
Bump PKGREVISION due to the tcl dependency change.
2004-06-04 14:47:02 +00:00
minskim
a273e6619e Remove tk from CATEGORIES sinec this package depends on tcl only. 2004-06-04 14:44:31 +00:00
he
83caf8d871 Unconditionally add TCL_LIBS to LIBS; needed to pick up -lpthread from
the TCL configuration on NetBSD-current.
2004-05-13 12:07:48 +00:00
he
4ec4bb2a1b Add NO_EXPORT_CPP=yes, since exporting CPP will confuse rpcgen when
CPP's value is just "cpp", since that's not stat(2)able.  Instead,
let rpcgen's default be used.
2004-03-09 09:33:48 +00:00
minskim
ac690cf634 Replace lang/tcl with lang/tcl83. Packages compatible with 8.4 will
be updated to depend on lang/tcl after Tcl/Tk update.
2004-03-08 19:52:50 +00:00
agc
3ad1bdbf06 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:18:15 +00:00
he
42670a0633 Centralize the specification of the version number, so that the
post-install target doesn't get out of sync and creates a symlink
pointing into empty space.  Package revision bumped to 1 since
this will modify a binary package.
2003-11-20 14:26:00 +00:00
martti
8cee801716 COMMENT should start with a capital letter. 2003-07-21 17:10:16 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jmmv
0916498c1b Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz. 2003-03-29 12:40:00 +00:00
cjep
4e7b759367 Add RCS tag. 2002-12-08 13:31:24 +00:00
jwise
33f597505f Update tcl-scotty to version 2.1.11 and tkined to version 1.4.11 (the version bundled with scotty-2.1.11)
Tnm changes since 2.1.10:

15/6/01 (bug fix) Fixed a buffer overrun in ntping. This is actually
the reason to make this bugfix release public.

2/11/99 (bug fix) Make sure that remaining job times do not increase if
the system clock moves backwards.

17/5/99 (bug fix) Make sure that commands bound to a recv event are
always evaluated.

6/4/99 (bug fix) Fixed a Y2K bug in tnmHttp.c (thanks to bkozuma@aol.com
for finding this problem).

23/3/99 (bug fix) Accept derived types (e.g. DisplayString) in a varbind
list.

9/3/99 (bug fix) Fixed bugs in straps.c which could cause security
problems due to buffer overruns or signed/unsigned conversion.

8/3/99 (new feature) Added the global tnm(cache) variable which points
to a directory where Tnm saves frozen MIB files. The default value for
tnm(cache) is compatible with previous 2.1.X releases.


Tkined changes since 1.4.10:

21/4/99 (bug fix) The size of the canvas is now independent from the
resolution of the display. Further, PostScript dumps should now fit
on the selected page size.
2002-11-25 17:53:20 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
wiz
433b62957e Move to sha1 checksum, and/or add distfile sizes. 2001-04-21 11:23:08 +00:00
agc
bbc67fac91 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:53:33 +00:00
wiz
a13ea108bb Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:52:59 +00:00
he
a5ab040e62 Redo the patch to tnmInit.c so that we don't test a now-uninitialized
variable (caused by other parts of that patch).  This lead to
precompiled MIB files being installed in "unknown-os" instead of
in "${MACHINE_ARCH}-${OPSYS}" when scotty was compiled with
optimization (which is the default), and subsequent mismatch between
installed files and PLIST.
2001-01-24 18:49:55 +00:00
he
2ebee49263 Depend on tcl>=8.3.2 instead of tcl-8.3.2 now that PKGNAME of tcl
is bumped to tcl-8.3.2nb1.
2001-01-24 18:44:57 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
jwise
348152bf7b Fix an obvious syntax error in patch-ae.
People should *really* test code before committing it.  _Especially_ in
packages which they are not the maintainer of...
2000-10-13 18:59:30 +00:00
he
39e2ba40df Open SNMP sockets with O_NONBLOCK (if available). In some odd
cases scotty can end up calling recvfrom() twice in a row with no
intervening select(), and can thus otherwise end up in a hang.
Fix supplied by Juergen Schoenwalder, received in private communication.
2000-10-02 19:27:53 +00:00
jwise
6cbe1f4fa0 Initial import of tcl-scotty, the Tnm (tcl network monitoring) module for
tcl, and the scotty interpreter, which has tnm built in.  Note that it is
expected that many users will choose to do

	#!/usr/pkg/bin/tclsh
	package require Tnm

instead of

	#!/usr/pkg/bin/scotty

This package and the pkgsrc/net/tkined package supplant the pkgsrc/net/scotty
package, updating the pkgsrc scotty support to scotty-2.1.10, and adapting it
to tcl/tk-8.3.2.

Changes to the scotty packages since scotty-2.1.8:

      * tcl-scotty and tkined are now separate packages.  tcl-scotty installs
	the tnm network monitoring extensions for tcl and the scotty interpreter,
	and can be installed on machines without x11, and by extension without
	tk.  tkined installs the program tkined, which is a (really cool)
	graphical network diagraming/discovery/monitoring app based on tnm.

changes to the tnm module itself since scotty-2.1.8:

----------------- Released 2.1.10, 29/10/98 -----------------------

22/9/98 (feature change) Changed the "--disable-multicast" configure
option to "--enable-multicast". This means that multicast support is
turned off by default.

15/9/98 (bug fix) Added additional tests to calls to inet_addr in
order to accept the value 255.255.255.255.

9/7/98 (bug fix) Make sure we return a Tcl error message when the
MIB parser detects an error.

8/7/98 (bug fix) Map the BITS data type to the underlying OCTET STRING
in the MIB parser.

8/7/98 (bug fix) Allow relative pathes in the tnm(mibs) variable so
that one can write "vendor/file.mib" and scotty will search for the
file in $tnm(library)/site/vendor/file.mib. (Suggestion and patch from
Joe Rogers <joe@usf.edu>.)

26/6/98 (bug fix) The code now accepts traps and informs with
arbitrary community strings. This behaviour is now consistent with the
way SNMPv3 folks look at the problem. The community string is passed
in the session handle to the callback.

25/6/98 (bug fix) Added back code to encode and decode Opaque values.

2/5/98 (bug fix) Fixed the MIB parser to use SEQUENCE as a default
type for unknown type names used in SYNTAX clauses. This solves some
problems with forward references by making a best guess.

2/5/98 (bug fix) Handle variables that can not be created by returning
an error message instead of dumping core.

----------------- Released 2.1.9, 23/4/98 -----------------------

23/4/98 (bug fix) Fixed the non-unique request ID bug. Added the
cleanup loop to close all unused file descriptors to straps.

25/2/98 (bug fix) Inclusion of <asm/byteorder.h> caused problems
and RedHat systems. We now use the configured WORDS_BIGENDIAN
value to determine the byte order in ntping.c

4/2/98 (bug fix) Fixed the selection of SNMP agents in the standalone
version of the mibtree script.
2000-09-07 17:38:39 +00:00