Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

Location:
vendor/current/source4/heimdal_build
Files:
4 added
5 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/heimdal_build/asn1_deps.pl

    r414 r740  
    2424my $header = "$dirname/$prefix.h";
    2525my $headerx = "$dirname/$prefix.hx";
     26my $headerpriv = "$dirname/$prefix-priv.h";
     27my $headerprivx = "$dirname/$prefix-priv.hx";
    2628my $o_file = "$dirname/asn1_$prefix.o";
    2729my $c_file = "$dirname/asn1_$prefix.c";
     
    3638print "$header: $headerx\n";
    3739print "\t\@cp $headerx $header\n";
    38 print "$x_file: $header\n";
     40print "$headerpriv: $headerprivx\n";
     41print "\t\@cp $headerprivx $headerpriv\n";
     42print "$x_file: $header $headerpriv\n";
    3943print "$c_file: $x_file\n";
    4044print "\t\@echo \"#include \\\"config.h\\\"\" > $c_file && cat $x_file >> $c_file\n\n";
  • vendor/current/source4/heimdal_build/config.h

    r414 r740  
    99#include "include/config.h"
    1010#include "../replace/replace.h"
     11#include "../lib/util/attr.h"
     12#define HEIMDAL_NORETURN_ATTRIBUTE _NORETURN_
     13#define HEIMDAL_PRINTF_ATTRIBUTE(x) FORMAT_ATTRIBUTE(x)
     14#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
    1115
    12 #if !defined(HAVE_DIRFD) && !defined(HAVE_DIRFD_DECL) && !defined(dirfd)
    13 #define dirfd(d) (-1)
    14 #endif
     16#define VERSION "Samba"
     17
     18#define PACKAGE VERSION
     19#define PACKAGE_BUGREPORT "https://bugzilla.samba.org/"
     20#define PACKAGE_VERSION VERSION
    1521
    1622#define RCSID(msg) struct __rcsid { int __rcsdi; }
     
    2834#undef HAVE_KRB5_ENCRYPT_BLOCK
    2935
    30 #if defined(UID_WRAPPER)
    31 #if !defined(UID_WRAPPER_REPLACE) && !defined(UID_WRAPPER_NOT_REPLACE)
    32 #define UID_WRAPPER_REPLACE
    33 #include "../uid_wrapper/uid_wrapper.h"
    34 #endif
    35 #else
    36 #define uwrap_enabled() 0
     36/* Because it can't be defined in roken.h */
     37#ifndef USE_HCRYPTO_IMATH
     38#define USE_HCRYPTO_IMATH
    3739#endif
    3840
     41/*Workaround for heimdal define vs samba define*/
     42#ifdef HAVE_LIBINTL_H
     43#define LIBINTL
    3944#endif
     45
     46/* heimdal now wants some atomic ops - ask for the non-atomic ones for Samba */
     47#define HEIM_BASE_NON_ATOMIC 1
     48
     49#endif
  • vendor/current/source4/heimdal_build/et_compile_wrapper.sh

    r414 r740  
    22#
    33
    4 SELF=$0
    5 SELFDIR=`dirname ${SELF}`
     4SELF="$0"
     5SELFDIR=`dirname "${SELF}"`
    66
    7 BUILDDIR=$1
    8 DESTDIR=$2
    9 
    10 CMD=$3
    11 FILE=$4
    12 SOURCE=$5
    13 shift 5
    14 
    15 test -z "${BUILDDIR}" && {
    16         echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2;
    17         exit 1;
    18 }
     7DESTDIR="$1"
     8CMD="$2"
     9FILE="$3"
     10SOURCE="$4"
     11shift 4
    1912
    2013test -z "${DESTDIR}" && {
     
    3831}
    3932
    40 CURDIR=`pwd`
     33CURDIR="`pwd`"
    4134
    42 cd ${BUILDDIR} && {
    43         ABS_BUILDDIR=`pwd`
    44         cd ${CURDIR}
    45 } || {
    46         echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
    47         exit 1;
    48 }
    49 
    50 cd ${DESTDIR} && {
    51         ${ABS_BUILDDIR}/${CMD} ${FILE} >&2 || exit 1;
    52         cd ${CURDIR}
     35cd "${DESTDIR}" && {
     36        # Remove older copies beforehand - MIT's compile_et uses odd permissions for these
     37        # files, which makes Heimdal's compile_et fail mysteriously when writing to them.
     38        rm -f `basename "${FILE}" .et`.c
     39        rm -f `basename "${FILE}" .et`.h
     40        "${CMD}" "${FILE}" >&2 || exit 1;
     41        cd "${CURDIR}"
    5342        TMP="${SOURCE}.$$"
    54         mv ${SOURCE} ${TMP} && {
    55                 echo "#include \"config.h\"" > ${SOURCE} && {
    56                         cat ${TMP} >> ${SOURCE}
     43        mv "${SOURCE}" "${TMP}" && {
     44                echo "#include \"config.h\"" > "${SOURCE}" && {
     45                        cat "${TMP}" >> "${SOURCE}"
    5746                }
    5847        }
    59         rm ${TMP}
     48        rm -f "${TMP}"
    6049} || {
    61         echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
     50        echo "${SELF}:cannot cd into '${DESTDIR}'" >&2;
    6251        exit 1;
    6352}
  • vendor/current/source4/heimdal_build/hdb-glue.c

    r414 r740  
    2020*/
    2121
    22 #include "includes.h"
    23 #include "system/network.h"
    24 #include "system/kerberos.h"
    25 #include "lib/socket/netif.h"
    26 #include "param/param.h"
    27 
    2822#include "heimdal/lib/hdb/hdb_locl.h"
    2923
  • vendor/current/source4/heimdal_build/krb5-glue.c

    r414 r740  
    2020*/
    2121
    22 #include "includes.h"
    23 #include "system/network.h"
    24 #include "system/kerberos.h"
    25 #include "lib/socket/netif.h"
    26 #include "param/param.h"
    27 
    2822#include "heimdal/lib/krb5/krb5_locl.h"
    2923
  • vendor/current/source4/heimdal_build/krb5-types.h

    r414 r740  
    99
    1010typedef socklen_t krb5_socklen_t;
     11typedef int krb5_socket_t;
    1112typedef ssize_t krb5_ssize_t;
    1213
  • vendor/current/source4/heimdal_build/replace.c

    r414 r740  
    8484}
    8585#endif
    86 
    87 const char *heimdal_version = "samba-internal-heimdal";
    88 const char *heimdal_long_version = "samba-interal-heimdal";
    89 
  • vendor/current/source4/heimdal_build/roken.h

    r414 r740  
    55#define _ROKEN_H_
    66
     7#include "config.h"
     8
     9/* Support 'weak' keys for now, it can't be worse than NTLM and we don't want to hard-code the behaviour at this point */
     10#define HEIM_WEAK_CRYPTO 1
     11
    712/* path to sysconf - should we force this to samba LIBDIR ? */
    813#define SYSCONFDIR "/etc"
    914
    10 /* HDB module dir - set to Samba LIBDIR/hdb ? */
    11 #define HDBDIR "/usr/heimdal/lib"
    12 #define LIBDIR "/usr/heimdal/lib"
     15#define rk_PATH_DELIM '/'
     16
    1317#define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
    1418
     
    2024#define PKINIT 1
    2125
    22 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
    23 
    24 #define VERSION "Samba"
    25 
    2626#define ROKEN_LIB_FUNCTION
    27 
     27#define ROKEN_LIB_CALL
     28#define ROKEN_LIB_VARIABLE
    2829#define GETHOSTBYADDR_PROTO_COMPATIBLE
    2930#define GETSERVBYNAME_PROTO_COMPATIBLE
     
    103104#endif
    104105
     106#ifndef HAVE_INET_NTOP
     107#define HAVE_INET_NTOP
     108#endif
     109
     110#ifndef HAVE_INET_PTON
     111#define HAVE_INET_PTON
     112#endif
     113
     114#ifndef HAVE_GETTIMEOFDAY
     115#define HAVE_GETTIMEOFDAY
     116#endif
     117
     118#ifndef HAVE_SETEGID
     119#define HAVE_SETEGID
     120#endif
     121
     122#ifndef HAVE_SETEUID
     123#define HAVE_SETEUID
     124#endif
     125
     126/* force the use of the libreplace strerror_r */
     127#ifndef HAVE_STRERROR_R
     128#define HAVE_STRERROR_R
     129#endif
     130#ifndef STRERROR_R_PROTO_COMPATIBLE
     131#define STRERROR_R_PROTO_COMPATIBLE
     132#endif
     133
     134#ifndef HAVE_DIRFD
     135#ifdef HAVE_DIR_DD_FD
     136#define dirfd(x) ((x)->dd_fd)
     137#else
     138#define dirfd(d) (-1)
     139#endif
     140#define HAVE_DIRFD 1
     141#endif
     142
     143
    105144/* we lie about having pidfile() so that NetBSD5 can compile. Nothing
    106145   in the parts of heimdal we use actually uses pidfile(), and we
     
    128167extern const char *heimdal_long_version;
    129168
     169/* we do not want any __APPLE__ magic */
     170#ifdef __APPLE__
     171#undef __APPLE__
    130172#endif
     173
     174#endif
Note: See TracChangeset for help on using the changeset viewer.