Re: Remove games/spider?

2021-02-18 Thread Michael Warmuth-Uhl

Hi,

On 2/18/21 10:15 PM, Christian Weisgerber wrote:

Is anybody still interested in games/spider?  It's a 30-year old
solitaire game.


Please find attached the patch for -fnocommon. I hope I got it right.
Builds and works on amd64.

Best regards,

Michael
Index: patches/patch-gfx_c
===
RCS file: /cvs/ports/games/spider/patches/patch-gfx_c,v
retrieving revision 1.3
diff -u -p -r1.3 patch-gfx_c
--- patches/patch-gfx_c 16 Apr 2017 10:59:51 -  1.3
+++ patches/patch-gfx_c 18 Feb 2021 22:47:02 -
@@ -1,15 +1,60 @@
 $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 10:59:51 espie Exp $
 gfx.c.orig Sat Sep 28 19:46:10 1991
-+++ gfx.c  Sun Apr 16 12:08:18 2017
-@@ -15,6 +15,7 @@
-  */
+Index: gfx.c
+--- gfx.c.orig
 gfx.c
+@@ -16,6 +16,8 @@
  #include  "defs.h"
  #include  "globals.h"
-+#include 
  
++#include 
++
  #ifdef ROUND_CARDS
  #include  
-@@ -111,6 +112,12 @@ static GC backgc;
+ 
+@@ -25,8 +27,41 @@
+ Bool  round_cards = True;
+ #endif
+ 
+-static GC cardgc; /* gc in use when drawing cards */
+ 
++/* definitions of global variables */
++Display   *dpy;
++int   screen;
++Windowtable;
++#ifdefKITLESS
++Windowmessage_win;
++XFontStruct   *message_font;
++#endif/* KITLESS */
++Pixmapgreenmap;
++Pixmapredmap;
++Pixmaplogomap;
++
++unsigned long blackpixel;
++unsigned long whitepixel;
++unsigned long borderpixel;
++unsigned long greenpixel;
++
++Bool  is_color;
++
++CardList  deck;
++CardList  stack[NUM_STACKS];  /* tableau */
++CardList  piles[NUM_PILES];   /* full suits */
++
++int   table_height;
++int   table_width;
++
++int   draw_count;
++
++Bool  restart;
++int   deal_number;
++
++
++GCcardgc; /* gc in use when drawing cards */
++
+ #ifdefKITLESS
+ static intmessage_y;
+ static GC textgc;
+@@ -111,6 +146,12 @@ static GC backgc;
  
  static intback_delta_x, back_delta_y; /* how much to modify the TS origin 
by */
  
@@ -22,7 +67,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  #ifndef SMALL_CARDS
  static Bool   card_is_clipped;/* optimizer for card drawing */
  #endif
-@@ -166,7 +173,7 @@ unsigned long  redpixel;
+@@ -166,7 +207,7 @@ unsigned long  redpixel;
gcflags |= GCFont;
  
textgc = XCreateGC(dpy, RootWindow(dpy, screen), gcflags, );
@@ -31,7 +76,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  
tmpmap = XCreateBitmapFromData(dpy, RootWindow(dpy, screen),
logo_bits, logo_width, logo_height);
-@@ -566,6 +573,7 @@ force_redraw()
+@@ -566,6 +607,7 @@ force_redraw()
   *
   * REMIND -- spread the deck a bit to show that there's more
   */
@@ -39,7 +84,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  redraw_deck(x, y, w, h)
  int   x, y, w, h;
  {
-@@ -599,6 +607,7 @@ CardPtrtmp;
+@@ -599,6 +641,7 @@ CardPtrtmp;
  }
  
  
@@ -47,7 +92,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  redraw_card_piles(x, y, w, h)
  int   x, y, w, h;
  {
-@@ -641,6 +650,7 @@ CardPtrtmp;
+@@ -641,6 +684,7 @@ CardPtrtmp;
  }
  
  
@@ -55,7 +100,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  redraw_card_stacks(x, y, w, h)
  int   x, y, w, h;
  {
-@@ -1011,6 +1021,7 @@ int  w, h;
+@@ -1011,6 +1055,7 @@ int  w, h;
   *
   * location is for center of pip
   */
@@ -63,7 +108,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  draw_did(suit, x, y)
  Suit  suit;
  int   x,y;
-@@ -1051,6 +1062,7 @@ int  w, h;
+@@ -1051,6 +1096,7 @@ int  w, h;
  /*
   * draws big center pip
   */
@@ -71,7 +116,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  draw_center_pip(suit, x, y)
  Suit  suit;
  int   x,y;
-@@ -1110,6 +1122,7 @@ int  x,y;
+@@ -1110,6 +1156,7 @@ int  x,y;
draw_did(suit, x + CARD_COL3_X, y + CARD_ROW5_Y);
  }
  
@@ -79,7 +124,7 @@ $OpenBSD: patch-gfx_c,v 1.3 2017/04/16 1
  draw_six_pips(suit, x, y)
  Suit  suit;
  int   x, y;
-@@ -1129,6 +1142,7 @@ int  x, y;
+@@ -1129,6 +1176,7 @@ int  x, y;
draw_did(suit, x + CARD_COL3_X, y + CARD_ROW5_Y);
  }
  
Index: patches/patch-globals_h
===
RCS file: /cvs/ports/games/spider/patches/patch-globals_h,v
retrieving revision 1.1
diff -u -p -r1.1 patch-globals_h
--- patches/patch-globals_h 25 Oct 2004 13:49:22 -  1.1
+++ patches/patch-globals_h 18 Feb 2021 22:47:02 -
@@ -1,6 +1,67 @@
 $OpenBSD: patch-globals_h,v 1.1 2004/10/25 13:49:22 brad Exp $
 globals.h.orig Sat Sep 28 13:46:20 1991
-+++ globals.h  Sun Oct 24 17:36:52 2004
+Index: globals.h
+--- globals.h.orig
 globals.h
+@@ -13,37 +13,37 @@
+ /*
+  * spider global variables
+  */
+-Display   *dpy;
+-int   screen;
+-Windowtable;
++extern Display*dpy;
++extern intscreen;
++extern Window table;
+ #ifdefKITLESS
+-Windowmessage_win;

Re: Remove games/spider?

2021-02-18 Thread Michael Warmuth-Uhl

Hello,

On 2/18/21 10:15 PM, Christian Weisgerber wrote:

Is anybody still interested in games/spider?  It's a 30-year old
solitaire game.


I'm still interested (play it regularly). Would it help if I could fix it
for -fno-common? It seems feasible to me.

Best regards,

Michael



Re: minetest-old version

2019-06-27 Thread Michael Warmuth-Uhl

Hello,

On 6/27/19 7:34 PM, Leonid Bobrov wrote:

On Thu, Jun 27, 2019 at 06:53:44PM +0200, tylerander...@posteo.net wrote:

I notice that the port of minetest (games/minetest) is on an old version.
Can anyone try to update it to something more recent?

Already done by me, but nobody bothers to commit it:
https://marc.info/?l=openbsd-ports=155852123404741=2


That patch does not apply anymore because Makefile was updated since. Please
find below my trivially modified patch which does apply.

Builds on amd64 and runs ok.

On some old worlds with missing mod dependencies it segfaults (in strlen()) but
that's probably expected.

Thank you and best regards,

Michael




Index: Makefile
===
RCS file: /cvs/ports/games/minetest/Makefile,v
retrieving revision 1.29
diff -u -p -u -p -r1.29 Makefile
--- Makefile20 May 2019 22:15:10 -  1.29
+++ Makefile22 May 2019 10:29:26 -
@@ -1,50 +1,57 @@
 # $OpenBSD: Makefile,v 1.29 2018/05/20 22:15:10 naddy Exp $
 
 COMMENT =		infinite-world block sandbox game

-# minetest_game is still 0.4.17
-# this is engine's bug fix release
-GAME_V =   0.4.17
-V =${GAME_V}.1
+V =5.0.1
 DISTNAME = minetest-${V}
 CATEGORIES =   games x11
-REVISION = 4
 
-HOMEPAGE =		http://www.minetest.net/

+HOMEPAGE = https://www.minetest.net/
+
+MAINTAINER =   Leonid Bobrov 
 
 # source LGPLv2.1/ datas CC BY-SA 3.0

 PERMIT_PACKAGE_CDROM = Yes
 
 WANTLIB += ${COMPILER_LIBCXX} GL GLU ICE Irrlicht SM X11 Xext

