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.67
First Submitted: 2008-12-28 12:46 (UTC)
Last Updated: 2024-12-29 16:40 (UTC)

Latest Comments

1 2 3 4 Next › Last »

envolution commented on 2024-12-29 16:42 (UTC)

thanks @dbb and @mutewave again

added texlive meta - @mutewave it's likely well utilised in the 'make doc' section which I think I added shortly after adopting

mutewave commented on 2024-12-29 15:49 (UTC)

@dbb that was what I did when I was trying to resolve the build failures post-patch. I'm actually curious why tex is a sticking point with this.

dbb commented on 2024-12-29 13:19 (UTC)

Fails to build in a clean chroot with:

You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://tug.org/texlive,
or do a web search for TeX and your operating system or distro.
make: *** [Makefile:941: doc/gforth.dvi] Error 1

Needed to add texlive-meta to makedepends to get it to build.

mutewave commented on 2024-12-29 04:51 (UTC)

No problem, thanks for your timely assistance. Happy holidays!

envolution commented on 2024-12-29 01:12 (UTC)

@mutewave I should have said

makepkg -Csi

though i generally do it manually by

rm -f *zst && rm -rf ./src && makepkg -si

Thanks for the report and detail you provided. It seems as though options=(!lto) is unfortunately needed for this package in certain circumstances. I'll update the package a little later today

mutewave commented on 2024-12-29 00:35 (UTC)

I took out the -j1, hence

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

As instructed, !lto was retained:

pkgname=gforth
pkgver=0.7.3
pkgrel=3
url="http://www.gnu.org/software/gforth/"
pkgdesc="Fast and portable implementation of the ANS Forth language"
arch=('i686' 'x86_64' 'armv6h')
license=('GPL-3.0-or-later')
depends=('libtool' 'texinfo')
options=(!lto)

do you mean makepkg -si or makepkg -sif to overwrite the existing build? makepkg -si just installs the existing package. however makepkg -sif yields a build failure. Here are three pastebins:

makelog.txt.2 = https://pastebin.com/umNLu9Zv

vmgen.log = https://pastebin.com/NYxmxDs0

the actual part I saw where build craps out = https://pastebin.com/fU1zWuPB

envolution commented on 2024-12-29 00:12 (UTC)

Yes please, I'm curious whether the addition of options=(!lto) or the change to make -j1 fixed the build for you. texinfo sounds like a makedepend i missed but not related to your original error.

If you don't mind, try run makepkg -si without the -j1 and with !lto and let me know if it failed/succeeded - I will know what to change based on your response

Thanks for following up mate

mutewave commented on 2024-12-29 00:00 (UTC)

Applied the patch and then entered makepkg -siL. At first there was an error complaining about being unable to find texinfo. So I reinstalled the texinfo package and also installed the texlive-meta (something I've been meaning to do for a bit). After that, it was built and installed.

I can run gforth and get to the text interpreter just fine. Happy to provide any other info if helpful.

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
 }