diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2006-11-28 22:57:13 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2006-11-28 22:57:13 +0000 |
commit | b5d3caf6de6ad6bd3f53733df2e95e1112420ba1 (patch) | |
tree | 54dc3879576145bfcf614432ba47131057deeadc /dev-util/libconf/files | |
parent | Stable on ppc64 (diff) | |
download | gentoo-2-b5d3caf6de6ad6bd3f53733df2e95e1112420ba1.tar.gz gentoo-2-b5d3caf6de6ad6bd3f53733df2e95e1112420ba1.tar.bz2 gentoo-2-b5d3caf6de6ad6bd3f53733df2e95e1112420ba1.zip |
Added fixes and patch for FreeBSD. ~x86-fbsd keyword added.
(Portage version: 2.1.2_rc2)
Diffstat (limited to 'dev-util/libconf/files')
-rw-r--r-- | dev-util/libconf/files/0.42.10-fbsd.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/libconf/files/0.42.10-fbsd.patch b/dev-util/libconf/files/0.42.10-fbsd.patch new file mode 100644 index 000000000000..3baf1559dfe3 --- /dev/null +++ b/dev-util/libconf/files/0.42.10-fbsd.patch @@ -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'] + )] + ) |