Package Details: gforth 0.7.3-3

Git Clone URL: https://aur.archlinux.org/gforth.git (read-only, click to copy)
Package Base: gforth
Description: Fast and portable implementation of the ANS Forth language
Upstream URL: http://www.gnu.org/software/gforth/
Licenses: GPL-3.0-or-later
Submitter: Allan
Maintainer: envolution
Last Packager: envolution
Votes: 52
Popularity: 0.48
First Submitted: 2008-12-28 12:46 (UTC)
Last Updated: 2025-01-11 01:52 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

mutewave commented on 2024-12-28 23:37 (UTC)

Yup. Running x86_64, with kernel 6.12.6-arch1-1. I'll give that a shot.

envolution commented on 2024-12-28 22:15 (UTC) (edited on 2024-12-28 22:17 (UTC) by envolution)

@mutewave Just to confirm you're on x86_64 right? Can you please try patch the PKGBUILD and try makepkg -siL again?

--- PKGBUILD.orig   2024-12-28 17:13:30.863433726 -0500
+++ PKGBUILD    2024-12-28 17:14:01.336261750 -0500
@@ -13,6 +13,7 @@
 arch=('i686' 'x86_64' 'armv6h')
 license=('GPL-3.0-or-later')
 depends=('libtool' 'texinfo')
+options=(!lto)
 #source=("https://git.savannah.gnu.org/cgit/gforth.git/snapshot/${pkgname}-${pkgver}.tar.gz" #official source
 source=("https://ftp.gnu.org/gnu/gforth/gforth-${pkgver}.tar.gz"
   #source=("$pkgname-$pkgver.tar.gz::https://github.com/forthy42/gforth/archive/refs/tags/${pkgver}.tar.gz" #this is just faster
@@ -73,7 +74,7 @@

 build() {
   cd "$pkgname-$pkgver"
-  make
+  make -j1
   make doc
   make more
 }

mutewave commented on 2024-12-28 21:42 (UTC)

Rog. Here it is

https://pastebin.com/h1jEE4aM

Thanks!

envolution commented on 2024-12-28 21:17 (UTC)

@mutewave I need more info as it's not failing for me:

$ cd /tmp && git clone https://aur.archlinux.org/gforth.git && cd gforth && makepkg -siL
$ ls -tr gforth-*.log | xargs cat > makelog.txt

and upload /tmp/gforth/makelog.txt to pastebin/gist/other and link it here

mutewave commented on 2024-12-28 20:53 (UTC)

Build fails with exit status 4.

In specific:

sleep 1 #should make hpux-workaround unnecessary
You need to configure with a gforth in $PATH to build this part
You need to configure with a gforth in $PATH to build this part
make: *** [Makefile:715: kernl16l.fi-] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:724: kernl32b.fi-] Error 1
You need to configure with a gforth in $PATH to build this part
make: *** [Makefile:727: kernl64l.fi-] Error 1
You need to configure with a gforth in $PATH to build this part
make: *** [Makefile:730: kernl64b.fi-] Error 1
You need to configure with a gforth in $PATH to build this part
make: *** [Makefile:718: kernl16b.fi-] Error 1
You need to configure with a gforth in $PATH to build this part
make: *** [Makefile:721: kernl32l.fi-] Error 1

I believe this is referring to lines 714-730 in the generated makefile.os2.

kernl16b$(EC).fi:   $(KERNLS)
        -$(CP) kernl16b$(EC).fi kernl16b$(EC).fi~
        -$(CP) kernl16b$(EC).fi- kernl16b$(EC).fi

kernl16l$(EC).fi:   $(KERNLS)
        -$(CP) kernl16l$(EC).fi kernl16l$(EC).fi~
        -$(CP) kernl16l$(EC).fi- kernl16l$(EC).fi

kernl32b$(EC).fi:   $(KERNLS)
        -$(CP) kernl32b$(EC).fi kernl32b$(EC).fi~
        -$(CP) kernl32b$(EC).fi- kernl32b$(EC).fi

kernl32l$(EC).fi:   $(KERNLS)
        -$(CP) kernl32l$(EC).fi kernl32l$(EC).fi~
        -$(CP) kernl32l$(EC).fi- kernl32l$(EC).fi

kernl64b$(EC).fi:   $(KERNLS)
        -$(CP) kernl64b$(EC).fi kernl64b$(EC).fi~
        -$(CP) kernl64b$(EC).fi- kernl64b$(EC).fi

kernl64l$(EC).fi:   $(KERNLS)
        -$(CP) kernl64l$(EC).fi kernl64l$(EC).fi~
        -$(CP) kernl64l$(EC).fi- kernl64l$(EC).fi

Let me know if any other information is needed.

okflo commented on 2024-12-15 18:16 (UTC)

yep - installs and runs perfectly fine! many thanks @envolution for that fast fix!

envolution commented on 2024-12-15 17:05 (UTC)

@okflo could you try again? I had to move the source to gnu.org due to a missing release on github

okflo commented on 2024-12-15 15:59 (UTC)

as of today it fails with "Failure while downloading https://github.com/forthy42/gforth/archive/refs/tags/0.7.3.tar.gz" - The requested URL returned error: 404

envolution commented on 2024-12-15 01:42 (UTC) (edited on 2024-12-15 01:42 (UTC) by envolution)

this should be working now, please let me know if there are issues

Changes:
-included various debian patches
-custom patch to get deal with some libffi issues I was seeing that seems specific to Arch
-included docs and more as suggested below
-included html docs in /usr/share/doc/gforth/gforth_html
-removed emacs/vim files as I believe it's better managed by gforth-git

This package appears to be a requirement for gforth-git which is a much more recent development version than this package.

cosarara97 commented on 2024-06-16 12:36 (UTC)

An updated PKGBUILD for the latest 0.7.9 snapshot:

# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Jason Chu <jason@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=gforth
pkgver=0.7.9_20240613
pkgrel=1
url="http://www.gnu.org/software/gforth/"
pkgdesc="Fast and portable implementation of the ANS Forth language"
arch=('i686' 'x86_64' 'armv6h')
license=('GPL3')
makedepends('texlive-basic')
depends=('libtool' 'freetype2' 'mesa' 'glew' 'libx11' 'libxrandr'
    'glfw' 'harfbuzz' 'gstreamer' 'gst-plugins-base-libs' 'opus'
    'libpulse' 'libpipewire' 'wayland' 'unzip' 'texinfo' 'wayland'
    'wayland-protocols' 'libxkbcommon' 'stb')
source=("http://www.complang.tuwien.ac.at/forth/$pkgname/Snapshots/$pkgver/$pkgname-$pkgver.tar.xz")
md5sums=('e723cef6be6ae68395859b116651d6a9')
options=('libtool')
install=gforth.install

build() {
    cd "$srcdir/$pkgname-$pkgver"
    # no-error on format security because the pipewire lib has it
    # no error on implicit-function-declaration because the gl lib has it
    CFLAGS="$CFLAGS -Wno-error=format-security -Wno-error=implicit-function-declaration" ./configure --prefix=/usr
    make -j $(nproc) PREFIX=/usr
    make -j $(nproc) PREFIX=/usr doc
    make -j $(nproc) PREFIX=/usr more
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    make -j1 PREFIX=/usr DESTDIR="$pkgdir" install
}