Package Details: x48 0.6.4-3

Git Clone URL: https://aur.archlinux.org/x48.git (read-only, click to copy)
Package Base: x48
Description: An HP 48 x/sx/g/gx Emulator
Upstream URL: http://sourceforge.net/projects
Licenses: GPL3
Conflicts: x48
Provides: x48
Submitter: ewaller
Maintainer: ckoba
Last Packager: ckoba
Votes: 9
Popularity: 0.000000
First Submitted: 2016-03-31 15:11 (UTC)
Last Updated: 2022-06-08 07:17 (UTC)

Dependencies (2)

Required by (0)

Sources (3)

Latest Comments

1 2 Next › Last »

matmoul commented on 2022-11-07 02:00 (UTC) (edited on 2022-11-07 02:43 (UTC) by matmoul)

I use x48 for a long time, but now i'm trying to build it with a minimal arch install, no xorg (for a custom repo). I receive an error message : configure: error: Package requirements (xt) were not met:

Consider to add xterm as dependecy.

ckoba commented on 2022-06-08 07:18 (UTC)

@Moxon:

Thanks for the patch, I've committed it to PKGBUILD.

lgomesf commented on 2021-10-19 15:41 (UTC) (edited on 2021-10-19 15:45 (UTC) by lgomesf)

font error

x48 -geometry +0+0 -xrm 'smallLabelFont: fixed' -xrm 'mediumLabelFont: fixed' -xrm 'largeLabelFont: fixed' -xrm 'connectionFont: fixed'

x48: using XShm extension.

x48: /home/luiz/.hp48/hp48 is a version 0.4.0 file, converting

x48: FATAL ERROR, exit.

- can't load font '-*-fixed-bold-r-normal-*-14-*-*-*-*-*-iso8859-1'

- Please change resource 'smallLabelFont'

Moxon commented on 2021-08-25 07:11 (UTC)

@fabio.ffd:

I have a similar error resulting from the '-Werror=format-security' compiler flag which has been added to Arch (https://gitlab.archlinux.org/archlinux/rfcs/-/blob/master/rfcs/0003-buildflags.rst#specification).

The good fix would be patching the sources, but I patched PKGBUILD instead:

diff --git a/PKGBUILD b/PKGBUILD
index 915be9a..86ec3a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -30,6 +30,7 @@ build() {
     autoconf
     ./configure --prefix /usr
     sed -i '698s/inline/static inline/' src/emulate.c
+    sed -i 's/-Werror=format-security/-Wformat-security/g' Makefile src/Makefile
     make
     bzcat gxrom.bz2 > gxrom
     bzcat sxrom.bz2 > sxrom

Then it installed fine.

fabio.ffd commented on 2021-07-15 16:02 (UTC)

Hi all, I am getting errors on makepkg: ... rpl.c: In function ‘dec_string’: rpl.c:370:11: error: format not a string literal and no format arguments [-Werror=format-security] 370 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ rpl.c: In function ‘dec_library’: rpl.c:614:11: error: format not a string literal and no format arguments [-Werror=format-security] 614 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ rpl.c: In function ‘dec_local_ident’: rpl.c:770:11: error: format not a string literal and no format arguments [-Werror=format-security] 770 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ rpl.c: In function ‘dec_global_ident’: rpl.c:814:11: error: format not a string literal and no format arguments [-Werror=format-security] 814 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ rpl.c: In function ‘xlib_name’: rpl.c:991:31: error: format not a string literal and no format arguments [-Werror=format-security] 991 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ rpl.c: In function ‘dec_char’: rpl.c:1184:7: error: format not a string literal and no format arguments [-Werror=format-security] 1184 | sprintf(p, hp48_trans_tbl[c].trans); | ^~~~~~~ ... cc1: some warnings being treated as errors make[2]: [Makefile:520: rpl.o] Error 1 make[2]: Leaving directory '/home/fabio/.aur/x48-0.6.4-2/src/src' make[1]: [Makefile:447: all-recursive] Error 1 make[1]: Leaving directory '/home/fabio/.aur/x48-0.6.4-2/src' make: *** [Makefile:365: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

Linux 5.12.15-arch1-1 up to date

Could some one help-me please?

lgomesf commented on 2019-09-26 15:57 (UTC)

@vicnat It worked, thank you very much. Just add the alias x48 = 'x48 -connFont fixed'

vicnat commented on 2019-09-26 15:46 (UTC)

@lgomesf

I have an alias in my .bashrc for x48 as follows: alias x48='x48 -connFont fixed'

Could you check what xorg-fonts packages are installed in your arch system? In mine I have these: xorg-fonts-100dpi xorg-fonts-cyrillic
xorg-fonts-type1 xorg-fonts-75dpi xorg-fonts-encodings
xorg-fonts-alias xorg-fonts-misc

Also you can found a work around for the helvetica connectionFont error in this link https://www.ebower.com/docs/ubuntu-x48/

lgomesf commented on 2019-09-26 14:52 (UTC) (edited on 2019-09-26 14:53 (UTC) by lgomesf)

Error running program

$ x48 x48: using XShm extension. x48: FATAL ERROR, exit. - can't load font '--helvetica-medium-r-normal--12-----*-iso8859-1' - Please change resource 'connectionFont'

$ x48 -geometry +0+0 -xrm 'smallLabelFont: fixed' -xrm 'mediumLabelFont: fixed' -xrm 'largeLabelFont: fixed' -xrm 'connectionFont: fixed' x48: using XShm extension. x48: FATAL ERROR, exit. - can't load font '--helvetica-medium-r-normal--12-----*-iso8859-1' - Please change resource 'connectionFont'

matmoul commented on 2019-03-07 00:21 (UTC)

@JM9 Thanks for the changes, x48 works again...

@vicnat Sorry for the flag without further detail, I thought my last comment was enough. I'll try to made best the next time ;-)

JM9 commented on 2019-02-26 05:37 (UTC)

Sorry for the delay. I've updated the PKGBUILD with @vicnat's changes. If you get a font error at start up please use:

x48 -geometry +0+0 -xrm 'smallLabelFont: fixed' -xrm 'mediumLabelFont: fixed' -xrm 'largeLabelFont: fixed' -xrm 'connectionFont: fixed'