pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/posix_headers Since posix is a registered tra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27864407e75f
branches:  trunk
changeset: 542632:27864407e75f
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 23 21:08:18 2008 +0000

description:
Since posix is a registered trademark and this package by no means provides
nor intends to provide full posix(r) compatibility, I've decided to rename
it.

An improved version of the package will be re-imported later, probably
under the name "compat_headers".

diffstat:

 pkgtools/posix_headers/DESCR                    |    6 -
 pkgtools/posix_headers/Makefile                 |   34 -------
 pkgtools/posix_headers/buildlink3.mk            |   21 ----
 pkgtools/posix_headers/files/make.sh            |   17 ---
 pkgtools/posix_headers/files/math.h.in          |   30 ------
 pkgtools/posix_headers/files/math.h.tests       |   10 --
 pkgtools/posix_headers/files/resolv.h.in        |   16 ---
 pkgtools/posix_headers/files/resolv.h.tests     |    1 -
 pkgtools/posix_headers/files/stdint.h.in        |    8 -
 pkgtools/posix_headers/files/stdint.h.tests     |    2 -
 pkgtools/posix_headers/files/stdlib.h.in        |    9 -
 pkgtools/posix_headers/files/stdlib.h.tests     |    1 -
 pkgtools/posix_headers/files/subr.sh            |  111 ------------------------
 pkgtools/posix_headers/files/sys/select.h.in    |    3 -
 pkgtools/posix_headers/files/sys/select.h.tests |    1 -
 15 files changed, 0 insertions(+), 270 deletions(-)

diffs (truncated from 330 to 300 lines):

diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/DESCR
--- a/pkgtools/posix_headers/DESCR      Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-This package attempts to resolve deficiencies in system headers.
-These deficiencies are commonly found on older operating system releases.
-When use of posix_headers has been enabled on a platform, this package will
-become a compile-time dependency for every package. It will provide customized
-header files that take preference over some system provided ones (that may
-not even exist). This happens transparently through use of buildlink3.
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/Makefile
--- a/pkgtools/posix_headers/Makefile   Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile,v 1.9 2008/02/16 22:24:19 tnn Exp $
-
-DISTNAME=              posix_headers-0.6
-CATEGORIES=            pkgtools
-MASTER_SITES=          # empty
-DISTFILES=             # empty
-
-MAINTAINER=            tnn%NetBSD.org@localhost
-HOMEPAGE=              http://www.pkgsrc.org/
-COMMENT=               POSIX compatibility headers
-
-NO_PKGTOOLS_REQD_CHECK=        yes
-NO_CHECKSUM=           yes
-NO_MTREE=              yes
-NO_CONFIGURE=          yes
-PKG_DESTDIR_SUPPORT=   user-destdir
-
-PLIST_SRC=             ${WRKDIR}/PLIST_SRC
-REPLACE_SH+=           make.sh
-BUILDING_POSIX_HEADERS=        yes
-
-do-extract:
-       cp -R ${FILESDIR} ${WRKSRC}
-
-do-build:
-       cd ${WRKSRC} && ./make.sh
-       find ${WRKSRC} -name "*.h" | sed 's,${WRKSRC}/,,' > ${WRKSRC}/hfiles
-       cat ${WRKSRC}/hfiles | sed 's,^,include/,' > ${PLIST_SRC}
-
-do-install:
-       for f in `cat ${WRKSRC}/hfiles`; do \
-       ${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/include/$$f; done
-
-.include "../../mk/bsd.pkg.mk"
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/buildlink3.mk
--- a/pkgtools/posix_headers/buildlink3.mk      Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.5 2007/08/01 21:33:40 tnn Exp $
-
-BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
-POSIX_HEADERS_BUILDLINK3_MK:=  ${POSIX_HEADERS_BUILDLINK3_MK}+
-
-.if !empty(BUILDLINK_DEPTH:M+)
-BUILDLINK_DEPENDS+=    posix_headers
-.endif
-
-BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nposix_headers}
-BUILDLINK_PACKAGES+=   posix_headers
-BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}posix_headers
-
-.if !empty(POSIX_HEADERS_BUILDLINK3_MK:M+)
-BUILDLINK_API_DEPENDS.posix_headers+=  posix_headers>=0.5
-BUILDLINK_ABI_DEPENDS.posix_headers+=  posix_headers>=0.5
-BUILDLINK_PKGSRCDIR.posix_headers?=    ../../pkgtools/posix_headers
-BUILDLINK_DEPMETHOD.posix_headers?=    build
-.endif # POSIX_HEADERS_BUILDLINK3_MK
-
-BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/make.sh
--- a/pkgtools/posix_headers/files/make.sh      Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#! /bin/sh
-#
-# $NetBSD: make.sh,v 1.1 2007/08/01 21:33:40 tnn Exp $
-#
-# Please read subr.sh for a brief explanation of how this works.
-
-[ -z "$CC" ] && CC=gcc
-[ -z "$CPP" ] && CPP="$CC -E"
-
-HEADERS="math.h resolv.h stdlib.h stdint.h sys/select.h"
-
-. ./subr.sh
-
-for hdr in $HEADERS
-do
-       make_header $hdr
-done
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/math.h.in
--- a/pkgtools/posix_headers/files/math.h.in    Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#ifndef @floorf@
-@define floorf(x)      ((float)floor (x))
-#endif
-#ifndef @ceilf@
-@define ceilf(x)       ((float)ceil (x))
-#endif
-#ifndef @sinf@
-@define sinf(x)                ((float)sin (x))
-#endif
-#ifndef @cosf@
-@define cosf(x)                ((float)cos (x))
-#endif
-#ifndef @tanf@
-@define tanf(x)                ((float)tan (x))
-#endif
-#ifndef @asinf@
-@define asinf(x)       ((float)asin (x))
-#endif
-#ifndef @acosf@
-@define acosf(x)       ((float)acos (x))
-#endif
-#ifndef @atanf@
-@define atanf(x)       ((float)atan (x))
-#endif
-#ifndef @atan2f@
-@define atan2f(x,y)    ((float)atan2 (x, y))
-#endif
-#ifndef @sqrtf@
-@define sqrtf(x)       ((float)sqrt (y))
-#endif
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/math.h.tests
--- a/pkgtools/posix_headers/files/math.h.tests Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-scan_preproc|floorf| floorf(
-scan_preproc|ceilf| ceilf(
-scan_preproc|sinf| sinf(
-scan_preproc|cosf| cosf(
-scan_preproc|tanf| tanf(
-scan_preproc|asinf| asinf(
-scan_preproc|acosf| acosf(
-scan_preproc|atanf| atanf(
-scan_preproc|atan2f| atan2f(
-scan_preproc|sqrtf| sqrtf(
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/resolv.h.in
--- a/pkgtools/posix_headers/files/resolv.h.in  Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-#if !defined(@have_res_proto@) && defined(__hpux)
-@ifdef __cplusplus
-extern "C" {
-@endif
-ssize_t res_query(char*, int, int, u_char*, int);
-ssize_t res_search(char*, int, int, u_char*, int);
-ssize_t res_mkquery(int, const char*, int, int, const char*, int,\
-                       const char*, char*, int);
-ssize_t res_send(const char*, ssize_t, char*, int);
-int res_init();
-ssize_t dn_comp(const char*, u_char*, ssize_t, u_char**, u_char**);
-ssize_t dn_expand(const u_char*, const u_char*, const u_char*, u_char*, int);
-@ifdef __cplusplus
-}
-@endif
-#endif
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/resolv.h.tests
--- a/pkgtools/posix_headers/files/resolv.h.tests       Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-scan_preproc|have_res_proto|dn_expand
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/stdint.h.in
--- a/pkgtools/posix_headers/files/stdint.h.in  Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-#ifndef @have_stdint@
-#ifdef @have_inttypes@
-@include <inttypes.h>
-#endif
-@ifndef UINT_FAST32_MAX
-@define UINT_FAST32_MAX 0xffffffffU
-@endif
-#endif
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/stdint.h.tests
--- a/pkgtools/posix_headers/files/stdint.h.tests       Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-have_header|have_stdint|stdint.h
-have_header|have_inttypes|inttypes.h
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/stdlib.h.in
--- a/pkgtools/posix_headers/files/stdlib.h.in  Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#if !defined(@strtoll@) && defined(__hpux)
-@include <inttypes.h>
-@define strtoll(nptr, endptr, base) __strtoll(nptr, endptr, base)
-@define strtoull(nptr, endptr, base) __strtoull(nptr, endptr, base)
-#endif
-#if !defined(@strtoll@) && defined(__digital__) && defined(notyet)
-@define strtoll(nptr, endptr, base) strtol(nptr, endptr, base)
-@define strtoull(nptr, endptr, base) strtoul(nptr, endptr, base)
-#endif
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/stdlib.h.tests
--- a/pkgtools/posix_headers/files/stdlib.h.tests       Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-scan_preproc|strtoll| strtoll
diff -r 4977626a55b6 -r 27864407e75f pkgtools/posix_headers/files/subr.sh
--- a/pkgtools/posix_headers/files/subr.sh      Fri May 23 18:06:44 2008 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,111 +0,0 @@
-#
-# $NetBSD: subr.sh,v 1.1 2007/08/01 21:33:46 tnn Exp $
-#
-
-DIFS="$IFS"
-newline="
-"
-
-# The order in which files are generated by this script:
-#
-# someheader.h.tests --->  test_header() 
-#                                       \
-#                   someheader.h.in ---> +---> someheader.h.out ---+
-#                                                                  |
-#       someheader.h <--- someheader.h.pre <--- c preprocessor <---+
-#
-# someheader.h.tests:  Definitions of tests we want to perform on the system
-#                      supplied header. Each successfull test will cause a
-#                      @macro@ to be defined during the preprocessing stage.
-# someheader.h.out:    The result of the tests concatenated with the .in file.
-# someheader.h.pre:    The preprocessed output. In this file any compatiblity
-#                      definitions that weren't needed have been removed.
-# someheader.h:                The final header to be installed.
-#
-# The syntax used in test definitions is:
-#
-# test_function|test_name|argument
-# 
-# Example:
-#
-# scan_preproc|have_printf|printf
-#
-# If the above line would be used in the file stdio.h.tests, it would test
-# if the preprocessed output of <stdio.h> contains the string printf. If it
-# does, the macro @have_printf@ will be defined when parsing stdio.h.in.
-
-
-# Test if a given regexp can be found in the preprocessed output of the hdr.
-test_scan_preproc() {
-       IFS="$DIFS"
-       echo "#include <$hdr>" | $CPP - 2>/dev/null | grep "$1" > /dev/null
-       return $?
-}
-
-# Test if the specified header can be included.
-test_have_header() {
-       IFS="$DIFS"
-       echo "#include <$1>" | $CPP - > /dev/null 2>&1
-       return $?
-}
-
-# Prints the full absolute pathname to the file that is included by doing
-# #include <file.h>.
-real_header() {
-       echo "#include <$hdr>" | $CPP - 2> /dev/null |\
-               awk -F\" '/^\# 1 "\// {if(!done){print $2;done=1;}}'
-}
-
-# Prints the uppercase of $1 with some characters converted to underscore.
-toupper() {
-       echo "$@" | tr a-z A-Z | tr . _ | tr / _
-}
-
-# Run a single header test and print the result.
-do_test() {
-       testtype=$1
-       testname=$2
-       shift 2
-       testarg="$@"
-       IFS=""
-       if test_${testtype} $testarg
-       then
-               echo "#define PH_TEST_`toupper $hdr`_$testname 1"
-       fi
-}
-
-# Run all header tests for a header and print the result.
-test_header() {
-       IFS="$newline"
-       for line in `cat $hdr.tests`
-       do
-       IFS="|"
-       do_test $line
-       IFS="$newline"
-       done
-}
-
-# Test, preprocess and generate a header.
-make_header() {
-       hdr="$1"
-       HDR="`toupper $hdr`"
-       rm -f $hdr
-       test_header > $hdr.out



Home | Main Index | Thread Index | Old Index