diff options
author | Dawid Węgliński <dawid.weglinski@gmail.com> | 2018-03-20 22:04:00 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-03-21 23:09:55 +0100 |
commit | 5ef4f0b03df1ef0fbc7bf0c4976cfdc1faa559c2 (patch) | |
tree | c946f148295914545d1ce336997f1e342438743f /net-irc/emech/files | |
parent | net-misc/ntp-4.2.8_p11: hppa stable, bug 649612 (diff) | |
download | gentoo-5ef4f0b03df1ef0fbc7bf0c4976cfdc1faa559c2.tar.gz gentoo-5ef4f0b03df1ef0fbc7bf0c4976cfdc1faa559c2.tar.bz2 gentoo-5ef4f0b03df1ef0fbc7bf0c4976cfdc1faa559c2.zip |
net-irc/emech: version bump to 3.0.99_p3.
* Bump EAPI.
* Fix buidling issue.
* Add maintainer to metadata.xml.
Closes: https://bugs.gentoo.org/651034
Diffstat (limited to 'net-irc/emech/files')
-rw-r--r-- | net-irc/emech/files/emech-3.0.99_p3-buildfix.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch new file mode 100644 index 000000000000..de1dee6ed673 --- /dev/null +++ b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch @@ -0,0 +1,70 @@ +diff -Naur emech-3.0.99p3.org/src/gencmd.c emech-3.0.99p3/src/gencmd.c +--- emech-3.0.99p3.org/src/gencmd.c 2009-05-13 08:51:09.000000000 -0000 ++++ emech-3.0.99p3/src/gencmd.c 2018-03-16 22:52:42.591033854 -0000 +@@ -316,7 +316,7 @@ + } + if (pass == __struct_acces) + { +- printf("\t%i,\t/""* %s *""/\n", ++ printf("\t%li,\t/""* %s *""/\n", + pre_mcmd[wh].flags & CLEVEL, + pt); + } +@@ -390,7 +390,7 @@ + } + pass--; + } +- printf("#define LOCALHOST_ULONG %lu\n",inet_addr("127.1")); ++ printf("#define LOCALHOST_ULONG %u\n",inet_addr("127.1")); + printf("#else /""* MAIN_C *""/\n\n"); + printf("extern OnMsg mcmd[];\n"); + printf("extern OnMsg_access acmd[];\n\n"); +@@ -404,29 +404,29 @@ + + #ifdef BOTNET + combo.comboflags = 0; combo.x.noshare = 1; +- fprintf(of,"#define COMBO_NOSHARE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_NOSHARE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.readonly = 1; +- fprintf(of,"#define COMBO_READONLY\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_READONLY\t0x%lx\n",combo.comboflags); + #endif /* BOTNET */ + + #ifdef GREET + combo.comboflags = 0; combo.x.greetfile = 1; +- fprintf(of,"#define COMBO_GREETFILE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_GREETFILE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.randline = 1; +- fprintf(of,"#define COMBO_RANDLINE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_RANDLINE\t0x%lx\n",combo.comboflags); + #endif /* GREET */ + + #ifdef BOUNCE + combo.comboflags = 0; combo.x.bounce = 1; +- fprintf(of,"#define COMBO_BOUNCE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_BOUNCE\t0x%lx\n",combo.comboflags); + #endif /* BOUNCE */ + + combo.comboflags = 0; combo.x.echo = 1; +- fprintf(of,"#define COMBO_ECHO\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_ECHO\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.aop = 1; +- fprintf(of,"#define COMBO_AOP\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AOP\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.avoice = 1; +- fprintf(of,"#define COMBO_AVOICE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AVOICE\t0x%lx\n",combo.comboflags); + + fclose(of); + return(0); +diff -Naur emech-3.0.99p3.org/src/function.c emech-3.0.99p3/src/function.c +--- emech-3.0.99p3.org/src/function.c 2009-05-17 20:25:29.000000000 -0000 ++++ emech-3.0.99p3/src/function.c 2018-03-17 11:41:15.224075216 -0000 +@@ -26,6 +26,7 @@ + #include "global.h" + #include "h.h" + #include "text.h" ++#include "linux/limits.h" + + LS char timebuf[24]; /* max format lentgh == 20+1, round up to nearest longword -> 24 */ + LS char idlestr[36]; /* max format lentgh == 24+1, round up to nearest longword -> 28 */ |