Package Details: kmonad-git 0.4.2.r87.g4c324f1-1

Git Clone URL: https://aur.archlinux.org/kmonad-git.git (read-only, click to copy)
Package Base: kmonad-git
Description: An advanced keyboard manager
Upstream URL: https://github.com/kmonad/kmonad
Licenses: MIT
Conflicts: kmonad
Provides: kmonad
Submitter: Bonnee
Maintainer: Bonnee
Last Packager: Bonnee
Votes: 5
Popularity: 0.50
First Submitted: 2020-09-29 13:59 (UTC)
Last Updated: 2024-08-29 13:54 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

dreieck commented on 2024-05-29 10:10 (UTC)

Ahoj!

  • This clutters the user's home directory while building.
    Please make sure that everything is confined within $srcdir and $pkgdir! (e.g. by using appropriate environment variables or command line options to the used build tools.)
    You can set export STACK_ROOT="${srcdir}/.stack" in prepare() (which you should create to do the download stuff there!), build() and package()
==> Starting build()...
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.                       
Unpacking GHC into /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ ...
[...]
Received ExitFailure 1 when running
Raw command: /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/configure --prefix=/home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/
Run from: /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/
[...]
         /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/configure --prefix=/home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/
         run in /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/
[...]
         - /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/
         - /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/
[...]
  • Build fails for me with
configure: error: Failed to determine machine word size. Does your toolchain actually work?
Received ExitFailure 1 when running
Raw command: /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/configure --prefix=/home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/
Run from: /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/


Error: Error encountered while configuring GHC with
         /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/configure --prefix=/home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/
         run in /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/ghc-9.4.8-x86_64-unknown-linux/

       The following directories may now contain files, but won't be used by stack:
         - /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8.temp/
         - /home/<username>/.stack/programs/x86_64-linux/ghc-tinfo6-9.4.8/

       For more information consider rerunning with --verbose flag

Configuring GHC ...
==> ERROR: A failure occurred in build().

Building with stack --verbose build:

The only thing I see is the configure: error: Failed to determine machine word size. Does your toolchain actually work? message.

dreieck commented on 2024-04-08 16:06 (UTC)

Ahoj,

thanks for the update.

  • You still download a big file in build(). Please move to source array or prepare(), if you really cannot handle it via a proper package specified in depends array.
  • build() for me shows the error ar: conftest.a: No such file or directory, but continues sucesfully afterwards:
==> Starting build()...
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-tinfo6-9.4.8.                                      
ar: conftest.a: No such file or directory                                              
Installed GHC.     
[1 of 3] Compiling Main [...]
[...]

Regards!

Bonnee commented on 2023-10-15 13:54 (UTC)

Sorry for the delay. I totally missed notifications about this issue. I have fixed the problem by referencing the new kmonad@.service file

dreieck commented on 2023-07-13 16:58 (UTC)

package() fails for me, too, with

install: cannot stat 'startup/kmonad.service': No such file or directory

Thanks for maintaining,
regards!

taogqt commented on 2023-05-20 00:16 (UTC)

install: cannot stat 'startup/kmonad.service': No such file or directory

https://github.com/kmonad/kmonad/pull/694/commits/16a1065e2ecb10f31d2617749e5a5227d3846769#diff-9b11cecb40ca3ffe765b4f876b15700834ee3b4de65a53de3c850ba237113c58

install -Dm644 "startup/${pkgname%-git}@.service" -t "$pkgdir/usr/lib/systemd/system" does get rid of the error

dreieck commented on 2022-08-03 10:19 (UTC)

Somehow ghc exits with segmentation fault during the build process.

In the terminal where I run makepkg, I get

[...]
colour              > copy/register
colour              > Installing library in /home/felics/.stack/snapshots/x86_64-linux-tinfo6/a1e00cbd0f528d8c078f41cfab8e3e5583f4240e74b1683ecbcecf1e14aab0e7/8.10.7/lib/x86_64-linux-ghc-8.10.7/colour-2.3.6-2cl6zeh1tuv4LM4jVThjAx
colour              > Registering library for colour-2.3.6..
Progress 4/43        

--  While building package base-orphans-0.8.6 (scroll up to its section to see the error) using:
      /home/felics/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure (-11)
[...]

and in dmesg, I find

[98951.664717] ghc[19127]: segfault at 7f87cdc21c6f ip 00007f87f7b48f21 sp 00007ffec1a366d8 error 6 in libHSghc-8.10.7-ghc8.10.7.so[7f87f456d000+49fc000]
[98951.664748] Code: 03 00 00 20 00 00 00 41 ff 65 f8 66 0f 1f 44 00 00 03 00 00 00 00 00 00 00 0f 00 00 00 f0 3c 7c 01 48 8d 45 c0 4c 39 f8 72 3f <48> 8b 05 88 3c 42 01 48 89 45 f0 48 89 5d f8 48 8d 05 41 00 00 00

dreieck commented on 2022-08-03 10:12 (UTC)

Ahoj,

thank you for the package!

Can you move any download and preparations out from build() into prepare()? So that build() does not need internet connectivity?

I am referring to the big download

Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
ghc-tinfo6-8.10.7:   82.07 MiB / 207.64 MiB ( 39.53%) downloaded...

(And, even better, could the file be downloaded via the source array?, this way custom download managers can be honoured, makepkgs checksumming, etc.?)

And, by the way, a minor comment: you could add =${pkgver} to the provides entry.

Thanks for maintaining!

Bonnee commented on 2022-01-20 19:36 (UTC)

Why does it need lld as a dependency? It builds just fine without it for me

fenuks commented on 2022-01-20 17:18 (UTC)

Please add lld to makedepends.

aulonsal commented on 2021-05-25 10:35 (UTC)

Please add install -Dm644 "startup/${pkgname%-git}.service" -t "$pkgdir/usr/lib/systemd/system" to the end of the package function as upstream now provides a systemd service.