diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
commit | cf7807d7aea23a99a144afceaba961cfed652b5f (patch) | |
tree | ffd2c781c27e0b7e72152a685a04938a2b7966f0 /www-client/w3mmee | |
parent | 7c5ebaf83da4c538dd11b56fdd5dfdf39dcbc096 (diff) |
Diffstat (limited to 'www-client/w3mmee')
-rw-r--r-- | www-client/w3mmee/Manifest | 4 | ||||
-rw-r--r-- | www-client/w3mmee/files/w3mmee-configure.patch | 773 | ||||
-rw-r--r-- | www-client/w3mmee/files/w3mmee-display.patch | 26 | ||||
-rw-r--r-- | www-client/w3mmee/files/w3mmee-linein.patch | 23 | ||||
-rw-r--r-- | www-client/w3mmee/w3mmee-0.3.2_p24-r13.ebuild | 160 |
5 files changed, 986 insertions, 0 deletions
diff --git a/www-client/w3mmee/Manifest b/www-client/w3mmee/Manifest index b983f4ce0101..f7bd9a272558 100644 --- a/www-client/w3mmee/Manifest +++ b/www-client/w3mmee/Manifest @@ -1,8 +1,11 @@ AUX w3mmee-boehm-gc.patch 294 BLAKE2B ea27a7004cb46135cea7cf33925f9e19679346a02eb0c7e1de98419d466d18501d458970c96dbcf1c02342f4b476890ff3dab04082c4484317d3ef2a76066dc8 SHA512 8f1825704a546e6df603bdc7de2caa396ea778510b8e9d7ed4577b0ad197322d23ea175d51f39c9ca95055620385f4aecbc55ef093459647344bc97848dbcc3b +AUX w3mmee-configure.patch 18197 BLAKE2B 1822fb85f440030732bae1596e03f4a8ed157948428a624718d95ef05d1a979397fe353daf16bfb13b068bd1e2bd36198737c43ef6d29738a0ea5018bb5427d6 SHA512 7c5c2e7b5c3f997bfedb97881a2a931f5db5f356f82c47667b17d11c38457be6ce38855f07b0d674541b5f461373765354664ff5232627a0f713e3b085cdb18e +AUX w3mmee-display.patch 796 BLAKE2B 9a1080b4d3830136d0a3d71793a90a517d15f6a41b31e4cd80d7138d71023c3a6498a2fd445f281b453946ef222f643bd66508c0820def113afa91a00ef8d8b9 SHA512 640ae015ff64fb6299bf9b338e5feffcdfa3b7c9a5e64e952d76d79b8c735eab21dcb5f6a85a8280fa5214200d4945c87dc26ba4a4e34d7463536162a60efd59 AUX w3mmee-gcc-10.patch 582 BLAKE2B 956f1b558592feea9708ba280d8298c0c5ef361ae75e5213e9803b8c7a3d9f75c2714a5818afeb04c55e639eef5d357c2c8e8657a0f6df4c37b30d6d3b73cf98 SHA512 e3628cb9c44627e001d0fc3a495fc9f785e4a8f0a92c396abadd26224f4b387303177bac7e5e805f4882c29708bd08ab774c748e1e024607b61ba2b016f24e74 AUX w3mmee-gcc-4.4.patch 218 BLAKE2B fb2d2db581348efbe51479a45d894ef8cac058438baa5817f5678b41b02dd8a6394394ee724d2c9bb12f1a635f3893646ff90f3e04edbea9a1d6be243527c87d SHA512 8da08aa704a2ae05a2ceaf4d0484aeb256261cacbe2fb89c59327a89951e6f23fc32bddc5988a24cfe048ce8f420f465e827e6ffea8ac8c5ef9eba2e1a2bf457 AUX w3mmee-gcc-4.5.patch 358 BLAKE2B 9d9d4ce582f852b8fb9e81d2ecc756ffb061f988dea39fe094338da619806fbc1ab2fa72bd55b3f9dd2ed190bd2eb0fad0d2c7cab8423d17862fc4bd879d1820 SHA512 b3fe68ed1ab4819edec04306b4399c8f814732dd06f313d4081e38660c4e2b66c49e2fc33bf706f755492e30e15c2eafbb583aa83bfda210db654388970dcb8d AUX w3mmee-glibc-2.14.patch 776 BLAKE2B 66dd21827ebe0371da39900a9dbede435b27f0a971b25ea5adf71475502584a74c6850bd95394471b12880dfeab1e61b67ae7914a79892cec117f10efb165b3b SHA512 f566b25cd38b4e950a51030a149e137b50df7494eef4e72522bd00552fd9f02f7f1b57402ffe52b1a00d1c6eb25a3ffe64609e3439a8fe9bd3fa44fa5535460b +AUX w3mmee-linein.patch 970 BLAKE2B 69a72d7b748eb330de3672002c96eb8a43820e8872789052dc034faa186e6d1feab866596792b252d258fbfca03b8c4093db8a5a397892e5ade727cfe3071241 SHA512 a0e2cbe813f798a1d3344e3710c6fd46acc578a6290237b43df326b66b542522a0b2e4022d97826fdd87754e81a69708d9f425d181de33c61dc9d5499a5e8897 AUX w3mmee-openssl-1.1.patch 2619 BLAKE2B 4f43b2cb8b04415f6d787cbaf1c6f43f16143bc9de03695e6dde96de6eb4508fe12cf381a3c368ac6b71b8001c78c2867d583e03756c136c1e2ffbc7ad966738 SHA512 a5db09958efce3e539799578b41a81f227d60cfda241d168108b49021415185b83edf0718dbd646c5a9ba805b380efb09f7e30c78cc3bf23cc4dbc6329d5ec25 AUX w3mmee-rc_name.patch 322 BLAKE2B cc0ba425bf0c690ae769b777b2ae456c5723f101046a608226d2b26943f7738d4775e2affa85bf29ee39c0c18f3c5dc8d4ce8d2c4c6670504f0c1091fd079c86 SHA512 13400e6fcf60d807a17962014b71680c9d54f8749f096726f9b59974464889dd0bca254de298f28aa0fbf3d03bb7974aa429be4c2c6f8168af931802ff78b469 AUX w3mmee-time.patch 608 BLAKE2B 1c380c5af1cfba502e5749810456944aa2eb52a3e73ee11b7972d937b7f5ae29b47d75081e2175ac737201f82f725b0cd4bcd0102e3f53d926a9d5ed485137f0 SHA512 2e70256bf7e328438f6b4e7dae8eb8775937efd70686a5a34dc5f4c25361b26e2356307105dfe1af002abba8bc7fc607a1858e8f0f500547c62ca873cc715b67 @@ -10,4 +13,5 @@ AUX w3mmee-tinfo.patch 357 BLAKE2B 33ef18109515e789debcfe3a0addc67be0a69853bfda0 AUX w3mmee-w3mman.patch 631 BLAKE2B b155487da7120b5e106c7b747a7cfc0d3157bdd651da8d324dc262b66ac47c88380e4ab4ed546522199ab3c3b89177b3ec83c5dffba56708ca57de0ba19d7281 SHA512 a883127315a7a5d9354c17a05c1dc4127ab7a72bb46b02592953b83bde54ca4c12f756b1ef44127f9d74517ed1ec1640ef2e187f809b15c906769f1e9e699527 DIST w3mmee-p24-23.tar.gz 697342 BLAKE2B cdfd5752a29ee486ccb4cb174ac68aa2b93c818a088e28a8938ef308030b4baac69645e5adcf86361297f79b2473de483917f523bdd0cda0f6d0d93cc0755534 SHA512 fa74b9124e0790461ea7936411f89265c8a367326bf1bba7a5ea5f4abf748197e0926847f9860ec8d35e97f0e53bcdc69821fdd9d741fc8b18b5e11211aa3271 EBUILD w3mmee-0.3.2_p24-r12.ebuild 3647 BLAKE2B b69bfeec078deedc7edcf7f4b10b35a8959a107cf79f80a5dad59ba5253161ef17252faa6894509b6b5b0b0ae4a69ddb6464440411472f139983eda8e0078981 SHA512 4daeda6ec745a0e5da32a75556a2c4b1e57c623f25e758dccdac78abf2a9a96633a0d52f29c384917f67d34aa9e1aa3869c086c19d6039e03f82b7c3b578717a +EBUILD w3mmee-0.3.2_p24-r13.ebuild 3777 BLAKE2B f76edb4f4459f4107ce2b3455bdae5839ce53475909f404b6ff901e819981a406d0341e723f8ccbd5bfc6e4008859af6a26b7bf984454724bd23b4723617a566 SHA512 2f1d3571816ea042a380b8443bc6db8ca2e2dfb9bbfdc5cc1c0699fa1d9cf14d8d03d3688a0f8cf36f75a004f82e12a00c5ccf872aa070646fd51a514bef0dd9 MISC metadata.xml 235 BLAKE2B a3e5a3109b59e3f97ef14f8d55ba13b16dc5371a1b7d6f238230aa4494db32dd4a42e3ee012ec8b18fae394feb2b1b56882bc70504aa7c6b969c1b20140f0ece SHA512 7c4e5f5dea465e45c662f5f53513626088aff514e1326593426af227d77e63d8a00d8af05aa208881a399f83dd41e73cd2ef81c8b7f275a2fa891f295231d67c diff --git a/www-client/w3mmee/files/w3mmee-configure.patch b/www-client/w3mmee/files/w3mmee-configure.patch new file mode 100644 index 000000000000..9856bf6ec972 --- /dev/null +++ b/www-client/w3mmee/files/w3mmee-configure.patch @@ -0,0 +1,773 @@ +Fixes following error: + +1. error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] +2. error: call to undeclared library function '...' with type '...'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +3. error: call to undeclared function '...'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +4. error: incompatible function pointer types initializing 'void (*)()' with an expression of type 'int (FILE *)' (aka 'int (struct _IO_FILE *)') [-Wincompatible-function-pointer-types] +5. error: incompatible pointer to integer conversion assigning to 'int' from 'char *' [-Wint-conversion] +6. error: undefined reference to `GC_version' +7. warning: unused variable '*** [-Wunused-variable] +8. warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] +9. warning: variable '*' set but not used [-Wunused-but-set-variable] + +diff --git a/configure b/configure +index 14ff1d2..5fc2f74 100755 +--- a/configure ++++ b/configure +@@ -4,7 +4,7 @@ + # + + # +-if ./which uname > /dev/null ; then ++if ./which uname ; then + sysname=`uname -s` + sysversion=`uname -r` + platform=`uname -m` +@@ -256,12 +256,20 @@ do_sigtest() { + echo "#include <signal.h>" > _zmachdep.c + + if [ "$2" = void ]; then +- echo "$1 _handler($2) {}" >> _zmachdep.c ++ if [ "$1" = int ] ; then ++ echo "$1 _handler($2) {return 0;}" >> _zmachdep.c ++ else ++ echo "$1 _handler($2) {}" >> _zmachdep.c ++ fi + else +- echo "$1 _handler($2 x) {}" >> _zmachdep.c ++ if [ "$1" = int ] ; then ++ echo "$1 _handler($2 x) {return 0;}" >> _zmachdep.c ++ else ++ echo "$1 _handler($2 x) {}" >> _zmachdep.c ++ fi + fi + +- echo "int main(void) { $1 (*hdl)($2); hdl = signal(SIGINT,_handler); return 0; }" >> _zmachdep.c ++ echo "int main(void) { $1 (*hdl)($2); hdl = signal(SIGINT,_handler); (void)hdl; return 0; }" >> _zmachdep.c + $cc $cflags -o _zmachdep _zmachdep.c > _zwarning 2>&1 + stat=$? + warning=`cat _zwarning` +@@ -283,7 +291,7 @@ return 0; + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You don't need \"-lintl\"" + else + echo "You need \"-lintl\"" +@@ -1346,7 +1354,10 @@ fi + termlib='' + + cat > _zmachdep.c << EOF +-main() ++#include <stdlib.h> ++#include <curses.h> ++#include <term.h> ++int main() + { + char bp[100]; + tgetent(bp,getenv("TERM")); +@@ -1362,7 +1373,7 @@ if [ -z "$dtermlib" ]; then + # check if the lib works... + Echo "Terminal library -l$lib found at $tlibdir, " + +- if $cc $cflags -o _zmachdep _zmachdep.c -l$lib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c -l$lib 2>&1; then + echo "and it seems to work." + termlib=-l$lib + else +@@ -1500,15 +1511,16 @@ done + + if [ -n "$gclib" -a -n "$gcinclude" ]; then + cat > _zmachdep.c << EOF ++#include <stdio.h> + #include <gc.h> +-main() ++int main() + { +- extern unsigned GC_version; ++ unsigned GC_version = GC_get_version(); + printf("%d%02d%03d\n",(GC_version>>16)&0xff,(GC_version>>8)&0xff,GC_version&0xff); + } + EOF + +- if $cc $cflags $gc_cflags -I$gcinclude -o _zmachdep _zmachdep.c $gclib > /dev/null 2>&1; then ++ if $cc $cflags $gc_cflags -I$gcinclude -o _zmachdep _zmachdep.c $gclib 2>&1; then + echo "and it seems to work." + gcversion=`./_zmachdep` + fi +@@ -1644,24 +1656,26 @@ def_param use_help_cgi $have_perl + + ####### long long + cat > _zmachdep.c <<EOF +-main() ++int main() + { + int i = sizeof(unsigned long long); ++ (void)i; + } + EOF +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have long long" + def_have_long_long="typedef long long clen_t;" + cat > _zmachdep.c <<EOF + #include <stdlib.h> +-main() ++int main() + { + const char *s = "1"; + long long ll = strtoll(s, NULL, 10); ++ (void)ll; + } + EOF +- if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++ if $cc $cflags -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have strtoll()" + def_have_strtoll="#define HAVE_STRTOLL" +@@ -1673,13 +1687,14 @@ EOF + #include <sys/types.h> + #include <stdlib.h> + #include <limits.h> +-main() ++int main() + { + const char *s = "1"; + quad_t q = strtoq(s, NULL, 10); ++ (void)q; + } + EOF +- if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++ if $cc $cflags -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have strtoq()" + def_have_strtoq="#define HAVE_STRTOQ" +@@ -1695,15 +1710,16 @@ fi + ####### strcasecmp + + cat > _zmachdep.c << EOF +-#include <string.h> +-main() ++#include <strings.h> ++int main() + { + int i; + i = strcasecmp("abc","def"); ++ (void)i; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have strcasecmp()." + def_have_strcasecmp="#define HAVE_STRCASECMP" + else +@@ -1714,13 +1730,14 @@ fi + ####### strcasestr + cat > _zmachdep.c << EOF + #include <string.h> +-main() ++int main() + { +- int i; +- i = strcasestr("abc","def"); ++ char *p; ++ p = strcasestr("abc","def"); ++ (void)p; + } + EOF +-if $cc $cflags -D_GNU_SOURCE -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++if $cc $cflags -D_GNU_SOURCE -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have strcasestr()." + def_have_strcasestr="#define HAVE_STRCASESTR" +@@ -1733,14 +1750,15 @@ fi + + cat > _zmachdep.c << EOF + #include <string.h> +-main() ++int main() + { + char *p, *q = "abc"; + p = strchr(q,'c'); ++ (void)p; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have strchr()." + def_have_strchr="#define HAVE_STRCHR" + else +@@ -1751,14 +1769,16 @@ fi + ####### strerror + + cat > _zmachdep.c << EOF +-main() ++#include <string.h> ++int main() + { +- int i; +- i = strerror(0); ++ char *p; ++ p = strerror(0); ++ (void)p; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have strerror()." + def_have_strerror="#define HAVE_STRERROR" + else +@@ -1769,13 +1789,13 @@ fi + ####### sys_errlist + + cat > _zmachdep.c << EOF +-main() ++int main() + { + extern char sys_errlist[]; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have sys_errlist[]." + def_have_syserrlist="#define HAVE_SYS_ERRLIST" + else +@@ -1786,7 +1806,8 @@ fi + ####### bcopy + + cat > _zmachdep.c << EOF +-main() ++#include <string.h> ++int main() + { + char x[1],y[1]; + bzero(x,1); +@@ -1794,7 +1815,7 @@ main() + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have bcopy()." + def_have_bcopy="#define HAVE_BCOPY" + else +@@ -1805,10 +1826,12 @@ fi + ####### waitpid + + cat > _zmachdep.c << EOF ++#include <unistd.h> ++#include <stdlib.h> + #include <sys/types.h> + #include <sys/wait.h> + +-main() ++int main() + { + pid_t pid; + int status; +@@ -1820,7 +1843,7 @@ main() + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have waitpid()." + def_have_waitpid="#define HAVE_WAITPID" + else +@@ -1831,6 +1854,8 @@ fi + ####### wait3 + + cat > _zmachdep.c << EOF ++#include <unistd.h> ++#include <stdlib.h> + #include <sys/types.h> + #include <time.h> + #include <sys/time.h> +@@ -1840,7 +1865,7 @@ cat > _zmachdep.c << EOF + #define NULL 0 + #endif + +-main() ++int main() + { + int pid; + int status; +@@ -1852,12 +1877,12 @@ main() + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have wait3()." + def_have_wait3="#define HAVE_WAIT3" + else + echo "You don't have wait3()." +- def_have_wait3="#undef HAVE_WAITPID" ++ def_have_wait3="#undef HAVE_WAIT3" + fi + + ####### strftime +@@ -1865,17 +1890,18 @@ fi + cat > _zmachdep.c << EOF + #include <time.h> + +-main() ++int main() + { + time_t ct; + struct tm *tm; + char t[80]; + time(&ct); + strftime(t, 80, "%a, %d %b %Y %H:%M:%S GMT",gmtime(&ct)); ++ (void)tm; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have strftime()." + def_have_strftime="#define HAVE_STRFTIME" + else +@@ -1888,18 +1914,19 @@ fi + cat > _zmachdep.c << EOF + #include <sys/param.h> + #include <unistd.h> +-main() ++int main() + { + #ifdef MAXPATHLEN + char path[MAXPATHLEN]; +- getcwd(path,MAXPATHLEN); ++ char *p = getcwd(path,MAXPATHLEN); ++ (void)p; + #else + gwtcwd(NULL, 0); + #endif + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have getcwd()." + def_have_getcwd="#define HAVE_GETCWD" + else +@@ -1910,14 +1937,16 @@ fi + ####### getwd + + cat > _zmachdep.c << EOF +-main() ++#include <unistd.h> ++int main() + { + char path[64]; +- getwd(path); ++ char *p = getwd(path); ++ (void)p; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have getwd()." + def_have_getwd="#define HAVE_GETWD" + else +@@ -1927,13 +1956,15 @@ fi + + ####### symlink + cat > _zmachdep.c << EOF +-main() ++#include <unistd.h> ++int main() + { + char path[64],lpath[64]; +- symlink(path,lpath); ++ int i = symlink(path,lpath); ++ (void)i; + } + EOF +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have symlink()." + def_have_symlink="#define HAVE_SYMLINK" +@@ -1945,14 +1976,16 @@ fi + ####### readlink + + cat > _zmachdep.c << EOF +-main() ++#include <unistd.h> ++int main() + { + char path[64],lpath[64]; +- readlink(path,lpath,64); ++ ssize_t l = readlink(path,lpath,64); ++ (void)l; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have readlink()." + def_have_readlink="#define HAVE_READLINK" + else +@@ -1964,14 +1997,14 @@ fi + cat > _zmachdep.c << EOF + #include <sys/types.h> + #include <sys/stat.h> +-main() ++int main() + { + struct stat st; + char path[64]; + lstat(path,&st); + } + EOF +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1 ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1 + then + echo "You have lstat()." + def_have_lstat="#define HAVE_LSTAT" +@@ -1984,13 +2017,13 @@ fi + + cat > _zmachdep.c << EOF + #include <stdlib.h> +-main() ++int main() + { + setenv("HOGE","hoge",1); + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have setenv()." + def_have_setenv="#define HAVE_SETENV" + else +@@ -2002,13 +2035,13 @@ fi + + cat > _zmachdep.c << EOF + #include <stdlib.h> +-main() ++int main() + { + putenv("HOGE=hoge"); + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have putenv()." + def_have_putenv="#define HAVE_PUTENV" + else +@@ -2019,8 +2052,9 @@ fi + ####### sigsetjmp + + cat > _zmachdep.c << EOF ++#include <stdlib.h> + #include <setjmp.h> +-main() ++int main() + { + jmp_buf env; + if (sigsetjmp(env,1) != 0) { +@@ -2030,7 +2064,7 @@ main() + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have sigsetjmp()." + def_setjmp="#define SETJMP(env) sigsetjmp(env,1)" + def_longjmp="#define LONGJMP(env,val) siglongjmp(env,val)" +@@ -2046,13 +2080,13 @@ fi + + cat > _zmachdep.c << EOF + #include <stdlib.h> +-main() ++int main() + { + srand48(0); + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have srand48()." + def_have_srand48="#define HAVE_SRAND48" + else +@@ -2064,13 +2098,13 @@ fi + + cat > _zmachdep.c << EOF + #include <stdlib.h> +-main() ++int main() + { + srandom(0); + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have srandom()." + def_have_srandom="#define HAVE_SRANDOM" + else +@@ -2082,13 +2116,13 @@ fi + + cat > _zmachdep.c << EOF + #include <unistd.h> +-main() ++int main() + { + getpassphrase(""); + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have getpassphrase()." + def_have_getpassphrase="#define HAVE_GETPASSPHRASE" + else +@@ -2101,13 +2135,14 @@ fi + cat > _zmachdep.c <<EOF + #include <stdio.h> + #include <unistd.h> +-main() ++int main() + { +- int (*c)() = chdir; ++ int (*c)(const char *) = chdir; ++ (void)c; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have chdir()." + def_have_chdir="#define HAVE_CHDIR" + else +@@ -2120,13 +2155,14 @@ fi + cat > _zmachdep.c << EOF + #include <stdio.h> + #include <stdlib.h> +-main() ++int main() + { +- void (*c)() = fclose; ++ int (*c)(FILE *) = fclose; ++ (void)c; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "fclose() is declared." + dcl_fclose='' + else +@@ -2139,13 +2175,14 @@ fi + cat > _zmachdep.c << EOF + #include <stdio.h> + #include <stdlib.h> +-main() ++int main() + { +- void (*c)() = pclose; ++ int (*c)(FILE *) = pclose; ++ (void)c; + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "pclose() is declared." + dcl_pclose='' + else +@@ -2248,13 +2285,13 @@ fi + + cat > _zmachdep.c << EOF + #include <float.h> +-main() ++int main() + { + ; + } + EOF + +-if $cc $cflags -c _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -c _zmachdep.c 2>&1; then + echo "You have float.h." + def_have_float_h='#define HAVE_FLOAT_H' + else +@@ -2265,13 +2302,13 @@ fi + + cat > _zmachdep.c <<EOF + #include <sys/select.h> +-main() ++int main() + { + ; + } + EOF + +-if $cc $cflags -c _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -c _zmachdep.c 2>&1; then + echo "You have sys/select.h." + def_sys_select_h='#define HAVE_SYS_SELECT_H' + else +@@ -2289,7 +2326,7 @@ int main(){ + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have setpgrp()." + def_have_setpgrp='#define HAVE_SETPGRP' + else +@@ -2302,7 +2339,7 @@ int main(){ + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c $extlib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c $extlib 2>&1; then + echo "You have setpgrp( pid, pgrp )." + def_have_setpgrp='#define HAVE_SETPGRP' + def_setpgrp='#define SETPGRP() setpgrp( 0, 0 )' +@@ -2318,7 +2355,7 @@ cat > _zmachdep.c <<EOF + #include <stdarg.h> + #include <stdio.h> + +-main() ++int main() + { + va_list a, b; + +@@ -2327,7 +2364,7 @@ main() + } + EOF + +-if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have va_copy()." + def_have_va_copy='#define HAVE_VA_COPY' + def_va_copy= +@@ -2339,7 +2376,7 @@ cat > _zmachdep.c <<EOF + #include <stdarg.h> + #include <stdio.h> + +-main() ++int main() + { + va_list a, b; + +@@ -2348,7 +2385,7 @@ main() + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "You have __va_copy()." + def_va_copy='#define va_copy(dest, src) __va_copy(dest, src)' + else +@@ -2357,7 +2394,7 @@ cat > _zmachdep.c <<EOF + #include <stdarg.h> + #include <stdio.h> + +-main() ++int main() + { + va_list a, b; + +@@ -2366,7 +2403,7 @@ main() + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c 2>&1; then + echo "Your va_list is not an array." + def_va_copy='#define va_copy(dest, src) ((dest) = (src))' + else +@@ -2379,9 +2416,10 @@ fi + ###### IPv6 support check + + cat > _zmachdep.c <<EOF ++#include <stdlib.h> + #include <sys/types.h> + #include <sys/socket.h> +-main() ++int main() + { + if (socket(AF_INET6, SOCK_STREAM, 0) < 0) + exit(1); +@@ -2394,7 +2432,7 @@ def_ipv6="#undef INET6" + v6_ss_family="" + v6lib='' + +-if $cc $cflags -o _zmachdep _zmachdep.c $extlib > /dev/null 2>&1; then ++if $cc $cflags -o _zmachdep _zmachdep.c $extlib 2>&1; then + if ./_zmachdep; then + def_ipv6="#define INET6" + else +@@ -2421,7 +2459,7 @@ int main() { + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c $extlib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c $extlib 2>&1; then + echo "You have getaddrinfo() in libc." + else + for tlibdir in /usr/local/v6/lib /usr/local/lib /usr/lib; do +@@ -2432,7 +2470,7 @@ EOF + + v6lib="$v6lib -linet6" + +- if $cc $cflags -o _zmachdep _zmachdep.c $extlib $v6lib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c $extlib $v6lib 2>&1; then + echo "You have getaddrinfo() in libinet6." + fi + +@@ -2461,10 +2499,11 @@ if [ "$def_ipv6" = "#define INET6" ]; then + int main() { + struct sockaddr_storage ss; + int i = ss.ss_family; ++ (void)i; + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c $extlib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c $extlib 2>&1; then + echo "You have ss_family." + else + cat > _zmachdep.c <<EOF +@@ -2475,7 +2514,7 @@ int main() { + } + EOF + +- if $cc $cflags -o _zmachdep _zmachdep.c $extlib > /dev/null 2>&1; then ++ if $cc $cflags -o _zmachdep _zmachdep.c $extlib 2>&1; then + echo "You have __ss_family." + def_ipv6_ss_family="#define ss_family __ss_family" + else +@@ -2996,7 +3035,7 @@ cat > extrvers.c << EOF + #include <stdio.h> + #include <string.h> + #include "version.c" +-main() ++int main() + { + char *p = strchr(w3m_version,'/'); + if (p == NULL) +@@ -3006,7 +3045,7 @@ main() + } + EOF + +-$cc $cflags $mb_cflag -o extrvers$extension extrvers.c > /dev/null 2>&1 ++$cc $cflags $mb_cflag -o extrvers$extension extrvers.c 2>&1 + w3mversion=`./extrvers` + echo "Current w3m version is $w3mversion." + rm -f extrvers.c extrvers$extension diff --git a/www-client/w3mmee/files/w3mmee-display.patch b/www-client/w3mmee/files/w3mmee-display.patch new file mode 100644 index 000000000000..fe7e7efc2c6d --- /dev/null +++ b/www-client/w3mmee/files/w3mmee-display.patch @@ -0,0 +1,26 @@ +Fixes QA warning, pr is unused, so it's safe to remove + + * QA Notice: Package triggers severe warnings which indicate that it + * may exhibit random runtime failures. + * display.c:1253:2: warning: variable 'pr' is uninitialized when used here [-Wuninitialized] +diff --git a/display.c b/display.c +index c8640a9..5c48e17 100644 +--- a/display.c ++++ b/display.c +@@ -1132,7 +1132,7 @@ redrawForm(Buffer *buf, Anchor *a, Line *l, int pos, + FormItemList *fi; + int i, j, n, ctype, delta, bcol, ncol, epos; + char *p; +- Lineprop *pr, prop; ++ Lineprop prop; + #ifdef USE_ANSI_COLOR + Linecolor *pc; + #endif +@@ -1250,7 +1250,6 @@ redrawForm(Buffer *buf, Anchor *a, Line *l, int pos, + #endif + j = ncol; + p += delta; +- pr += delta; + #ifdef USE_ANSI_COLOR + pc += delta; + #endif diff --git a/www-client/w3mmee/files/w3mmee-linein.patch b/www-client/w3mmee/files/w3mmee-linein.patch new file mode 100644 index 000000000000..ba3186560794 --- /dev/null +++ b/www-client/w3mmee/files/w3mmee-linein.patch @@ -0,0 +1,23 @@ +gcc report following error: +linein.c:889:51: error: passing argument 2 of ¡®mb_mem_to_wchar¡¯ from incompatible pointer type [-Wincompatible-pointer-types] + 889 | first = mb_mem_to_wchar(env->strBuf->ptr, &word, &e); + | ^~~~~ + | | + | int * +In file included from fm.h:51: +/usr/include/moe/mb.h:634:58: note: expected ¡®size_t *¡¯ {aka ¡®long unsigned int *¡¯} but argument is of type ¡®int *¡¯ + 634 | extern mb_wchar_t mb_mem_to_wchar(const char *s, size_t *p_b, size_t *p_e); + | ~~~~~~~~^~~ +diff --git a/linein.c b/linein.c +index 4179957..753c61a 100644 +--- a/linein.c ++++ b/linein.c +@@ -881,7 +881,7 @@ find_Lw(InputLineEnv *env) + #else + int b, first, cur; + #endif +- int word; ++ size_t word; + + word = env->CPos - 1; + #ifdef MANY_CHARSET diff --git a/www-client/w3mmee/w3mmee-0.3.2_p24-r13.ebuild b/www-client/w3mmee/w3mmee-0.3.2_p24-r13.ebuild new file mode 100644 index 000000000000..2d9632d400ee --- /dev/null +++ b/www-client/w3mmee/w3mmee-0.3.2_p24-r13.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit alternatives toolchain-funcs + +MY_PV="${PV##*_}-23" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="A variant of w3m with support for multiple character encodings" +HOMEPAGE="http://pub.ks-and-ks.ne.jp/prog/w3mmee/" +SRC_URI="http://pub.ks-and-ks.ne.jp/prog/pub/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="w3m" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="gpm nls ssl" + +DEPEND=">=dev-libs/boehm-gc-7.2 + dev-libs/libmoe + dev-lang/perl + sys-libs/ncurses:0= + sys-libs/zlib + gpm? ( sys-libs/gpm ) + nls? ( sys-devel/gettext ) + ssl? ( + dev-libs/openssl:0= + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-gcc-4.4.patch + "${FILESDIR}"/${PN}-gcc-4.5.patch + "${FILESDIR}"/${PN}-gcc-10.patch + "${FILESDIR}"/${PN}-glibc-2.14.patch + "${FILESDIR}"/${PN}-openssl-1.1.patch + "${FILESDIR}"/${PN}-rc_name.patch + "${FILESDIR}"/${PN}-time.patch + "${FILESDIR}"/${PN}-tinfo.patch + "${FILESDIR}"/${PN}-w3mman.patch + "${FILESDIR}"/${PN}-configure.patch + "${FILESDIR}"/${PN}-display.patch + "${FILESDIR}"/${PN}-linein.patch +) +DOCS=( ChangeLog NEWS{,.mee} README ) +HTML_DOCS=( 00INCOMPATIBLE.html ) + +QA_CONFIG_IMPL_DECL_SKIP=( getpassphrase ) + +src_prepare() { + default + + sed -i "s:/lib\([^a-z$]\):/$(get_libdir)\1:g" configure || die + sed -i "/^AR=/s:ar:$(tc-getAR):" XMakefile || die +} + +src_configure() { + local myconf=( + -locale_dir=$(usex nls "${EPREFIX}/usr/share/locale" '(NONE)') + ) + local myuse=( + display_code=E + system_code=E + use_ansi_color=y + use_cookie=y + use_history=y + use_mouse=$(usex gpm y n) + ) + + if use ssl; then + myconf+=( + --ssl-includedir="${EPREFIX}/usr/include/openssl" + --ssl-libdir="${EPREFIX}/usr/$(get_libdir)" + ) + myuse+=( + use_digest_auth=y + use_ssl=y + use_ssl_verify=y + ) + else + myuse+=( use_ssl=n ) + fi + # bug #678910 + myuse+=( use_image=n ) + + cat <<-EOF >> config.param + lang=MANY + accept_lang=en + EOF + + env CC="$(tc-getCC)" "${myuse[@]}" ./configure \ + -nonstop \ + -prefix="${EPREFIX}/usr" \ + -suffix=mee \ + -auxbindir="${EPREFIX}/usr/$(get_libdir)/${PN}" \ + -libdir="${EPREFIX}/usr/$(get_libdir)/${PN}/cgi-bin" \ + -helpdir="${EPREFIX}/usr/share/${PN}" \ + -mandir="${EPREFIX}/usr/share/man" \ + -sysconfdir="${EPREFIX}/etc/${PN}" \ + -model=custom \ + -libmoe="${EPREFIX}/usr/$(get_libdir)" \ + -mb_h="${EPREFIX}/usr/include/moe" \ + -mk_btri="${EPREFIX}/usr/libexec/moe" \ + -cflags="${CFLAGS}" \ + -ldflags="${LDFLAGS}" \ + "${myconf[@]}" 2>&1 | tee config.log \ + || die +} + +src_install() { + emake DESTDIR="${D}" install + einstalldocs + + # w3mman and manpages conflict with those from w3m + mv "${ED}"/usr/share/man/man1/w3m{,mee}.1 || die + mv "${ED}"/usr/share/man/ja/man1/w3m{,mee}.1 || die + + docinto html/en + dodoc doc/*.html + rm -f doc/*.html + docinto en + dodoc doc/{HISTORY,README,keymap,menu}* + + docinto html/ja + dodoc doc-jp/*.html + rm -f doc-jp/*.html + docinto ja + dodoc doc-jp/{HISTORY,README,keymap,menu}* +} + +pkg_postinst() { + w3m_alternatives + einfo + einfo "If you want to render multilingual text, please refer to" + einfo "/usr/share/doc/${PF}/en/README.mee or" + einfo "/usr/share/doc/${PF}/jp/README.mee" + einfo "and set W3MLANG variable respectively." + einfo +} + +pkg_postrm() { + w3m_alternatives +} + +w3m_alternatives() { + if [[ ! -f /usr/bin/w3m ]]; then + alternatives_makesym /usr/bin/w3m \ + /usr/bin/w3m{m17n,mee} + alternatives_makesym /usr/bin/w3mman \ + /usr/bin/w3m{man-m17n,meeman} + alternatives_makesym /usr/share/man/ja/man1/w3m.1.gz \ + /usr/share/man/ja/man1/w3m{m17n,mee}.1.gz + alternatives_makesym /usr/share/man/man1/w3m.1.gz \ + /usr/share/man/man1/w3m{m17n,mee}.1.gz + alternatives_makesym /usr/share/man/man1/w3mman.1.gz \ + /usr/share/man/man1/w3m{man-m17n,meeman}.1.gz + fi +} |