add libconf with perl patch
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1526 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
51
dev-util/libconf/files/0.42.10-fbsd.patch
Normal file
51
dev-util/libconf/files/0.42.10-fbsd.patch
Normal file
@@ -0,0 +1,51 @@
|
||||
--- bindings/c/src/conf2xml.c.orig 2006-11-28 09:49:23 +0100
|
||||
+++ bindings/c/src/conf2xml.c 2006-11-28 09:49:34 +0100
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <string.h>
|
||||
#include "conf2xml.h"
|
||||
|
||||
-#include <error.h>
|
||||
#include <errno.h>
|
||||
/* #define ARGC(a) ((sizeof(a)/sizeof(a[0]))) */
|
||||
/* #define STR_MAX_SIZE 256 */
|
||||
@@ -39,17 +38,17 @@
|
||||
|
||||
char * conf2xml (char *filename, char *template, char *template_options) {
|
||||
STRLEN l;
|
||||
- if (my_perl == NULL) error (NOT_INITIALIZED, 0, "conf2xml has not been initialized. Call conf2xml_init first");
|
||||
+ if (my_perl == NULL) errc (NOT_INITIALIZED, 0, "conf2xml has not been initialized. Call conf2xml_init first");
|
||||
|
||||
if (!template) {
|
||||
template = malloc(sizeof(char));
|
||||
- if (!template) error (ENOMEM, ENOMEM, NULL);
|
||||
+ if (!template) errc (ENOMEM, ENOMEM, NULL);
|
||||
*template = '\0';
|
||||
}
|
||||
|
||||
if (!template_options) {
|
||||
template_options = malloc(sizeof(char));
|
||||
- if (!template_options) error (ENOMEM, ENOMEM, NULL);;
|
||||
+ if (!template_options) errc (ENOMEM, ENOMEM, NULL);;
|
||||
*template_options = '\0';
|
||||
}
|
||||
|
||||
@@ -66,7 +65,7 @@
|
||||
1
|
||||
);
|
||||
char *perl_code = malloc(sizeof(char) * code_length);
|
||||
- if (!perl_code) error (ENOMEM, ENOMEM, NULL);;
|
||||
+ if (!perl_code) errc (ENOMEM, ENOMEM, NULL);;
|
||||
*perl_code = '\0';
|
||||
strncat(perl_code, perl_code1, strlen(perl_code1));
|
||||
strncat(perl_code, filename, strlen(filename));
|
||||
--- bindings/python/src/setup.py.orig 2006-11-28 09:50:43 +0100
|
||||
+++ bindings/python/src/setup.py 2006-11-28 09:50:50 +0100
|
||||
@@ -12,7 +12,6 @@
|
||||
ext_modules=[
|
||||
Extension(
|
||||
'conf2xml',
|
||||
- sources=['conf2xmlmodule.c'],
|
||||
- libraries=['dl'],
|
||||
+ sources=['conf2xmlmodule.c']
|
||||
)]
|
||||
)
|
||||
11
dev-util/libconf/files/libconf-0.42.10-perl510.patch
Normal file
11
dev-util/libconf/files/libconf-0.42.10-perl510.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- perl-Libconf-0.42.10/bindings/c/src/conf2xml.c 2005-11-07 01:02:03.000000000 -0800
|
||||
+++ perl-Libconf-0.42.10/bindings/c/src/conf2xml.c.new 2008-07-22 17:01:33.000000000 -0700
|
||||
@@ -19,7 +19,7 @@
|
||||
char *embedding[] = { "", "-e", "0" };
|
||||
|
||||
if (my_perl != NULL) conf2xml_free();
|
||||
- PERL_SYS_INIT3(&argc,&argv,&env);
|
||||
+ PERL_SYS_INIT3(NULL,NULL,NULL);
|
||||
my_perl = perl_alloc();
|
||||
perl_construct( my_perl );
|
||||
perl_parse(my_perl, xs_init, 3, embedding, (char **)NULL);
|
||||
Reference in New Issue
Block a user