(03-31-2020, 03:53 PM)astr0baby Wrote:(03-31-2020, 12:20 PM)Idaho Wrote: Hi there, I've set up pksrc by following astr0's tutorial (here) but I'm stuck when it comes to setting up his custom repo, I'm getting the following error when I try to run:
Code:[root@pbpro-manjaro pkgin]# /usr/pkg/bin/bmake install clean clean-depends
I get the following error:
Code:ERROR: This package has set PKG_FAIL_REASON:
ERROR: Please unset PKG_PATH before doing pkgsrc work!
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkgin
I don't understand why I should unset PKG_PATH, also, I'm unsure as to how to proceed to do so Any help would be welcome
Can you post whats in our ENV ?
$ env | grep PKG
I assume you correctly bootstrapped pkgsrc
Unset the PKG_PATH like this
unset PKG_PATH (I think you followed the article even in the examples of how to work normally with binary pkgsrc packages on NetBSD and not
directly with pkgin)
I have fixed the article as it might be a little misleading to people not entirely familiar with pkgsrc (sorry for that)
That's exactly what I did but I did it purposefully because I wanted to have both pkg_add and pkgin to be usable (even though I might not have gotten what's the difference between both).
Also that's weird, after a reboot, the PATH has been reset so there's nothing related to pgksrc in my ENV anymore even though it had been exported:
Code:
[root@pbpro-manjaro bin]# env | grep PKG
[root@pbpro-manjaro bin]#
Code:
[root@pbpro-manjaro bin]# pkg_add
bash: pkg_add: command not found
Also after setting up pkgin as it is in the tutorial, it fails to get the packages for some reason, returning that everything has an empty file size:
Code:
[root@pbpro-manjaro bin]# ./pkgin install alephone-20120514nb3
calculating dependencies...done.
/usr/lib/libSDL_image-1.2.so.0, needed by SDL_image-1.2.12nb8 is not present in this system.
/usr/lib/libSDL_sound-1.0.so.1, needed by SDL_sound-1.0.3nb6 is not present in this system.
warning: package alephone-20120514nb3 has an empty FILE_SIZE on repository.
warning: package SDL>=1.2.15nb17 has an empty FILE_SIZE on repository.
warning: package SDL_image>=1.2.12nb6 has an empty FILE_SIZE on repository.
warning: package SDL_net>=1.2.8nb1 has an empty FILE_SIZE on repository.
warning: package SDL_sound>=1.0.3nb6 has an empty FILE_SIZE on repository.
warning: package png>=1.6.0nb1 has an empty FILE_SIZE on repository.
warning: package speexdsp>=1.2rc3 has an empty FILE_SIZE on repository.
warning: package zziplib>=0.13.56 has an empty FILE_SIZE on repository.
warning: package speex>=1.2rc2 has an empty FILE_SIZE on repository.
warning: package flac>=1.1.3nb1 has an empty FILE_SIZE on repository.
warning: package libmikmod>=3.2.0 has an empty FILE_SIZE on repository.
warning: package libvorbis>=1.1.0nb1 has an empty FILE_SIZE on repository.
warning: package physfs>=2.0.3nb1 has an empty FILE_SIZE on repository.
warning: package smpeg>=0.4.4nb16 has an empty FILE_SIZE on repository.
warning: package jpeg>=9 has an empty FILE_SIZE on repository.
warning: package libwebp>=0.6.0 has an empty FILE_SIZE on repository.
warning: package tiff>=4.0.3nb5 has an empty FILE_SIZE on repository.
warning: package MesaLib>=7.11.2 has an empty FILE_SIZE on repository.
warning: package glu>=7.11.2 has an empty FILE_SIZE on repository.
warning: package libXext>=0.99.0 has an empty FILE_SIZE on repository.
warning: package libXrandr>=1.1.2 has an empty FILE_SIZE on repository.
warning: package libXt>=1.0.0 has an empty FILE_SIZE on repository.
warning: package libICE>=0.99.1 has an empty FILE_SIZE on repository.
warning: package libSM>=0.99.2 has an empty FILE_SIZE on repository.
warning: package libX11>=1.1 has an empty FILE_SIZE on repository.
warning: package libXrender>=0.9.2 has an empty FILE_SIZE on repository.
warning: package libLLVM>=7.0.1nb2 has an empty FILE_SIZE on repository.
warning: package libXdamage>=1.0.3 has an empty FILE_SIZE on repository.
warning: package libXfixes>=4.0.1 has an empty FILE_SIZE on repository.
warning: package libXxf86vm>=1.1.0 has an empty FILE_SIZE on repository.
warning: package libdrm>=2.4.99 has an empty FILE_SIZE on repository.
warning: package libelf>=0.8.5 has an empty FILE_SIZE on repository.
warning: package libva>=2.3.0 has an empty FILE_SIZE on repository.
warning: package libxcb>=1.6 has an empty FILE_SIZE on repository.
warning: package libxshmfence>=1.2 has an empty FILE_SIZE on repository.
warning: package wayland>=1.9.90 has an empty FILE_SIZE on repository.
warning: package wayland-protocols>=1.17 has an empty FILE_SIZE on repository.
warning: package jbigkit>=2.0 has an empty FILE_SIZE on repository.
warning: package giflib>=5.2.1 has an empty FILE_SIZE on repository.
warning: package readline>=6.0 has an empty FILE_SIZE on repository.
warning: package libogg>=1.1.2nb1 has an empty FILE_SIZE on repository.
warning: package libgetopt>=1.4.6 has an empty FILE_SIZE on repository.
warning: package libffi>=3.0.11 has an empty FILE_SIZE on repository.
warning: package libxslt>=1.1.28nb2 has an empty FILE_SIZE on repository.
warning: package libXau>=1.0 has an empty FILE_SIZE on repository.
warning: package libXdmcp>=0.99 has an empty FILE_SIZE on repository.
warning: package libatomic_ops>=7.4.0<2000 has an empty FILE_SIZE on repository.
warning: package libgcrypt>=1.6.0 has an empty FILE_SIZE on repository.
warning: package libxml2>=2.8.0nb2 has an empty FILE_SIZE on repository.
warning: package xmlcatmgr>=2.0beta1 has an empty FILE_SIZE on repository.
warning: package libgpg-error>=1.13 has an empty FILE_SIZE on repository.
Segmentation fault (core dumped)
How weird