Error build tclkit

Hi,

I tried to build xampp, something go wrong during the tclkit build

the build file is looking so

#Maintainer: Grey Christoforo <first name [at] last name [dot] net>
pkgname=tclkit
pkgver=8.6.11
_tcl_ver=8.6.11
_tk_ver=8.6.11.1
_kit_ver=8.6.4-9
pkgrel=1
pkgdesc="single-file executable that provides a complete Tcl and Tk runtime"
arch=(x86_64)
url="https://github.com/stiefel40k/kitgen"
options=(emptydirs !buildflags !makeflags !strip)
license=('custom')
makedepends=(
'upx'
'ucl'
'libx11'
'xorgproto')
source=("kitgen-${_kit_ver}.tar.gz::https://github.com/stiefel40k/kitgen/archive/${_kit_ver}.tar.gz"
	"tk-${_tk_ver}.tar.gz::https://prdownloads.sourceforge.net/tcl/tk${_tk_ver}-src.tar.gz"
	"tcl-${_tcl_ver}.tar.gz::https://prdownloads.sourceforge.net/tcl/tcl${_tcl_ver}-src.tar.gz")

sha256sums=('6a78963842e6810f85ba81a01866ba705b470feee8c0bb25a86992560b215150'
            '006cab171beeca6a968b6d617588538176f27be232a2b334a0e96173e89909be'
            '8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258')
noextract=("tk-${_tk_ver}.tar.gz" "tcl-${_tcl_ver}.tar.gz")

prepare() {
  cd kitgen-${_kit_ver}
  mkdir -p build/{tcl,tk}
  bsdtar --strip-components 1 -xf "${srcdir}"/tk-${_tk_ver}.tar.gz -C build/tk
  bsdtar --strip-components 1 -xf "${srcdir}"/tcl-${_tcl_ver}.tar.gz -C build/tcl
}

build() {
  cd kitgen-${_kit_ver}

  export B64=b64
  export options="thread allenc cli dyn"

  msg2 "config"
  ./config.sh build/kit-large ${options} ${B64}

  msg2 "make"
  cd build/kit-large
  make
}

check() {
  local _testver=$(echo 'puts $tcl_version' | "${srcdir}"/kitgen-${_kit_ver}/build/kit-large/tclkit-cli)
  msg2 "Test passed with tclkit version = ${_testver}"
}

package() {
 mkdir -p "${pkgdir}"/usr/bin
 install -o root -g root "${srcdir}"/kitgen-${_kit_ver}/build/kit-large/kit-* "${pkgdir}"/usr/bin/.
 install -o root -g root "${srcdir}"/kitgen-${_kit_ver}/build/kit-large/tclkit-* "${pkgdir}"/usr/bin/.
 ln -s tclkit-cli "${pkgdir}"/usr/bin/tclkit
}

the error is so

Preparing...
Cloning tclkit build files...
Generating tclkit information...
Checking tclkit dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building tclkit...
==> Making package: tclkit 8.6.11-1 (ven. 07 avril 2023 11:25:33)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kitgen-8.6.4-9.tar.gz
  -> Found tk-8.6.11.1.tar.gz
  -> Found tcl-8.6.11.tar.gz
==> Validating source files with sha256sums...
    kitgen-8.6.4-9.tar.gz ... Passed
    tk-8.6.11.1.tar.gz ... Passed
    tcl-8.6.11.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting kitgen-8.6.4-9.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  -> config
Configuring build/kit-large/Makefile for Linux.
  -> make
/var/tmp/pamac-build-nls/tclkit/PKGBUILD: line 45: make: command not found
==> ERROR: A failure occurred in build().
    Aborting...

Preparing...
Cloning tclkit build files...
Generating tclkit information...
Checking tclkit dependencies...
Resolving dependencies...
Checking inter-conflicts...
Edit tclkit build files

Cloning tclkit build files...
Generating tclkit information...
Checking tclkit dependencies...
Resolving dependencies...
Checking inter-conflicts...
Edit tclkit build files

Cloning tclkit build files...
Generating tclkit information...
Checking tclkit dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building tclkit...
==> Making package: tclkit 8.6.11-1 (ven. 07 avril 2023 11:29:08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found kitgen-8.6.4-9.tar.gz
  -> Found tk-8.6.11.1.tar.gz
  -> Found tcl-8.6.11.tar.gz
==> Validating source files with sha256sums...
    kitgen-8.6.4-9.tar.gz ... Passed
    tk-8.6.11.1.tar.gz ... Passed
    tcl-8.6.11.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting kitgen-8.6.4-9.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  -> config
Configuring build/kit-large/Makefile for Linux.
  -> make
/var/tmp/pamac-build-nls/tclkit/PKGBUILD: line 45: make: command not found
==> ERROR: A failure occurred in build().
    Aborting...

is it the solution ?
No, I replace the md5sums with SKIP, same issue

Install the base-devel group first and read about the AUR.

1 Like

for building/compiling packages from AUR, you need to have installed all the packages in the ā€œbase-develā€ package group

the make command is essential - and is included in that group of packages

1 Like

Thanks both for your quick answer, both answer is the solution :slight_smile:
it works now for sure, first time it happen, I understood the issue, thanks a lot.

@philm
Strange those packages ā€˜base-develā€™ are not include by default ?
I did a fresh install this morningā€¦

Why? Installing packages form the AUR is completely unsupported. The base-devel package is only for user that going to compile software.

Iā€™m not a power user, sorry, but I understand the needed package to build the wished software.
I avoid the aur packages, Iā€™m aware with the potential risk, be sure.

No problem. Just try to understand what it means to build packages form the AUR, specially the risks that are part of it.

1 Like

I would think that
when a user who is using pamac or itā€™s GUI
and enables AUR support, in order to be able to use these packages,
would expect that this ā€œbase-develā€ package group
will be installed as a dependency
so that the AUR packages can actually be built.

I donā€™t know (!) whether this is the case - I rarely used pamac
and I knew of this dependency
and did install it without even trying to rely on pamac doing it for me.

If going the makepkg route or using any other AUR helper, reading is still required and the thus gained knowledge
that this package group is needed.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.