-WANTLIB += Xxf86vm bz2 c curl curses form freetype gmp iconv intl
-WANTLIB += jpeg luajit-${MODLUA_VERSION} m ogg openal png pq
-WANTLIB += spatialindex sqlite3 vorbis vorbisfile z
+WANTLIB += Xxf86vm bz2 c curl curses form freetype gmp hiredis
+WANTLIB += jsoncpp iconv intl jpeg leveldb luajit-${MODLUA_VERSION}
+WANTLIB += m ogg openal png pq spatialindex sqlite3 vorbis
+WANTLIB += vorbisfile z
 
 COMPILER =		base-clang ports-gcc base-gcc
 
 MASTER_SITES =		https://github.com/minetest/
 
 DISTFILES =		minetest-{minetest/archive/}${V}${EXTRACT_SUFX} \

-   
minetest-game-{minetest_game/archive/}${GAME_V}${EXTRACT_SUFX}
+   
minetest-game-{minetest_game/archive/}${V}${EXTRACT_SUFX}
 
 MODULES =		devel/cmake \

lang/lua
 
-CONFIGURE_ARGS =	-DENABLE_GETTEXT=ON -DCUSTOM_MANDIR=${PREFIX}/man

-CONFIGURE_ARGS+=   -DENABLE_REDIS=FALSE -DENABLE_LEVELDB=FALSE
-CONFIGURE_ARGS+=   -DBUILD_SERVER=TRUE
-CONFIGURE_ENV +=   CXXFLAGS="-I${X11BASE}/include"
+CONFIGURE_ARGS =   -DBUILD_SERVER=TRUE \
+   -DCUSTOM_MANDIR=${PREFIX}/man \
+   -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE \
+   -DENABLE_SYSTEM_JSONCPP=TRUE \
+   -DUSE_GPROF=TRUE
+
+CONFIGURE_ENV =CFLAGS="${CFLAGS}" \
+   CXXFLAGS="${CXXFLAGS}"
 
-BUILD_DEPENDS =		devel/gettext,-tools

+BUILD_DEPENDS =databases/postgresql,-server \
+   devel/gettext,-tools
 
 RUN_DEPENDS =		devel/desktop-file-utils \

x11/gtk+3,-guic
 
-LIB_DEPENDS =		audio/openal \

-   devel/gmp \
-   databases/sqlite3 \
+LIB_DEPENDS =  audio/libvorbis \
+   audio/openal \
+   databases/leveldb \
+   databases/libhiredis \
databases/postgresql \
+   databases/sqlite3 \
+   devel/gmp \
+   devel/jsoncpp \
geo/spatialindex \
-   audio/libvorbis \
lang/luajit \
net/curl \
x11/irrlicht
@@ -52,7 +59,7 @@ LIB_DEPENDS = audio/openal \
 NO_TEST =  Yes
 
 post-install:

-   mv ${WRKDIR}/minetest_game-${GAME_V}/ \
+   mv ${WRKDIR}/minetest_game-${V}/ \
${PREFIX}/share/minetest/games/minetest_game
chown -R ${SHAREOWN}:${SHAREGRP} 
${PREFIX}/share/minetest/games/minetest_game
 
Index: distinfo

===
RCS file: /cvs/ports/games/minetest/distinfo,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 distinfo
--- distinfo25 Jun 2018 20:02:06 -  1.9
+++ distinfo22 May 2019 10:29:26 -
@@ -1,4 +1,4 @@
-SHA256 (minetest-0.4.17.1.tar.gz) = 
zSXUDFP0kjJe2r0vY5clD0CmHLn+Sh1N1usDDg0c61k=
-SHA256 (minetest-game-0.4.17.tar.gz) = 
8KsHy0fBVAsgFr92o24u7Ciw6ngnv2b8VEfgxeXUSV0=
-SIZE (minetest-0.4.17.1.tar.gz) = 7758675
-SIZE (minetest-game-0.4.17.tar.gz) = 1356784
+SHA256 (minetest-5.0.1.tar.gz) = qncc8XitG0NtVyPl1t0k5CtdVvHP6ckw9kJrfyS7FjU=
+SHA256 (minetest-game-5.0.1.tar.gz) = 
ll0s86yMgivJ5g+49QgYL7LyTd5G9GsADK8iXr4uxRk=
+SIZE (minetest-5.0.1.tar.gz) = 

