Commit graph

224 commits

Author SHA1 Message Date
joerg
1270427078 Don't mess with PKG_* as it is not required to build bootstrap
components and it interferes with normal builds.
2008-07-27 16:02:09 +00:00
joerg
e33690ba5d Make style more consistent. 2008-06-19 17:28:09 +00:00
joerg
4aa5709b48 libnbcompat-20080519:
Many of the hash function headers are incompatible with the OpenSSL
headers, so don't include them by default and require the caller to
include them on demand.
2008-05-19 12:52:57 +00:00
martin
d86d72404e Drop clauses 3 and 4 from TNF licenses 2008-04-29 05:46:08 +00:00
joerg
41548023fd libnbcompat-20080422:
Check if stdio.h declares vasprintf and snprintf and provide a prototype
otherwise.
2008-04-21 22:24:43 +00:00
joerg
b9495db99b Don't let a mathematican add numbers with less than 20 digits. Fix the
the offset for November and December and welcome libnbcompat-20080416.
2008-04-17 08:11:12 +00:00
joerg
6d93d84461 libnbcompat-20080404:
Add an implement of timegm(3) from nsd (based on Python code).
2008-04-04 15:20:33 +00:00
joerg
6279818d31 Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:20:00 +00:00
joerg
25637e137b Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:19:10 +00:00
joerg
46474f9f02 libnbcompat-20080322:
Add an option to force a BSDish getopt (e.g. one with optreset).
Use the correct macros to decide when to define optind and friends.
2008-03-21 23:28:08 +00:00
tnn
d3fa34a3c6 Introduce a variable, LIBNBCOMPAT_USE_PIC, which if set to yes before
including inplace.mk causes a PIC version of libnbcompat to be built
alongside the regular static libnbcompat.

This will be used to extend the features framework in two ways:
1) Support linking features into shared modules
2) Ability to cherry-pick individual objects to link from the libnbcompat
   build directory rather than linking the whole archive.
2008-02-22 04:07:55 +00:00
tnn
53c9094bb3 libnbcompat-20080221:
- Use AC_FUNC_VFORK, needed on IRIX to get missing vfork() defined
  to fork(). Ok by joerg.
