forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from branfosj/20241209165417_new_pr_Perl-bundl…
…e-CPAN5400 Add MIME::Base32 and add patches for XML::Bare and Crypt:DES
- Loading branch information
Showing
3 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...igs/p/Perl-bundle-CPAN/Crypt-DES-2.07_expose-perl_des_expand_key-and-perl_des_crypt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 51fda02d223f516c4948606c050bfc732b95f481 Mon Sep 17 00:00:00 2001 | ||
From: Brian Fraser <[email protected]> | ||
Date: Thu, 24 Sep 2020 15:00:20 +0200 | ||
Subject: [PATCH] _des.h: expose perl_des_expand_key() and perl_des_crypt() to | ||
prevent implicit delaration errors/warnings | ||
|
||
--- | ||
_des.h | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/_des.h b/_des.h | ||
index ec56b27..b636cda 100644 | ||
--- a/_des.h | ||
+++ b/_des.h | ||
@@ -4,4 +4,6 @@ typedef unsigned long des_ks[32]; | ||
|
||
void _des_crypt( des_cblock in, des_cblock out, des_ks key, int encrypt ); | ||
void _des_expand_key( des_user_key userKey, des_ks key ); | ||
+void perl_des_expand_key(des_user_key userKey, des_ks ks); | ||
+void perl_des_crypt( des_cblock input, des_cblock output, des_ks ks, int encrypt ); | ||
|
||
-- | ||
2.24.3 (Apple Git-128) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
easybuild/easyconfigs/p/Perl-bundle-CPAN/XML-Bare-0.53_c99.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
From | ||
* https://rt.cpan.org/Public/Bug/Display.html?id=145653 | ||
* https://rt.cpan.org/Public/Bug/Display.html?id=151041 | ||
|
||
diff --git a/parser.c b/parser.c | ||
index 4d770e0efba0e336..26fbd4127fa64753 100644 | ||
--- a/parser.c | ||
+++ b/parser.c | ||
@@ -1,8 +1,6 @@ | ||
#include "parser.h" | ||
-#include<stdio.h> | ||
-#ifdef DARWIN | ||
- #include "stdlib.h" | ||
-#endif | ||
+#include <stdio.h> | ||
+#include <stdlib.h> | ||
#ifdef NOSTRING | ||
void memset(char *s, int c, int n) { | ||
char *se = s + n; | ||
|
||
diff --git a/parser.c b/parser.c | ||
index 26fbd4127fa64753..e6cea50335b28eb5 100644 | ||
--- a/parser.c | ||
+++ b/parser.c | ||
@@ -417,7 +417,7 @@ int parserc_parse( struct parserc *self, char *xmlin ) { | ||
case 0: last_state = ST_att_name; goto done; | ||
case '/': // self closing !! /> is assumed !! | ||
curatt = nodec_addattr( curnode, attname, attname_len ); | ||
- if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } | ||
+ if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; } | ||
attname_len = 0; | ||
|
||
curnode->z = cpos+1-xmlin; | ||
@@ -436,7 +436,7 @@ int parserc_parse( struct parserc *self, char *xmlin ) { | ||
goto att_space; | ||
case '>': | ||
curatt = nodec_addattr( curnode, attname, attname_len ); | ||
- if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } | ||
+ if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; } | ||
attname_len = 0; | ||
cpos++; | ||
goto val_1; | ||
@@ -832,7 +832,7 @@ int parserc_parse_unsafely( struct parserc *self, char *xmlin ) { | ||
switch( let ) { | ||
case '/': // self closing !! /> is assumed !! | ||
curatt = nodec_addattr( curnode, attname, attname_len ); | ||
- if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } | ||
+ if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; } | ||
attname_len = 0; | ||
|
||
curnode = curnode->parent; | ||
@@ -850,7 +850,7 @@ int parserc_parse_unsafely( struct parserc *self, char *xmlin ) { | ||
goto u_att_space; | ||
case '>': | ||
curatt = nodec_addattr( curnode, attname, attname_len ); | ||
- if( !att_has_val ) { curatt->value = -1; curatt->vallen = 0; } | ||
+ if( !att_has_val ) { curatt->value = (char *) -1; curatt->vallen = 0; } | ||
attname_len = 0; | ||
cpos++; | ||
goto u_val_1; | ||
|