kitsunyan / pakku

Pacman wrapper with AUR support
GNU General Public License v3.0
130 stars 8 forks source link

Fails to build from sources #53

Closed PMunch closed 4 years ago

PMunch commented 4 years ago

After #50 got solved I tried to install the new version. But I can't build pakku from sources:

[peter /tmp ] 1653 $ git clone https://github.com/kitsunyan/pakku.git
Cloning into 'pakku'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 852 (delta 38), reused 43 (delta 30), pack-reused 778
Receiving objects: 100% (852/852), 241.02 KiB | 839.00 KiB/s, done.
Resolving deltas: 100% (608/608), done.
[peter /tmp ] 1655 $ cd pakku
[peter /tmp/pakku (master) ✓ ] 1656 $ git checkout v0.14
Note: switching to 'v0.14'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 8c75dc9 Release 0.14
[peter /tmp/pakku ((HEAD detached at v0.14)) ✓ ] 1657 $ ls
completion/  doc/  lib/  src/  COPYING  Makefile  pakku.conf  README.md
[peter /tmp/pakku ((HEAD detached at v0.14)) ✓ ] 1658 $ make
GEN: completion/bash
GEN: completion/zsh
NIM: lib/tools
CC: stdlib_assertions.nim
CC: stdlib_io.nim
CC: stdlib_system.nim
CC: stdlib_parseutils.nim
CC: stdlib_strutils.nim
CC: stdlib_pathnorm.nim
CC: stdlib_posix.nim
CC: stdlib_times.nim
CC: stdlib_os.nim
CC: stdlib_strtabs.nim
CC: stdlib_streams.nim
CC: stdlib_osproc.nim
CC: bisect.nim
CC: stdlib_sequtils.nim
CC: install.nim
CC: tools.nim
NIM: src/pakku
/tmp/pakku/src/utils.nim(214, 23) Warning: use `csize_t` instead; csize is deprecated [Deprecated]
/tmp/pakku/src/args.nim(108, 15) Error: undeclared identifier: 'lc'
make: *** [Makefile:120: src/pakku] Error 1
PMunch commented 4 years ago

Never mind, this was an issue with using the devel branch of Nim. Works fine on stable, at least for now. I do get plenty of deprecation warnings though, and it seems like lc is one of them:

/tmp/pakku/src/feature/syncinstall.nim(911, 25) Warning: lc is deprecated [Deprecated]