2008-02-21 16:50:07 +00:00
tnn
c89a3c6b68 Move my code to two-clause license. 2008-02-14 19:14:54 +00:00
joerg
153a030a7f libnbcompat-20080212:
Add digest length defines for md5, rmd160 and sha1. Use
__BEGIN_DECLS/__END_DECLS. Drop _KERNEL conditionals.
2008-02-12 13:43:23 +00:00
rillig
13a034c937 At some place, it should be documented why libnbcompat is _not_
installed as a shared library but rebuilt for every package that needs a
certain feature. That place is either here or in files/README.
2007-11-20 18:55:25 +00:00
rillig
8f2787ea9e Inform the user when configuring libnbcompat. While here, fixed some
quoting issues. (They never caused anything to fail, but who knows what
will happen in the future?)
2007-11-20 18:15:23 +00:00
joerg
e1263c0baa If dirfd is either a function or a macro, use it. If it doesn't exist,
but DIR contains dd_fd, define it as macro. Otherwise use -1 when
calling fts_safe_changedir in fts(3). Based on patch from Sean Boudreau.
2007-09-21 19:51:58 +00:00
jlam
2761568ac2 Convert to use the features framework. 2007-09-08 21:57:57 +00:00
jlam
7c7115cdda Drop libnbcompat/buildlink3.mk and force all packages that use
libnbcompat to use it "in place".  libnbcompat is just really special,
and is of almost no use to anything other than the pkgsrc bootstrap
process.
2007-09-06 21:29:26 +00:00
jlam
09587da60b Use only features available in nawk. 2007-09-06 21:19:42 +00:00
obache
a22621e7ed Ensure undef before typedef, to avoid error when a application detect missing
types by itself and define (ex, pkgtools/pkg_install).
2007-09-04 09:47:38 +00:00
tron
ef97254c92 Include "bsd.prefs.mk" to avoid error messages from e.g. "pkg_chk".
Fix suggested by Joerg Sonnenberger.
2007-08-02 07:22:31 +00:00
joerg
f699d716e9 Allow libnbcompat to be used in cross-compiled packages.
Supported-by: Google SoC 2007.
2007-08-01 18:16:38 +00:00
joerg
0e17f71497 Don't use u_{char,short,int,long} as they are non-standard.
Bump version to 20070731.
2007-07-31 13:17:33 +00:00
tnn
c712efac2d No need to use the -p flag to cp(1) here. 2007-07-27 14:20:20 +00:00
tnn
310e0cf3e1 Another version bump due to added configure check for uintptr_t 2007-07-21 14:39:25 +00:00
tnn
dc991988c1 * configure.ac: Add AC_TYPE_UINTPTR_T, needed by sha2.c.
Fixes build on Interix. Suggested by joerg@
* configure, config.h.in: regen
2007-07-21 13:57:33 +00:00
tnn
f698f7ba2b Bump version due to changes in asprintf, snprintf and vsnprintf. 2007-07-20 00:32:01 +00:00
tnn
a4439a21a6 * configure.ac: Test for a standards-conformant vsnprintf. If it is found
to be broken, fall back to the one provided by libnbcompat.
* configure:    regen
* config.h.in:  regen
2007-07-20 00:21:02 +00:00
tnn
943cff783d Handle trailing NUL correctly. 2007-07-20 00:11:25 +00:00
tnn
4d407c5bcb Fix logic error in buffer handling (Hi Joerg!) 2007-07-20 00:10:06 +00:00
tnn
587152daa8 Replace "poor man's printf" implementation of (v)snprintf with an
imlementation using vfprintf. The advantage is that format strings behave
like other *printf functions on the host, the drawback is that it is slower.
2007-07-19 22:06:43 +00:00
joerg
9b00c3e863 Fix SHA256/SHA512 to work on strict alignment platforms. This was
exposed by the C version of audit-packages and report in PR pkg/36662.
2007-07-18 14:09:55 +00:00
dmcmahill
8b94264115 Protect TAILQ_INSERT_{AFTER,BEFORE} from being redefined. Lets
pbulk build on netbsd-2/alpha (and probably other netbsd platforms)
again.
2007-06-26 22:10:46 +00:00
joerg
c13f697f19 Add asprintf implementation based on snprintf.
Add vsnprintf prototype as the function is implemented and used.
Add all the macros from NetBSD's sys/queue.h defined for the types
implemented.
Bump version to libnbcompat-20070622.

Tested by dmcmahill@NetBSD.org on Solaris.
OK jlam@, agc@
2007-06-25 21:35:03 +00:00
joerg
1b2b5a9255 Obfuscate embedded $NetBSD$ strings a bit, so that pkgsrc doesn't pick
them up for +BUILD_VERSION. This makes matching against the output of
ident impossible to verify whether the package is up-to-date.
2007-06-19 00:45:13 +00:00
rillig
ed9f7c753d Updated libnbcompat to 20070531.
Changes since 20070507:

Completely rewrote the fgetln implementation, since the previous version
couldn't handle files that don't end with a '\n' character. Tested on IRIX,
NetBSD and Solaris.
2007-05-31 10:18:49 +00:00
tnn
40a096eee2 Add a couple of success reports. 2007-05-22 18:06:39 +00:00
joerg
953c56fd09 Fix bug in configure script, noticed by Thorsten Glaser. 2007-05-07 21:41:33 +00:00
joerg
a71c676de2 Add SHA256/SHA384/SHA512 to libnbcompat. Update version to 20070507. 2007-05-07 16:38:47 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
jschauma
ef55401d33 note a few platforms where I've confirmed this version of libnbcompat to
be working
2006-12-17 19:27:57 +00:00
seb
7abfde914a For the benefit of Mr. Kite^W^Wsnprint.c add long double type detection. 2006-08-26 21:28:21 +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
rillig
7c6b1da9c2 Indented the make directives properly to fix pkglint warnings. 2006-07-02 10:30:30 +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
joerg
70affd6c4b Update AC_C___ATTRIBUTE__ macro from heimdal, fixes detection with
GCC 4.
2006-03-01 16:47:54 +00:00
schwarz
68b7d980c7 added support for systems such as IRIX 5 that do not have _POSIX2_RE_DUP_MAX
defined. Changes approved by grant.
2005-11-28 20:47:29 +00:00