Package Details: ace-of-penguins 1.4-6

Git Clone URL: https://aur.archlinux.org/ace-of-penguins.git (read-only, click to copy)
Package Base: ace-of-penguins
Description: A set of Unix/X solitaire games.
Upstream URL: https://www.delorie.com/store/ace/
Keywords: ace game games solitaire
Licenses: GPL
Submitter: renato
Maintainer: kleintux (bown)
Last Packager: kleintux
Votes: 22
Popularity: 0.000000
First Submitted: 2008-10-20 05:03 (UTC)
Last Updated: 2022-11-22 17:45 (UTC)

Latest Comments

1 2 3 4 Next › Last »

sng commented on 2025-03-05 21:00 (UTC) (edited on 2025-03-05 21:12 (UTC) by sng)

For some reason I was not able to use the changes proposed by @worbgge but I did apply them manually and created a patch based on those changes

save this as fix-1.4-6.patch in dir ace-of-penguins

diff --git a/PKGBUILD b/PKGBUILD
index 73e9875..4625caa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,7 +31,7 @@ source=("https://www.delorie.com/store/ace/$_pkgname-$pkgver.tar.gz"
         "thornq.desktop"
 )
 md5sums=('b80169fa59d69758bb9686f31a84ad2b'
-         '9a95690a7f04cce7009373c06c898812'
+         '5837dffe00c7ee89e223f242d97efd0c'
          '9dd95179f01e019795d0532e29970967'
          '10589ed7a16e62f128daf627aed08800'
          '05f94f8737b2b5993c3d7b4acaea94a0'
diff --git a/ace14_fixes.patch b/ace14_fixes.patch
index 8e7ee39..58b69ae 100644
--- a/ace14_fixes.patch
+++ b/ace14_fixes.patch
@@ -78,3 +78,37 @@
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;

+
+--- ace14/lib/make-imglib.c    2025-03-05 22:34:31.643806571 +0200
++++ ace-1.4/lib/make-imglib.c  2025-03-05 22:24:29.566738253 +0200
+@@ -7,6 +7,7 @@
+ #include <dirent.h>
+ 
+ #include <png.h>
++#include <ctype.h>
+ 
+ static int verbose = 0;
+ static char *basename = "images";
+@@ -202,7 +203,7 @@
+   char *rv;
+   if (string) {
+     next = string;
+-    return;
++    return string;
+   }
+   while (*next && !isgraph(*next)) next++;
+   if (!*next) return 0;
+
+
+
+--- ace14/lib/imagelib.c   2012-03-24 20:00:49.000000000 +0200
++++ ace-1.4/lib/imagelib.c 2025-03-05 22:23:57.845849270 +0200
+@@ -1,6 +1,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include "imagelib.h"
++#include <stdlib.h>
+ #include "cards.h"
+ 
+ image_list *image_root = 0;
+

and execute

patch -i fix-1.4-6.patch
makepkg -si

worbgge commented on 2024-12-11 12:06 (UTC) (edited on 2024-12-11 13:53 (UTC) by worbgge)

once install with yay, it gives the error

imagelib.c:109:17: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
  109 |   rv = (image *)malloc (sizeof(image));
      |                 ^~~~~~
imagelib.c:5:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
    4 | #include "cards.h"
  +++ |+#include <stdlib.h>
    5 |
imagelib.c:109:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
  109 |   rv = (image *)malloc (sizeof(image));
      |                 ^~~~~~
imagelib.c:109:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’

Edit, this ace14_fixes.patch should work:

--- ace-1.4/lib/imagelib.c  2012-03-24 18:00:49.000000000 +0000
+++ ace-1.4/lib/imagelib.c 2024-12-11 13:01:20.736769787 +0000
@@ -2,6 +2,7 @@
 #include <string.h>
 #include "imagelib.h"
 #include "cards.h"
+#include <stdlib.h>

image_list *image_root = 0; --- ace-1.4/lib/make-imglib.c 2012-03-24 18:00:49.000000000 +0000 +++ ace-1.4/lib/make-imglib.c 2024-12-11 13:50:18.723471957 +0000 @@ -8,6 +8,8 @@

#include <png.h>

+#include <ctype.h> + static int verbose = 0; static char basename = "images"; static char imagedir = "."; @@ -202,7 +204,7 @@ char rv; if (string) { next = string; - return; + return string; } while (next && !isgraph(next)) next++; if (!next) return 0; @@ -353,3 +355,4 @@

exit(0); } +