minecraft: unsupported platform

2018-08-15 Thread Michael Warmuth-Uhl

Hello,

the minecraft wrapper port does not seem to work anymore. After being
updated to minecraft 1.13, the launcher complains:

java.lang.LinkageError: Unknown platform: OpenBSD

Is there a known work-around/fix for this?

Thanks,

Michael

packages: minecraft-0.0.4p6, jdk-1.8.0.172v0, lwjgl-2.9.3p0

full error message:

 Minecraft Crash Report 
// You should try our sister game, Minceraft!

Time: 8/15/18 9:27 PM
Description: Initializing game

java.lang.LinkageError: Unknown platform: OpenBSD
at org.lwjgl.system.Platform.(Platform.java:57)
at org.lwjgl.system.Library.loadSystem(Library.java:98)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.(Library.java:50)
at org.lwjgl.system.MemoryUtil.(MemoryUtil.java:61)
at org.lwjgl.system.MemoryStack.(MemoryStack.java:61)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
at 
java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.lang.ThreadLocal.get(ThreadLocal.java:170)
at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
at cfs.a(SourceFile:126)
at cfi.an(SourceFile:554)
at cfi.am(SourceFile:433)
at cfi.a(SourceFile:377)
at net.minecraft.client.main.Main.main(SourceFile:144)


A detailed walkthrough of the error, its code path and all known details is as 
follows:
---

-- Head --
Thread: Client thread
Stacktrace:
at org.lwjgl.system.Platform.(Platform.java:57)
at org.lwjgl.system.Library.loadSystem(Library.java:98)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.(Library.java:50)
at org.lwjgl.system.MemoryUtil.(MemoryUtil.java:61)
at org.lwjgl.system.MemoryStack.(MemoryStack.java:61)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
at 
java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.lang.ThreadLocal.get(ThreadLocal.java:170)
at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
at cfs.a(SourceFile:126)
at cfi.an(SourceFile:554)
at cfi.am(SourceFile:433)

-- Initialization --
Details:
Stacktrace:
at cfi.a(SourceFile:377)
at net.minecraft.client.main.Main.main(SourceFile:144)

-- System Details --
Details:
Minecraft Version: 1.13
Operating System: OpenBSD (amd64) version OpenBSD_6.4
Java Version: 1.8.0_172, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle 
Corporation
Memory: 114921376 bytes (109 MB) / 210722816 bytes (200 MB) up to 
1060372480 bytes (1011 MB)
JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC 
-XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
Launched Version: 1.13
LWJGL: 3.1.6 build 14
OpenGL: ~~ERROR~~ NoClassDefFoundError: Could not initialize class 
org.lwjgl.system.Platform
GL Caps:
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is 
untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: 


dmesg

