You are not logged in.

#1 2020-02-14 21:15:26

JYPDWhite
Member
Registered: 2020-02-11
Posts: 5

Package contains reference to $srcdir

Hi all,

a few days ago I wrote my first PKGBUILD in my life ;-)
I noticed this warning during the makepkg process

==> WARNING: Package contains reference to $srcdir
usr/bin/ironscanner

Now I discovered that in fact this warning needs to be taken seriously ;-), because after removing the workdir which was used during the makepkg process now can't run ironscanner anymore. Because I get this error message:

[white@whites-nb4 ironscanner]$ ironscanner
bash: /usr/bin/ironscanner: /home/white/work/aur/ironscanner/src/ironscanner/venv/bin/python3: bad interpreter: No such file or directory


So can anyone point me to the right direction where the error is?
PKGBUILD can be found here: https://aur.archlinux.org/packages/ironscanner/

Regards White

Offline

#2 2020-02-14 21:32:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Package contains reference to $srcdir

Why are you using a venv in the first place?

Offline

#3 2020-02-14 21:53:18

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Package contains reference to $srcdir

Does the following work for you?

build() {
  cd $pkgname
  python setup.py build
}

package() {
  cd $pkgname
  python setup.py install -O1 --prefix=/usr --root="$pkgdir" --skip-build
}

Edit:
may need depends python-gobject,  python-pillow,  python-psutil,  sane

Last edited by loqs (2020-02-14 22:02:48)

Offline

#4 2020-02-14 22:00:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Package contains reference to $srcdir

I'm guessing you'll need to handle the submodule as well

Offline

#5 2020-02-14 22:05:08

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Package contains reference to $srcdir

Or try using libinsane in place of the submodule.

Offline

Board footer

Powered by FluxBB