Import of pkgsrc-2014Q1
This commit is contained in:
13
sysutils/bacula/patches/patch-src_bacula.h
Normal file
13
sysutils/bacula/patches/patch-src_bacula.h
Normal file
@@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-src_bacula.h,v 1.1 2014/02/01 19:41:31 joerg Exp $
|
||||
|
||||
--- src/bacula.h.orig 2014-01-31 20:01:28.000000000 +0000
|
||||
+++ src/bacula.h
|
||||
@@ -186,6 +186,8 @@ extern "C" {
|
||||
#undef _
|
||||
#undef free
|
||||
#undef malloc
|
||||
+#undef Enter
|
||||
+#undef Leave
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_WIN32)
|
||||
@@ -1,19 +1,26 @@
|
||||
$NetBSD: patch-src_console_conio.c,v 1.1 2012/10/06 17:54:53 christos Exp $
|
||||
$NetBSD: patch-src_console_conio.c,v 1.3 2014/01/22 10:45:21 jperkin Exp $
|
||||
|
||||
- need termios.h, our term.h does not include it
|
||||
- t_insert_line and t_delete_line are macros in term.h; undef them
|
||||
- spell HAVE_TERM_H correctly
|
||||
|
||||
--- src/console/conio.c.orig 2012-09-13 04:51:19.000000000 -0400
|
||||
+++ src/console/conio.c 2012-10-05 11:29:38.000000000 -0400
|
||||
@@ -61,6 +61,7 @@
|
||||
--- src/console/conio.c.orig 2013-02-19 19:21:35.000000000 +0000
|
||||
+++ src/console/conio.c
|
||||
@@ -64,11 +64,12 @@
|
||||
|
||||
#endif
|
||||
#ifdef HAVE_CONIO
|
||||
|
||||
+#include <termios.h>
|
||||
#include <curses.h>
|
||||
#include <term.h>
|
||||
|
||||
@@ -245,7 +246,9 @@
|
||||
#if defined(HAVE_SUN_OS)
|
||||
-#if !defined(_TERM_H)
|
||||
+#if !defined(HAVE_TERM_H)
|
||||
extern "C" int tgetent(void *, const char *);
|
||||
extern "C" int tgetnum(const char *);
|
||||
extern "C" char *tgetstr (const char*, char**);
|
||||
@@ -250,7 +251,9 @@ static char * getnext(void);
|
||||
static char * getprev(void);
|
||||
static void putline(char *newl, int newlen);
|
||||
static void t_honk_horn(void);
|
||||
|
||||
13
sysutils/bacula/patches/patch-src_lib_md5.c
Normal file
13
sysutils/bacula/patches/patch-src_lib_md5.c
Normal file
@@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-src_lib_md5.c,v 1.1 2013/11/06 16:00:05 joerg Exp $
|
||||
|
||||
--- src/lib/md5.c.orig 2013-11-06 15:37:34.000000000 +0000
|
||||
+++ src/lib/md5.c
|
||||
@@ -173,7 +173,7 @@ void MD5Final(unsigned char digest[16],
|
||||
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
|
||||
byteReverse((unsigned char *) ctx->buf, 4);
|
||||
memcpy(digest, ctx->buf, 16);
|
||||
- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
|
||||
+ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
|
||||
}
|
||||
|
||||
|
||||
54
sysutils/bacula/patches/patch-src_plugins_fd_fd__common.h
Normal file
54
sysutils/bacula/patches/patch-src_plugins_fd_fd__common.h
Normal file
@@ -0,0 +1,54 @@
|
||||
$NetBSD: patch-src_plugins_fd_fd__common.h,v 1.1 2013/11/06 16:00:05 joerg Exp $
|
||||
|
||||
Replacements for new and delete must be global according to ISO C++.
|
||||
This file is only used by a test case, so just drop them.
|
||||
|
||||
--- src/plugins/fd/fd_common.h.orig 2013-11-06 15:38:19.000000000 +0000
|
||||
+++ src/plugins/fd/fd_common.h
|
||||
@@ -71,46 +71,6 @@ DLL_IMP_EXP void reallyfree(const char *
|
||||
#define malloc(s) sm_malloc(__FILE__, __LINE__, (s))
|
||||
#define free(o) sm_free(__FILE__, __LINE__, (o))
|
||||
|
||||
-inline void *operator new(size_t size, char const * file, int line)
|
||||
-{
|
||||
- void *pnew = sm_malloc(file,line, size);
|
||||
- memset((char *)pnew, 0, size);
|
||||
- return pnew;
|
||||
-}
|
||||
-
|
||||
-inline void *operator new[](size_t size, char const * file, int line)
|
||||
-{
|
||||
- void *pnew = sm_malloc(file, line, size);
|
||||
- memset((char *)pnew, 0, size);
|
||||
- return pnew;
|
||||
-}
|
||||
-
|
||||
-inline void *operator new(size_t size)
|
||||
-{
|
||||
- void *pnew = sm_malloc(__FILE__, __LINE__, size);
|
||||
- memset((char *)pnew, 0, size);
|
||||
- return pnew;
|
||||
-}
|
||||
-
|
||||
-inline void *operator new[](size_t size)
|
||||
-{
|
||||
- void *pnew = sm_malloc(__FILE__, __LINE__, size);
|
||||
- memset((char *)pnew, 0, size);
|
||||
- return pnew;
|
||||
-}
|
||||
-
|
||||
-#define new new(__FILE__, __LINE__)
|
||||
-
|
||||
-inline void operator delete(void *buf)
|
||||
-{
|
||||
- sm_free( __FILE__, __LINE__, buf);
|
||||
-}
|
||||
-
|
||||
-inline void operator delete[] (void *buf)
|
||||
-{
|
||||
- sm_free(__FILE__, __LINE__, buf);
|
||||
-}
|
||||
-
|
||||
#define Dmsg(context, level, ...) bfuncs->DebugMessage(context, __FILE__, __LINE__, level, __VA_ARGS__ )
|
||||
#define Jmsg(context, type, ...) bfuncs->JobMessage(context, __FILE__, __LINE__, type, 0, __VA_ARGS__ )
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
$NetBSD: patch-src_tools_Makefile.in,v 1.1 2012/10/06 17:54:53 christos Exp $
|
||||
$NetBSD: patch-src_tools_Makefile.in,v 1.2 2014/01/14 10:58:17 markd Exp $
|
||||
|
||||
- use the .la files for linking
|
||||
- remove tests that don't link (using functions not in libraries)
|
||||
|
||||
--- src/tools/Makefile.in.orig 2012-09-13 04:51:19.000000000 -0400
|
||||
+++ src/tools/Makefile.in 2012-10-05 11:13:02.000000000 -0400
|
||||
@@ -37,7 +37,7 @@
|
||||
--- src/tools/Makefile.in.orig 2013-02-19 19:21:35.000000000 +0000
|
||||
+++ src/tools/Makefile.in
|
||||
@@ -35,7 +35,7 @@ EXTRAOBJS = @OBJLIST@
|
||||
DIRCONFOBJS = ../dird/dird_conf.o ../dird/ua_acl.o ../dird/run_conf.o ../dird/inc_conf.o
|
||||
|
||||
NODIRTOOLS = bsmtp
|
||||
-DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch bregtest bvfs_test ing_test bpluginfo
|
||||
+DIRTOOLS = bsmtp dbcheck drivetype fstype testfind bregex bwild bbatch bregtest ing_test bpluginfo
|
||||
-DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch bregtest bvfs_test ing_test bpluginfo timelimit
|
||||
+DIRTOOLS = bsmtp dbcheck drivetype fstype testfind bregex bwild bbatch bregtest ing_test bpluginfo timelimit
|
||||
TOOLS = $(@DIR_TOOLS@)
|
||||
|
||||
INSNODIRTOOLS = bsmtp
|
||||
@@ -58,22 +58,22 @@
|
||||
@@ -56,22 +56,22 @@ all: Makefile $(TOOLS) gigaslam grow
|
||||
@echo " "
|
||||
|
||||
bsmtp: Makefile bsmtp.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
|
||||
@@ -42,7 +42,7 @@ $NetBSD: patch-src_tools_Makefile.in,v 1.1 2012/10/06 17:54:53 christos Exp $
|
||||
$(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
|
||||
|
||||
dird_conf.o: ../dird/dird_conf.c
|
||||
@@ -91,34 +91,34 @@
|
||||
@@ -93,34 +93,34 @@ timelimit: timelimit.o
|
||||
testfind: Makefile ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) \
|
||||
../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) $(FINDOBJS)
|
||||
$(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -o $@ $(FINDOBJS) -L. -L../lib -L../findlib \
|
||||
@@ -84,7 +84,7 @@ $NetBSD: patch-src_tools_Makefile.in,v 1.1 2012/10/06 17:54:53 christos Exp $
|
||||
|
||||
cats_test.o: cats_test.c
|
||||
echo "Compiling $<"
|
||||
@@ -126,7 +126,7 @@
|
||||
@@ -128,7 +128,7 @@ cats_test.o: cats_test.c
|
||||
|
||||
cats_test: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) cats_test.o
|
||||
$(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L../cats -L. -L../lib -L../findlib -o $@ cats_test.o \
|
||||
@@ -93,7 +93,7 @@ $NetBSD: patch-src_tools_Makefile.in,v 1.1 2012/10/06 17:54:53 christos Exp $
|
||||
|
||||
gigaslam.o: gigaslam.c
|
||||
$(CXX) $(CFLAGS) -c $<
|
||||
@@ -135,13 +135,13 @@
|
||||
@@ -137,13 +137,13 @@ gigaslam: gigaslam.o
|
||||
$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -o $@ gigaslam.o
|
||||
|
||||
grow: Makefile grow.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
|
||||
|
||||
Reference in New Issue
Block a user