OpenBSD 6.4-beta (GENERIC.MP) #213: Wed Aug 15 00:01:00 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8491663360 (8098MB)
avail mem = 8225116160 (7844MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xec200 (39 entries)
bios0: vendor American Megatrends Inc. version "5.6.5" date 02/10/2015
bios0: Notebook W54_55_94_95_97AU,AUQ
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT UEFI SSDT SSDT ASF! SSDT 
SSDT SSDT DMAR
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) 
PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) 
PXSX(S4) RP05(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2494.64 MHz
cpu0: 

Re: Davical on httpd

2017-03-23 Thread Michael Warmuth-Uhl
Hello,

On 03/20/17 09:49, Anders Trobäck wrote:
> Does anyone know if it's possible to run productivity/davical in httpd
> and if it's possible do you have any recipe for httpd.conf? The
> "pkg-readme" only have Apache and Nginx examples.

I'm running davical on httpd with these settings in httpd.conf

  ext_addr="*"

  server "default" {
listen on $ext_addr port 80
listen on $ext_addr tls port 443

# Increase connection limits to extend the lifetime
connection { max requests 500, timeout 3600 }

location "/" { directory index index.php }

location "/davical/*.php*" {
fastcgi socket "/run/php-fpm.sock"
root "/davical/htdocs"
}

...
  }

For php-fpm, I set pm.max_children to 25 because the default of 5 was
too less for my usage.

Good luck,

Michael



Re: solid-pop3d-0.15p4-apop on sparc64

2010-11-13 Thread Michael Warmuth
On Fri, 12 Nov 2010 20:45:17 +1100, Rod Whitworth wrote
 On Fri, 12 Nov 2010 11:21:42 +0200, Alexey Suslikov wrote:
  Are there any better POP3 servers with APOP support?
 
 mail/dovecot ?
 
 Or Teapop?

Thank you for your suggestions, I'll give them a try.

For the moment, I fixed the issue by the attached patch allocating
aligned memory for mbuf. Kind of ugly because of all the additional
free-s. Besides there are more instances of md5_process_bytes where it
is not apparent if the argument is aligned.

IMO the issue should rather be fixed in md5.c but I have no idea how.

Regards,

Michael

--- src/mailbox.c.orig  Sat Nov 13 13:44:15 2010
+++ src/mailbox.c   Sat Nov 13 13:50:37 2010
@@ -334,10 +334,11 @@
 }
 #endif

+#define MBUF_SIZE 128

 int mb_parse(int compare) {
ssize_t tmp2;
-   char mbuf[128];
+   char *mbuf;
ssize_t mcount;
off_t act_ofs = 0;
char msgdate[21];
@@ -349,10 +350,17 @@
size_t tmpfrom_size = 0, tmpsize = 0, tmpcrlfsize = 0;
char tmpdigest[16];
int newline = 1, header, fixed;
+
+   if (posix_memalign((void**)mbuf, 16, MBUF_SIZE) != 0) {
+   pop_log(pop_priority, mailbox: posix_memalign);
+   send_error(Could not allocate alligned memory.);
+   exit(1);
+   }

if (compare)
if (lseek(mailboxfd, 0, SEEK_SET)  0) {
pop_error(mailbox: lseek);
+   free(mbuf);
return -1;  
};
 /* parse mailbox */
@@ -365,7 +373,7 @@
exit(1);
};
fd_initfgets();
-   if ((mcount = fd_fgets(mbuf, sizeof(mbuf), mailboxfd))  0) {   
+   if ((mcount = fd_fgets(mbuf, MBUF_SIZE, mailboxfd))  0) {  
if (!compare) {
unlock_mailbox();
mb_release();
@@ -376,14 +384,18 @@
send_error(mailbox is damaged);
exit(1);
};
+   free(mbuf);
return -1;
};
if (mcount == 0) {
if (!compare) {
msgnr = 0;
+   free(mbuf);
return 0;
-   } else
+   } else {
+   free(mbuf);
return ((msgnr == 0) ? 0 : -1);
+   }
};
if ((mcount  0)  (mcount  (5 + 2 + sizeof(msgdate {
if (!compare) {
@@ -395,6 +407,7 @@
send_error(mailbox is damaged);
exit(1);
};
+   free(mbuf);
return -1;
};
if ((mcount  0)  (strncmp(mbuf, From , 5) != 0)) {
@@ -407,6 +420,7 @@
send_error(mailbox is damaged);
exit(1);
};
+   free(mbuf);
return -1;
};
tmp2 = mcount;  
@@ -434,12 +448,16 @@
(tmp-where != tmpwhere) ||
(tmp-from_size != tmpfrom_size) ||
(memcmp(tmp-digest, tmpdigest, 16) 
!= 0) ||
-   (messages[tmpmsgnr - 1].msg_time != 
tmpmsg_time))
-   return -1;
+   (messages[tmpmsgnr - 1].msg_time != 
tmpmsg_time)) {
+   free(mbuf);
+   return -1;
+   }
};
};
-   if (compare  (tmpmsgnr = msgnr))
+   if (compare  (tmpmsgnr = msgnr)) {
+   free(mbuf);
return 0; /* messages added only */
+   }
tmpfrom_where = act_ofs - mcount;
tmpmsgnr++;
if (!compare)
@@ -460,7 +478,7 @@
} else
memcpy(msgdate, mbuf + mcount - 
sizeof(msgdate), sizeof(msgdate));
while (mbuf[mcount - 1] != '\n') {
-   mcount = fd_fgets(mbuf, sizeof(mbuf), 
mailboxfd);
+   mcount = fd_fgets(mbuf, MBUF_SIZE, mailboxfd);
if (mcount = 0)
break;
if (mcount  (sizeof(msgdate))) {
@@ -485,6 +503,7 @@
send_error(mailbox is damaged);
exit(1);
};
+   free(mbuf);
return -1;
};
  

