Package Details: libelectron 1.0.27-1

Git Clone URL: https://aur.archlinux.org/libelectron.git (read-only, click to copy)
Package Base: libelectron
Description: A collection of npm dependencies for electron packages.
Upstream URL: https://gitlab.com/linuxbombay/libelectron/libelectron
Licenses: GPL
Submitter: gameslayer
Maintainer: gameslayer
Last Packager: gameslayer
Votes: 8
Popularity: 0.48
First Submitted: 2022-11-18 11:55 (UTC)
Last Updated: 2024-09-30 23:55 (UTC)

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 Next › Last »

xiota commented on 2023-12-18 15:38 (UTC)

You cannot guarantee that $srcdir does not contain spaces because you do not control the build environment.

gameslayer commented on 2023-12-18 14:47 (UTC)

Thanks for the suggestion but it doesn't containnant spaces

xiota commented on 2023-12-18 14:39 (UTC) (edited on 2023-12-18 14:43 (UTC) by xiota)

$srcdir should be guarded by quotes because it can contain spaces.

Should also decouple download link from $pkgrel because pkgrel may need to be bumped independently of upstream file naming.

gameslayer commented on 2023-12-06 08:35 (UTC)

I just tested that and it didn't work for me also it's changing node the path to /home/corey/node_modules instead of what the path is supposed to be, I am correcting it by putting the absolute path in to fix this issue since several people have ran into the issue.

Thanks you everyone who has reported the issue, I will push I fix now.

bergs89 commented on 2023-12-06 08:25 (UTC)

I had the same issue due to cp error. As previously suggested the change in PKGBUILD of line: cp -r ./node_modules "$pkgdir/opt/libelectron" to this: cp -r ${NODE_PATH:-$HOME/node_modules} "$pkgdir/opt/libelectron" fixes this issue.

gameslayer commented on 2023-11-22 16:01 (UTC) (edited on 2023-11-22 16:09 (UTC) by gameslayer)

Hey @Ezio I'm not sure why pkgbuild does this to people but try clearing the cache and try it again. Let me know if that corrects the issue. When the package installed the dependencies it does it in srcdir than moves the folder to where it needs to go in the fakeroot building process

Ezio commented on 2023-11-22 15:26 (UTC)

Could not install recently due to cp error. Consider modifying this PKGBUILD line: cp -r ./node_modules "$pkgdir/opt/libelectron" to this: cp -r ${NODE_PATH:-$HOME/node_modules} "$pkgdir/opt/libelectron"

gameslayer commented on 2023-10-08 02:13 (UTC)

Hmm that is very odd, I can't even reproduce this even with yay

yay -S libelectron
AUR Explicit (1): libelectron-1.0.15-1
:: PKGBUILD up to date, skipping download: libelectron
  1 libelectron                              (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
  1 libelectron                              (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: libelectron 1.0.15-1 (Sun 08 Oct 2023 12:11:31)
==> Retrieving sources...
  -> Downloading libelectron-1.0.15-1.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1127  100  1127    0     0   2829      0 --:--:-- --:--:-- --:--:--  2831
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    libelectron-1.0.15-1.tar.bz2 ... Skipped
:: (1/1) Parsing SRCINFO: libelectron
==> Making package: libelectron 1.0.15-1 (Sun 08 Oct 2023 12:11:33)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found libelectron-1.0.15-1.tar.bz2
==> Validating source files with sha256sums...
    libelectron-1.0.15-1.tar.bz2 ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting libelectron-1.0.15-1.tar.bz2 with bsdtar
==> Sources are ready.
==> Making package: libelectron 1.0.15-1 (Sun 08 Oct 2023 12:11:36)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...

added 103 packages in 7s

24 packages are looking for funding
  run `npm fund` for details
npm WARN idealTree Removing dependencies.electron in favor of devDependencies.electron

changed 1 package, and audited 104 packages in 32s

24 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "libelectron"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: libelectron 1.0.15-1 (Sun 08 Oct 2023 12:12:28)
==> Cleaning up...
[sudo] password for corey: 
loading packages...
warning: libelectron-1.0.15-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libelectron-1.0.15-1

Total Installed Size:  239.92 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) reinstalling libelectron

ferrvittorio commented on 2023-10-05 10:21 (UTC) (edited on 2023-10-05 10:28 (UTC) by ferrvittorio)

Hi, unfortunately with "makepkg -i PKGBUILD" I get the same result. Error with some ./node_modules directory which does not exist. Probably the problem is in npm installer (not in yay)?

Actually I looked, my lib is in: npm@10.1.0 /usr/lib/node_modules/npm