I tried several times installing marktext
, and it's painful (here's last error I got). I ended up installing marktext-bin
, which installed marktext in a moment and works greatly so far.
Search Criteria
Package Details: marktext 0.17.1-4
Package Actions
Git Clone URL: | https://aur.archlinux.org/marktext.git (read-only, click to copy) |
---|---|
Package Base: | marktext |
Description: | A simple and elegant open-source markdown editor that focused on speed and usability |
Upstream URL: | https://www.marktext.cc |
Keywords: | editor electron markdown note |
Licenses: | MIT |
Submitter: | dopsi |
Maintainer: | alerque |
Last Packager: | alerque |
Votes: | 26 |
Popularity: | 0.000000 |
First Submitted: | 2018-05-01 08:22 (UTC) |
Last Updated: | 2024-03-28 00:15 (UTC) |
Dependencies (13)
- electron15AUR (electron15-binAUR)
- libsecret
- libxkbfile
- openssl (openssl-gitAUR, openssl-staticAUR)
- ripgrep (ripgrep-gitAUR)
- git (git-gitAUR, git-glAUR) (make)
- jq (jaq-binAUR, jq-gitAUR) (make)
- moreutils (moreutils-go-binAUR) (make)
- node-gyp (corepackerAUR) (make)
- nodejs-lts-hydrogen (make)
- npm (corepackerAUR, python-nodejs-wheelAUR) (make)
- yarn (yarn-pnpm-corepackAUR, yarn-berryAUR, corepackerAUR) (make)
- yq (make)
Required by (0)
Sources (3)
AlbertoAru commented on 2022-10-20 13:49 (UTC)
yochananmarqos commented on 2022-08-24 23:50 (UTC)
@alerque: There's a typo on line 77, so no icons are install except for the unnecessary, gigantic PNG installed in pixmaps.
- find -name maktext.png -exec \
+ find -name "$pkgname.png" -exec \
cubercsl commented on 2022-08-01 12:27 (UTC) (edited on 2022-08-01 12:40 (UTC) by cubercsl)
@AlbertoAru I tried to build marktext-git with my patch in a clean chroot (build with extra-x86_64-build
), and it seems good. This patch is also used in some unofficial repo like ArchLinuxcn.
But I have not tried to build the tag release. So I think using vcs package (marktext-git) is a good choice.
AlbertoAru commented on 2022-07-23 22:41 (UTC)
@cubercsl I tried what your patch and got an error (see below).
I used this method to edit the PKBUILD package and compile from there. I must say, though, that my PKBUILD had electron15
instead of electron11
and cd "$_archive"
instead of cd "$pkgname"
. I did not modified this last part (with cd "$_archive"
instead of cd "$pkgname"
)
==> Removing existing $pkgdir/ directory...
==> Starting build()...
yarn run v1.22.19
$ /home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/.bin/electron-rebuild
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 17.4.10 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
Error: Could not detect abi for version 17.4.10 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron
at Object.getAbi (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/node-abi/index.js:39:9)
at Rebuilder.get ABI [as ABI] (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:82:39)
at PrebuildInstall.prebuiltModuleExists (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/module-type/prebuild-install.js:61:179)
at ModuleRebuilder.prebuildInstallNativeModuleExists (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/module-rebuilder.js:64:37)
at Rebuilder.rebuildModuleAt (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:124:35)
at async Rebuilder.rebuild (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:108:17)
at async /home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/cli.js:154:9
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
Aborting...
This is with cd "$pkgname"
instead of cd "$_archive"
❯ LC_ALL=C makepkg -si
==> Making package: marktext 0.17.1-1 (Sun Jul 24 00:38:16 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found marktext-0.17.1.tar.gz
-> Found marktext.sh
-> Found marktext-arg-handling.patch
==> Validating source files with sha256sums...
marktext-0.17.1.tar.gz ... Passed
marktext.sh ... Passed
marktext-arg-handling.patch ... Passed
==> Extracting sources...
-> Extracting marktext-0.17.1.tar.gz with bsdtar
==> Starting prepare()...
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning file-icons@2.1.47: The engine "atom" appears to be invalid.
warning atom-fs@0.2.1: The engine "atom" appears to be invalid.
warning mapped-disposable@1.0.3: The engine "atom" appears to be invalid.
[3/4] Linking dependencies...
warning " > @electron/remote@2.0.4" has unmet peer dependency "electron@>= 13.0.0".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint@^7.12.1".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
[4/4] Building fresh packages...
Done in 7.89s.
yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning file-icons@2.1.47: The engine "atom" appears to be invalid.
warning atom-fs@0.2.1: The engine "atom" appears to be invalid.
warning mapped-disposable@1.0.3: The engine "atom" appears to be invalid.
[3/4] Linking dependencies...
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint@^7.12.1".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
success Saved 1 new dependency.
info Direct dependencies
└─ electron@17.4.10
info All dependencies
└─ electron@17.4.10
Done in 9.68s.
patching file src/main/cli/index.js
Hunk #1 succeeded at 9 with fuzz 2 (offset -1 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/home/alberto/.cache/yay/marktext/PKGBUILD: line 52: cd: marktext: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
The file exists because I've been editing it and I have it opened with kate:
❯ ls -la /home/alberto/.cache/yay/marktext/PKGBUILD
-rw-r--r-- 1 alberto alberto 3137 jul 24 00:38 /home/alberto/.cache/yay/marktext/PKGBUILD
cubercsl commented on 2022-03-28 16:52 (UTC)
@chrislea it is because the _electronDist is /usr/lib/electron not /usr/bin
In the past /usr/bin/electron is a symlink of /usr/lib/electron/electron but now it is a wrapper. You can check my patch at marktext-git for reference.
chrislea commented on 2022-03-28 16:28 (UTC)
I am also getting a build failure using Node 16.x. I am unsure if this is the bug @jose1711 referenced. He's relevant output:
To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
• writing effective config file=build/builder-effective-config.yaml
• rebuilding native dependencies dependencies=@hfelix/spellchecker@4.1.0, ced@2.0.0, cld@2.7.1, fontmanager-redux@1.1.0, keyboard-layout@2.0.17, keytar@7.9.0, native-keymap@3.2.1 platform=linux arch=x64
• rebuilding native dependency name=ced version=2.0.0
• rebuilding native dependency name=@hfelix/spellchecker version=4.1.0
• rebuilding native dependency name=cld version=2.7.1
• rebuilding native dependency name=fontmanager-redux version=1.1.0
• rebuilding native dependency name=keyboard-layout version=2.0.17
• rebuilding native dependency name=keytar version=7.9.0
• rebuilding native dependency name=native-keymap version=3.2.1
• packaging platform=linux arch=x64 electron=15.4.2 appOutDir=build/linux-unpacked
• copying Electron source=/usr/bin destination=/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked
⨯ EACCES: permission denied, copyfile '/usr/bin/rscsi' -> '/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked/rscsi' failedTask=build stackTrace=Error: EACCES: permission denied, copyfile '/usr/bin/rscsi' -> '/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked/rscsi'
at processImmediate (node:internal/timers:466:21)
From previous event:
at walk (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/fs.ts:77:51)
at unpack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/electron/ElectronFramework.ts:190:5)
at LinuxPackager.doPack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/platformPackager.ts:233:5)
at LinuxPackager.pack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/platformPackager.ts:136:5)
at Packager.doBuild (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:441:9)
at Object.executeFinally (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/promise.ts:12:14)
at Packager._build (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:376:31)
at Packager.build (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:337:12)
at Object.executeFinally (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/promise.ts:12:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
Aborting...
╭─chl at luthien in ~/AUR/marktext on master✔ 22-03-28 - 9:26:41
╰─⠠⠵ node -v
v16.14.2
cubercsl commented on 2022-03-28 15:31 (UTC) (edited on 2022-03-28 15:31 (UTC) by cubercsl)
For all of offical electron package, which $_electron
becomes electron launch wrapper after this commit.
So the local _electronDist=$(dirname $(realpath $(which $_electron)))
can not follow the symlink, and it be should changed.
See my patch at marktext-git for recent commit.
simona commented on 2022-03-25 23:48 (UTC)
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/node-gyp/lib/configure.js:259:16)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.16.17-1-ck-generic-v3
gyp ERR! command "/usr/bin/node" "/home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/keytar
gyp ERR! node -v v17.8.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
error Command failed with exit code 1.
Pinned Comments
alerque commented on 2023-11-02 11:09 (UTC)
PSA: The build process for this package is known to be broken because it requires older versions of stuff than is available in Arch now. The only way I know of to install it is to use packages that were built back when the
npm
in Arch was older. You can use my user repository to get the latest successful build.