solid-pop3d-0.15p4-apop on sparc64

2010-11-11 Thread Michael Warmuth
Hello,

solid-pop3d-0.15p4-apop does not work for me on sparc64.
Connection gets closed right after successful authentication. 

I think the cause is an alignment problem:

In mailbox.c, mb_parse():
340:char mbuf[128];
500:md5_process_bytes(mbuf, mcount, context);

md5.c, md5_process_bytes(const void *buffer, ...):
240:md5_process_block(buffer, len  ~63, ctx);

md5.c, md5_process_block(const void *buffer, ...):
273:const md5_uint32 *words = buffer;

Accessing this pointer (words) will lead to a bus error because
mbuf (and hence words) is not aligned. 

How should this be fixed? Use posix_memalign to align mbuf? 
Are there any better POP3 servers with APOP support?
And why did it work before (at least with OpenBSD 4.6)?

Thank you,

Michael



Re: mail/solid-pop3d: APOP not working for big endian machines

2008-11-11 Thread Michael Warmuth

Hi,

Stuart Henderson wrote:

A simpler fix, and, after some head-scratching, repair PKGNAME
(unless I miss something not mentioned in commit logs as to why
it happened like that...)
ok?


Fine. That's better (APOP tested on sparc64 and amd64).

I don't know about the correct package naming, though.

Regards,

Michael



mail/solid-pop3d: APOP not working for big endian machines

2008-11-09 Thread Michael Warmuth

Hello,

the flavor apop of solid-pop3d does not work on sparc64.

The problem is caused by failing detection of big
endianess in md5.c (Linux-specific?):
#ifdef _LIBC
#include endian.h
#if __BYTE_ORDER == __BIG_ENDIAN
#define WORDS_BIGENDIAN 1
#endif
#endif

Patch (tested on sparc64 and amd64) is attached.

Please comment.

Thanks,

Michael
--- src/md5.c.orig  Sun Nov  9 15:35:13 2008
+++ src/md5.c   Sun Nov  9 15:47:54 2008
@@ -46,6 +46,10 @@
 #endif
 #endif
 
+#if _BYTE_ORDER == _BIG_ENDIAN
+#define WORDS_BIGENDIAN 1
+#endif 
+
 #ifdef WORDS_BIGENDIAN
 #define SWAP(n)\
 (((n)  24) | (((n)  0xff00)  8) | (((n)  8)  0xff00) | ((n)  24))


Re: games/spider seg faults

2008-08-03 Thread Michael Warmuth
Hello,

On Sat, 2 Aug 2008 16:52:27 +0200, Michael Warmuth wrote
 The reason seems to be missing prototypes of malloc/calloc in 
 gfx.c and spider.c. Adding includes of stdlib.h fixes the 
 problem (changed patch files attached).

Hm, now it seg faults whenever clicking a card. There are some more
C files using *alloc without including stdlib (patches attached).

With these additional patches, spider seems to work.

Regards,

Michael


patch-movelog_c
Description: Binary data


patch-xv_stubs_c
Description: Binary data


patch-xv_ui_c
Description: Binary data


patch-util_c
Description: Binary data


games/spider seg faults

2008-08-02 Thread Michael Warmuth
Hello,

games/spider seg faults at each start. I am running snapshot
OpenBSD 4.3-current (GENERIC.MP) #1734: Tue Jun 17 16:12:44 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
with the according ports tree snapshot.

The reason seems to be missing prototypes of malloc/calloc in gfx.c and 
spider.c. Adding includes of stdlib.h fixes the problem (changed patch 
files attached).

Regards,

Michael


patch-gfx_c
Description: Binary data


patch-spider_c
Description: Binary data