You are not logged in.

#1 2020-06-30 14:11:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Review PKGBUILD for iphonebackuptools/java script [solved]

I'd like to create a PKGBUILD for https://github.com/richinfante/iphonebackuptools to avoid building with npm on the filesystem.  Please review/feedback welcome: https://aur.archlinux.org/packages/iphonebackuptools/

EDIT: thanks for mpan for the PM indicating this is javascript not java (edited original post).  I found https://wiki.archlinux.org/index.php/No … guidelines and am working through it.

Last edited by graysky (2020-07-02 11:54:56)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2020-07-01 11:35:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

You are using the source tarball directly , use noextract array to inform makepkg it shouldn't extract the tarball.

Are you sure python is needed as a makedepend ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-07-01 13:16:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

Good call with noextracts.  If I build without python in the makedep array:

...
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
...

Last edited by graysky (2020-07-01 13:17:28)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2020-07-01 14:00:57

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

If gyp is from node-gyp , we have a case of  a missing runtime dependency .

https://github.com/nodejs/node-gyp mentions needing python, but archlinux node-gyp package doesn't list python at all.

This may have been overlooked as node-gyp depends on npm and npm has python as a makedepend.
So during build python is present.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-07-01 14:45:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

Are you suggesting a FS against our node-gyp?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2020-07-01 18:04:33

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

Yes, I think that's needed.

apart from what's said on upstream homepage for node-gyp , the outputs* of

$ pacman -Fl node-gyp | grep py
$ namcap /var/cache/pacman/pkg//var/cache/pacman/pkg/node-gyp-6.1.0-1-any.pkg.tar.zst

confirm node-gyp uses lots of python files.

*not posting them, they're long but easy to replicate


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2020-07-01 19:25:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Review PKGBUILD for iphonebackuptools/java script [solved]

Thanks for the tip on the PKGBUILD.  Since you discovered this python stuff, feel free to open the FS.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2020-07-02 07:46:35

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Review PKGBUILD for iphonebackuptools/java script [solved]


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB