Package Details: lens 4.2.2-1

Git Clone URL: (read-only, click to copy)
Package Base: lens
Description: The Kubernetes IDE
Upstream URL:
Keywords: aks dashboard devops kubernetes
Licenses: MIT
Conflicts: lens-bin
Submitter: dbirks
Maintainer: ogarcia
Last Packager: ogarcia
Votes: 4
Popularity: 0.50
First Submitted: 2020-03-27 06:44
Last Updated: 2021-04-17 12:02

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

zagg commented on 2020-09-20 14:52

Ok I figured what is happening.

In my script I use this:

# * Set Makepkg.conf settings
if [ $numberofcores -gt 1 ]
        echo "$numberofcores cores available."
        echo "Changing the makeflags for $numberofcores cores."
        sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j'$numberofcores'"/g' /etc/makepkg.conf;
        echo "Changing the compression settings for $numberofcores cores."
        sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T 0 -z -)/g' /etc/makepkg.conf
        echo "No change."

Here the problem is because of my MAKEFLAGS setting for makepkg. I'm using a multi core CPU so the setting is set to -j8

This cause the makefile to run the commands at the same time and fail.

zagg commented on 2020-09-20 13:56

So I digged and tried a lot of things. I found that if I split the steps like so in the PKGBUILD, it actually work:

build() {
  cd $pkgname-${pkgver/_/-}
  make install-deps
  make download-bins
  make build

Not sure why it doesn't work when using durectly make build

Looks like my makepkg -f --sign is running all the steps from the Makefile at the same time hence it fails using concurrently which is installed with make install-deps

zagg commented on 2020-09-20 09:37

Here is the image I created to build my packages. I'll try your script and compare the steps.

dbirks commented on 2020-09-20 01:40

That's a good idea, I just tried it in a container as well. Unfortunately I haven't gotten that error yet, but here's the script I used in case you want to compare notes:


set -o errexit

trap "docker rm --force lens-build" EXIT

docker pull archlinux

docker run \
  --detach \
  --name lens-build \
  archlinux \
  sleep infinity

docker exec -i lens-build bash <<-EOF
  set -o verbose

  pacman -Sy --noconfirm \
    base-devel \
    git \
    nodejs-lts-erbium \
    node-gyp \

  useradd --create-home testuser
  echo "testuser ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/testuser
  su - testuser

  git clone
  cd lens
  makepkg -si --noconfirm

zagg commented on 2020-09-19 17:10

I tried to build it interactively and did an echo $NODE_ENV It return nothing, there is no such variable.

I even tried to set it to export NODE_ENV=development

Same result.

zagg commented on 2020-09-19 16:57

I'm actually building my AUR package on my CI setup in Docker. Hence I have fresh archlinux install everytime using archlinux as a base image.

Here are the command I run to build:

this install all the needed dependencies

yay -Sy --noconfirm $(pacman --deptest $(source ./PKGBUILD && echo ${depends[@]} ${checkdepends[@]} ${makedepends[@]}))

this trigger the actual AUR build

makepkg -f

Let me check the variable.

dbirks commented on 2020-09-18 20:28

I'm having trouble reproducing your issues. Looks like concurrently is a devDependency, so I'm not sure why it wouldn't be available after the yarn install step.

Does echo $NODE_ENV return anything? If that were set to production, then I could see why the dev dependencies wouldn't install.

wcasanova commented on 2020-09-18 16:07

yarn install --frozen-lockfile
yarn download-bins
yarn run v1.22.5
yarn install v1.22.5
$ concurrently yarn:download:*
/bin/sh: concurrently: orden no encontrada
error Command failed with exit code 127.
info Visit for documentation about this command.
make: *** [Makefile:13: download-bins] Error 127

zagg commented on 2020-09-17 14:55


During my build, I have the follwing issue.

yarn install v1.22.5
$ concurrently yarn:download:*
/bin/sh: concurrently: command not found
error Command failed with exit code 127.
info Visit for documentation about this command.
make: *** [Makefile:13: download-bins] Error 127
make: *** Waiting for unfinished jobs....

Any ideas ?

EDIT: I assume concurrently and ts-node should be installed during the build process. So npm should be part of the make dependencies. Unless there is another way I didn't pay attention.

dbirks commented on 2020-04-20 17:21

Thanks Sacro, just made some changes:

I found the "$pkgdir"/usr/bin was needed, but the path was wrong and creating an empty folder.

I also fixed the linking to the installation folder. I took a look at another package, and saw that they link to /opt directly, so I did that.

Thanks for bring these up.