Package Details: zotero 6.0.37-1

Git Clone URL: https://aur.archlinux.org/zotero.git (read-only, click to copy)
Package Base: zotero
Description: A free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Upstream URL: https://github.com/zotero/zotero
Licenses: AGPL3
Submitter: agkphysics
Maintainer: agkphysics
Last Packager: agkphysics
Votes: 23
Popularity: 1.44
First Submitted: 2022-08-13 10:04 (UTC)
Last Updated: 2024-03-28 07:08 (UTC)

Pinned Comments

agkphysics commented on 2023-06-14 11:31 (UTC)

@jeyes https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

agkphysics commented on 2023-02-08 10:12 (UTC)

If people are having issues, try building with extra-x86_64-build in a clean chroot.

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

MangoMan commented on 2022-11-06 08:51 (UTC) (edited on 2022-11-06 08:57 (UTC) by MangoMan)

Unable to update and build with yay. something is wrong with pdf-reader

full error message

http://ix.io/4f5D

Node.js v19.0.1
ERROR: "build:pdf.js" exited with 1.

    at ChildProcess.exithandler (node:child_process:412:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'npm run build',
  stdout: '\n' +
    '> pdf-reader@1.0.0 build\n' +
    '> run-s build:pdf.js build:reader\n' +
    '\n' +
    '\n' +
    '> pdf-reader@1.0.0 build:pdf.js\n' +
    '> sh scripts/build-pdfjs\n' +
    '\n' +
    '\n' +
    'added 1527 packages, and audited 1962 packages in 20s\n' +
    '\n' +
    '102 packages are looking for funding\n' +
    '  run `npm fund` for details\n' +

Rikayon commented on 2022-10-30 19:12 (UTC)

I just want to express my gratitude, by folowing @Pippip19 's comment to @Feakster regarding the file policy, I was finally able to upgrade zotero to zotero 6.0.15-1, previously it was failing. Thanks

nomaly commented on 2022-10-23 21:18 (UTC)

@agkphysics awesome. it's there and I was able to install the package file. thanking you kindly for the help

agkphysics commented on 2022-10-23 11:06 (UTC)

@nomaly That means it built. It can't find it because I think it's looking for official packages not custom packages. Check wherever your built packages are for the created package file zotero-6.0.15-1-x86_64.pkg.tar.zst.

nomaly commented on 2022-10-23 10:36 (UTC)

@agkphysics Apologies, I didn't with the previous message! Tried just now with extra-x86_64-build and it's still failed. Not sure if I've messed up somewhere this is the first time I've ever done something like this. My exact steps:

  1. git clone https://aur.archlinux.org/zotero.git
  2. installed yay -S devtools-git
  3. tried with extra-x86_64-build -c it errored the first time failing to find lzo so had to yay -S lzo (which wasn't up to date, but updated successfully) and tried again.
  4. ran extra-x86_64-build -c again and everything seemed to complete until the very end where it gave the following:
Success: [browserify] 4 files processed [3090ms]
Success: [copy] 67 files processed | 67 checked [3191ms]
Success: [js] 317 files processed | 329 checked [3414ms]
Success: [sass] 3 files processed | 55 checked [913ms]
Success: [sass] 0 files processed [124ms]
Success: [symlink] 1412 files processed | 1412 checked [3427ms]
Success: [symlink] 4 files processed | 4 checked [297ms]
Success: [cleanup] 0 files processed [0ms]
Success: [pdf-reader] 1 files processed | 1 checked [5402ms]
Success: [pdf-worker] 1 files processed | 1 checked [126922ms]
Success: [note-editor] 1 files processed | 1 checked [32682ms]
Total build time 126951ms

...

Checking PKGBUILD
Checking zotero-6.0.15-1-x86_64.pkg.tar.zst

...

==> Running checkpkg
error: target not found: zotero
==> WARNING: Skipped checkpkg due to missing repo packages

Have I missed some essential step?

Terminal's stdout is muuuch longer but I'm not sure if it is appropriate to post it all here.

agkphysics commented on 2022-10-21 22:20 (UTC)

@Feakster @Pippip19 I have updated the PKGBUILD to set the file protocol on a per-command basis, which seems to solve this problem.

@nomaly Have you tried with extra-x86_64-build?

nomaly commented on 2022-10-20 23:45 (UTC) (edited on 2022-10-20 23:46 (UTC) by nomaly)

Hi there,

My system is up to date (with yay -Syu)

I've attempted installing this but i'm getting build errors around the pdf-worker part:

Error: Error: Command failed: npm run build

...

npm ERR! code 1
npm ERR! path /home/user/.cache/yay/zotero/src/zotero-client/pdf-worker/pdf.js/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build
npm ERR! make: Entering directory '/home/user/.cache/yay/zotero/src/zotero-client/pdf-worker/pdf.js/node_modules/canvas/build'
npm ERR!   SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node

...

[10:43:02] Try running: npm install
ERROR: "build:worker" exited with 2.

    at ChildProcess.exithandler (node:child_process:398:12)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'npm run build',
  stdout: '\n' +
    '> pdf-worker@1.0.0 build\n' +
    '> run-s build:pdf.js build:worker\n' +
    '\n' +
    '\n' +
    '> pdf-worker@1.0.0 build:pdf.js\n' +
    '> sh scripts/build-pdfjs\n' +

...

I have nodejs-lts-gallium installed

Pippip19 commented on 2022-10-20 18:21 (UTC) (edited on 2022-10-20 18:21 (UTC) by Pippip19)

@Feakster I was receiving the same errors and believe (temporarily) assigning the 'file' protocol an allow policy solved the issue: git config --global --add protocol.file.allow always I removed the entry generated in my ~/.gitconfig after the build succeeded.

Feakster commented on 2022-10-19 09:47 (UTC)

Started getting errors on this during prepare(). The error says:

Submodule 'xpi/zotero-transfw' (https://github.com/egh/zotero-transfw.git) registered for path 'xpi/zotero-transfw'
Cloning into '/home/benjamin/.cache/paru/clone/zotero/src/zotero-build/xpi/zotero-transfw'...
fatal: transport 'file' not allowed
fatal: clone of '/home/benjamin/.cache/paru/clone/zotero/src/zotero-transfw' into submodule path '/home/benjamin/.cache/paru/clone/zotero/src/zotero-build/xpi/zotero-transfw' failed
Failed to clone 'xpi/zotero-transfw'. Retry scheduled
Cloning into '/home/benjamin/.cache/paru/clone/zotero/src/zotero-build/xpi/zotero-transfw'...
fatal: transport 'file' not allowed
fatal: clone of '/home/benjamin/.cache/paru/clone/zotero/src/zotero-transfw' into submodule path '/home/benjamin/.cache/paru/clone/zotero/src/zotero-build/xpi/zotero-transfw' failed
Failed to clone 'xpi/zotero-transfw' a second time, aborting
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'zotero-6.0.15-1': 
error: packages failed to build: zotero-6.0.15-1

agkphysics commented on 2022-09-30 23:43 (UTC)

I've had to make nodejs-lts-gallium a build requirement, due to a build error in the pdf-worker submodule. I've mentioned this on the Zotero dev mailing list.

But until this is fixed, you will need to install nodejs-lts-gallium or at least build in a chroot using

extra-x86_64-build