bown commented on 2022-11-21 20:06 (UTC) (edited on 2022-11-22 13:50 (UTC) by bown)

I'll let you maintain the patch.

Editing this comment, please ignore the font change in help.c. I managed to get the fonts working on the Steam Deck. I had to install the xorg-fonts-100dpi, but then after it copy /usr/share/fonts/100dpi to ~/.local/share/fonts , go into the local font dir and do mkfontdir, and then do "xset +fp ~/.local/share/fonts/100dpi". After rebooting the fonts finally showed up for X.

Again, most arch installs will work fine, but the Steam Deck is stripped down.

bown commented on 2022-11-21 11:00 (UTC) (edited on 2022-11-21 11:15 (UTC) by bown)

Wanting to get this running on the Steam Deck even after the patch it needed a couple of tweaks to get it running. First, even after installing xorg-fonts-100dpi, still couldn't find the fonts needed, so in lib/help.c changed both of the XLoadQueryFont lines to use font "-misc-fixed-medium-*-*-*-*-*-*-*-*-*-*-*"

Additionally I had a problem where Freecell and Merlin wouldn't work. Both would fail on startup with a BadMatch. I've seen this issue listed on other Arch forums.

The fix I have is "good enough". It fixes the BadMatch and I don't see any graphical issues, but I didn't continue more up in the code path to figure out why the bad values are coming in. Anyway the fix is:


-- ../../../penguins_orig/ace-1.4/lib/table.c  2012-03-24 14:00:49.000000000 -0400
+++ ./table.c   2022-11-21 05:36:11.183763096 -0500
@@ -216,7 +216,7 @@
   printf("copy clip: x=%3d y=%3d w=%3d h=%3d (ex=%d ey=%d ew=%d eh=%d)\n",
         dx+x, dy+y, w, h, ex, ey, ew, eh);
 #endif
-  if (w>0 && h>0)
+  if (w>0 && h>0 && !(w == 1 && h == 1 && (dx+x) == 0 && (dy+y) == 0))
   {
 #if TRACE_PICTURES
     printf("copy aft: x=%3d y=%3d w=%3d h=%3d\n", dx+x, dy+y, w, h);

sng commented on 2021-07-05 10:43 (UTC) (edited on 2021-07-05 10:43 (UTC) by sng)

@kleintug Thanks a lot!

And thank you for keeping it up!

kleintux commented on 2021-07-05 09:33 (UTC)

@sng thx for the patch. adopted the package and added your patch. I list you under the contributors. cheers.

sng commented on 2020-10-06 23:29 (UTC) (edited on 2020-10-06 23:30 (UTC) by sng)

ok, fixed it... I just added this to ace14_fixes.patch

--- ace-1.4/lib/xwin.c  2020-10-07 02:07:59.000000000 +0300
+++ ace14/lib/xwin.c    2020-10-07 02:15:05.941784967 +0300
@@ -55,7 +55,6 @@
   { "-visual", OPTION_INTEGER, &visual_id },
   { 0, 0, 0 }
 };
-OptionDesc *xwin_options = xwin_options_list;

 Display *display=0;
 int screen=0;

sng commented on 2020-10-03 19:10 (UTC) (edited on 2020-10-03 19:11 (UTC) by sng)

This is on a fresh install...

/bin/sh ../libtool --tag=CC   --mode=link gcc  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -version-info 1:0:0  -Wl,-O1,--sort-common,--as-needed,-z,relro -lpng -lz -lm -o libcards.la -rpath /usr/lib table.lo help.lo stack.lo imagelib.lo xwin.lo images.lo table_rn.lo funcs.lo  
libtool: link: gcc -shared  .libs/table.o .libs/help.o .libs/stack.o .libs/imagelib.o .libs/xwin.o .libs/images.o .libs/table_rn.o .libs/funcs.o   -lpng -lz -lm  -march=x86-64 -mtune=generic -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro   -Wl,-soname -Wl,libcards.so.1 -o .libs/libcards.so.1.0.0
/usr/bin/ld: .libs/xwin.o:(.data.rel+0x40): multiple definition of `xwin_options'; .libs/table.o:(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:303: libcards.la] Error 1
make[1]: Leaving directory '/home/user/.cache/yay/ace-of-penguins/src/ace-1.4/lib'
make: *** [Makefile:281: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
error making: ace-of-penguins

Anyone can help?