Package Details: zsh-theme-powerlevel10k-git r3918.25e5f59-1

Git Clone URL: https://aur.archlinux.org/zsh-theme-powerlevel10k-git.git (read-only, click to copy)
Package Base: zsh-theme-powerlevel10k-git
Description: Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
Upstream URL: https://github.com/romkatv/powerlevel10k
Licenses: MIT
Conflicts: zsh-theme-powerlevel10k
Provides: zsh-theme-powerlevel10k
Submitter: madscience
Maintainer: romkatv
Last Packager: romkatv
Votes: 47
Popularity: 4.44
First Submitted: 2019-03-10 00:06 (UTC)
Last Updated: 2021-08-18 14:58 (UTC)

Latest Comments

Archislove commented on 2022-02-19 10:26 (UTC) (edited on 2022-02-19 10:29 (UTC) by Archislove)

Hi, my build fails with a huge amount of errors and I don't know how to solve them, these are just the last few lines:

/usr/include/c++/12.0.1/bits/basic_string.h:287:21: error: '<unnamed>.gitstatus::Repo::Shard::start_s.std::__cxx11::basic_string<char>::<anonymous>.std::__cxx11::basic_string<char>::<unnamed union>::_M_allocated_capacity' may be used uninitialized [-Werror=maybe-uninitialized]
  287 |           _M_destroy(_M_allocated_capacity);
      |           ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
src/repo.cc: In member function 'void gitstatus::Repo::UpdateShards()':
src/repo.cc:423:20: note: '<anonymous>' declared here
  423 |   shards_.push_back({
      |   ~~~~~~~~~~~~~~~~~^~
  424 |     .start_s = std::move(last_s),
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |     .end_s = "",
      |     ~~~~~~~~~~~~    
  426 |     .start_i = last_i,
      |     ~~~~~~~~~~~~~~~~~~
  427 |     .end_i = index_size});
      |     ~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:31: /tmp/gitstatus-build.BypZhwWgF6/gitstatus/repo.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/andrea/.cache/paru/clone/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'zsh-theme-powerlevel10k-git-r3918.25e5f59-1': 
error: packages failed to build: zsh-theme-powerlevel10k-git-r3918.25e5f59-1

Any idea on what is wrong here?

alex.pyattaev commented on 2021-08-23 05:09 (UTC)

Added logs to github issue as suggested.

romkatv commented on 2021-08-18 15:06 (UTC)

@alex.pyattaev I've added extra logging around this error. Can you try again? If it doesn't work, please leave a comment on https://github.com/romkatv/powerlevel10k/issues/1477. Leaving a comment here would also be OK but the UI on github is better for this sort of stuff.

alex.pyattaev commented on 2021-08-16 19:45 (UTC)

Hi, I'm getting this really odd build error with this package that seems to be related to gitstatus plugin of the powerlevel10k. I have honestly no clue what is wrong but it seems to persist for a while now. Any help is welcome!

==> Do you want to remove all other AUR packages from cache? [Y/n] removing AUR packages from cache... ==> Do you want to remove ALL untracked AUR files? [Y/n] removing untracked AUR files from cache... (4/5) Updating the desktop file MIME type cache... (5/5) Updating the MIME type database... ==> Making package: zsh-theme-powerlevel10k-git r3896.4bcc519-5 (Mon 16 Aug 2021 10:25:40 PM EEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating powerlevel10k git repo... Fetching origin ==> Validating source files with md5sums... powerlevel10k ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of powerlevel10k git repo... Cloning into 'powerlevel10k'... done. ==> Starting pkgver()... ==> Updated version: zsh-theme-powerlevel10k-git r3912.32e76e7-1 ==> Sources are ready. ==> Making package: zsh-theme-powerlevel10k-git r3912.32e76e7-1 (Mon 16 Aug 2021 10:25:46 PM EEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting pkgver()... ==> Starting build()... Building gitstatusd...

kernel := linux arch := x86_64 cpu := x86-64 install tools := no download deps := yes /home/<user>/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps/gitstatusd.libgit2.tmp: No such file or directory ==> ERROR: A failure occurred in build(). Aborting... error making: zsh-theme-powerlevel10k-git yay -Syu 134.55s user 65.18s system 34% cpu 9:33.81 total ❯ cd /home/<user>/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps/ ❯ ls ❯ cd .. ❯ ls LICENSE README.md build.info docs gitstatus.plugin.zsh gitstatus.prompt.zsh install.info src Makefile build deps gitstatus.plugin.sh gitstatus.prompt.sh install mbuild usrbin ~/.cac/yay/zsh-theme-powerlevel10k-git/s/powerlevel10k/gitstatus

JuniorJPDJ commented on 2021-06-29 21:34 (UTC)

maybe this could help you: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/testing/zsh-theme-powerlevel10k/APKBUILD

romkatv commented on 2021-06-28 15:35 (UTC)

@yochananmarqos I know. That's how I figured out that aarch64 will likely work. I wasn't able to find the info I need. Namely, the output of uname -m on arm, armv6h and armv7h. Unless you really care about these systems, I suggest to leave this topic at rest.

yochananmarqos commented on 2021-06-28 15:24 (UTC)

@romkatv: The possible architecture values are in the wiki: https://wiki.archlinux.org/title/PKGBUILD#arch

romkatv commented on 2021-06-28 08:29 (UTC)

@francoism90 Per https://wiki.archlinux.org/title/PKGBUILD#arch:

arch=('any') indicates the package can be built once on any architecture, and once built, is architecture-independent in its compiled state.

zsh-theme-powerlevel10k-git doesn't satisfy this requirement. It can be built on all mainstream architectures but it cannot be used from a different architecture after it was built.

francoism90 commented on 2021-06-28 08:23 (UTC)

I would consider just using arch=('any'), don't think this package depends on the architecture.

romkatv commented on 2021-06-28 08:19 (UTC)

@JuniorJPDJ I've removed armv6 and armv7 because I don't know how to specify them. Specifically, I need to know what I need to put under arch in PKGBUILD and what the output of uname -m on will be. I've kept aarch64 because it's the only one for which I'm reasonably sure that this value is valid under arch in PKGBUILD and it's also the output of uname -m.

JuniorJPDJ commented on 2021-06-28 01:14 (UTC)

btw. you removed armv6 and armv7 from supported arch list, but aarch64 is still here

aarch64 also is not officially supported, but aarch64, armv6 and armv7 are all supported by ALARM

consider adding both arm back ;)

romkatv commented on 2021-06-27 16:52 (UTC)

@ratijas Sorry about that. Fixed.

ratijas commented on 2021-06-27 16:40 (UTC)

Upsteam code has migrated build code, namely

zsh -fc "emulate zsh -o no_aliases && zcompile -R -- $file.zwc $file"

into a Makefile, so that Aura helper doesn't raise warnings about potentially scary stuff running in PKGBUILD.

Today I tried to update, and noticed this warning again:

aura >>= WARNING: The PKGBUILD of zsh-theme-powerlevel10k-git contains blacklisted bash expressions.

Why these lines are still here? I guess, it's just an oversight?

dockerformthedoc commented on 2020-11-27 12:58 (UTC)

@romkatv its working now thanks alot

romkatv commented on 2020-11-26 10:18 (UTC)

@dockerformthedoc Sorry about that. Should be fixed now.

dockerformthedoc commented on 2020-11-26 10:01 (UTC) (edited on 2020-11-26 10:02 (UTC) by dockerformthedoc)

This is happening on two of my devices , during the update via yay

Creating working copy of powerlevel10k git repo...
Cloning into 'powerlevel10k'...
done.
==> Starting pkgver()...
==> Updated version: zsh-theme-powerlevel10k-git r3792.9d6444a-1
==> Sources are ready.
==> Making package: zsh-theme-powerlevel10k-git r3792.9d6444a-1 (Thu 26 Nov 2020 11:57:09 AM EET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
cd gitstatus && make ZSH=/home/quorum/.oh-my-zsh pkg && cd ..
make[1]: Entering directory '/home/quorum/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus'
GITSTATUS_DAEMON= GITSTATUS_CACHE_DIR=/home/quorum/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/usrbin ./install -f
/home/quorum/.oh-my-zsh -fc 'for f in *.zsh install; do zcompile -R -- $f.zwc $f || exit; done'
make[1]: /home/quorum/.oh-my-zsh: Permission denied
make[1]: *** [Makefile:39: pkg] Error 127
make[1]: Leaving directory '/home/quorum/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus'
make: *** [Makefile:6: pkg] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: zsh-theme-powerlevel10k-git

ratijas commented on 2020-11-23 21:31 (UTC)

AUR helper called Aura has a built-in security features. And it doesn't like what's going on in this PKGBUILD. I've filed an issue here: https://github.com/fosskers/aura/issues/674.

aura -A zsh-theme-powerlevel10k-git
aura >>= Determining dependencies...
aura >>= WARNING: The PKGBUILD of zsh-theme-powerlevel10k-git contains blacklisted bash expressions.

    zsh -fc '
    emulate zsh -o no_aliases
    unset -m "GITSTATUS_*"
    GITSTATUS_CACHE_DIR="$PWD"/gitstatus/usrbin ./gitstatus/install -f'

aura >>= zsh can be used to execute arbitrary code not tracked by this PKGBUILD.

    zsh -fc "emulate zsh -o no_aliases && zcompile -R -- $file.zwc $file"

aura >>= zsh can be used to execute arbitrary code not tracked by this PKGBUILD.
aura >>= Do you wish to quit the build process? [Y/n]

romkatv commented on 2020-06-06 16:41 (UTC)

This package has been fixed.

francoism90 commented on 2020-05-29 07:36 (UTC) (edited on 2020-05-29 07:38 (UTC) by francoism90)

@madscience I'm having the same issue: you need to add powerlevel9k.zsh-theme and prompt_powerlevel9k_setup to package() hook.

Could you please add nerd-fonts-complete as optdept as well? :)

t0m5k1 commented on 2020-04-01 07:16 (UTC)

@madscience: I've never used powerlevel9k !

jeancf commented on 2020-03-23 08:18 (UTC) (edited on 2020-04-01 07:42 (UTC) by jeancf)

@romkatv thanks, I know. I would rather have the package owner fix it instead of having to create another package myself but if it comes down to that I will do it. UPDATE: zsh-theme-powerlevel10k package has just been released on Manjaro and it does not exhibit the issue described here when starting a root session.

romkatv commented on 2020-03-23 08:06 (UTC)

@jeancf If you have git, you can follow the standard installation instructions that work on every OS: https://github.com/romkatv/powerlevel10k/#manual. It's just one command:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k

If you don't have git, you can download an archive from https://github.com/romkatv/powerlevel10k/releases and extract files with tar -xzf.

jeancf commented on 2020-03-23 07:57 (UTC)

@romkatv I am on Manjaro and that package is not available in the official repos. This is the only source for powerlevel10k in Manjaro.

romkatv commented on 2020-03-22 19:06 (UTC)

@jeancf You might want to migrate to zsh-theme-powerlevel10k pacman package. See https://github.com/romkatv/powerlevel10k/#arch-linux.

jeancf commented on 2020-03-22 12:27 (UTC)

I am experiencing the exact same issue as @t0m5k1.

romkatv commented on 2020-03-21 08:12 (UTC)

You can reproduce "can't open powerlevel9k.zsh-theme" error by trying to load powerlevel10k as root.

As I mentioned in https://github.com/romkatv/powerlevel10k/issues/528#issuecomment-591840678, it's impractical to write Powerlevel10k code defensively with the assumption that users will delete a portion of its source files. Please include all files from https://github.com/romkatv/powerlevel10k in the package.

Also note that there is https://www.archlinux.org/packages/community/any/zsh-theme-powerlevel10k/ now. It includes all files, so it doesn't break if you try to load powerlevel10k as root.

madscience commented on 2020-03-16 02:00 (UTC)

I don't see anywhere that p10k is sourcing a "powerlevel9k.zsh-theme" file. Did you by any chance previously install p9k as root?

t0m5k1 commented on 2020-03-13 15:02 (UTC) (edited on 2020-03-13 15:09 (UTC) by t0m5k1)

root user 'can't open powerlevel9k.zsh-theme'

Error seen:

(anon):zcompile:18: can't open file: /usr/share/zsh-theme-powerlevel10k/powerlevel9k.zsh-theme

Answer from Romkatv:

"Please file a bug against the owner of that AUR package. The package is missing files. It's impractical to write Powerlevel10k code defensively with the assumption that users will delete a portion of its source files."

(https://github.com/romkatv/powerlevel10k/issues/528#issuecomment-591840678)

madscience commented on 2020-02-02 20:50 (UTC)

Hey everyone, I'm going through some personal issues and won't be able to update the pkgbuild until tomorrow evening. Just comment out line 55

wbthomason commented on 2020-02-02 20:47 (UTC) (edited on 2020-02-02 20:48 (UTC) by wbthomason)

@christianbundy: Edit the PKGBUILD to comment out or delete line 55, where that file is installed. Per the repo (https://github.com/romkatv/powerlevel10k/commit/4de584652c0e53266ea7ea51ae22312ec48f033a), p9k-vs-p10k.cast has been deleted.

@madscience: This should be updated in the official PKGBUILD, please.

christianbundy commented on 2020-02-02 19:53 (UTC)

Just tried to install and got this error. Anyone know how to resolve it?

install: cannot stat 'p9k-vs-p10k.cast': No such file or directory

FlyInWind commented on 2020-02-02 05:06 (UTC)

v1.0 has been released, what about upload a stable one.

bbaserdem commented on 2019-09-28 20:42 (UTC) (edited on 2019-09-28 20:42 (UTC) by bbaserdem)

Even though integration with zsh-zim-git is listed (as an optdep) there is nothingg in the packagebuild that integrates with the aur zim package.

I did the following for integration (following from installation instructions for zim for powerlevel9k)

$ ln -s /usr/share/zsh-theme-powerlevel10k /usr/lib/zim/modules/prompt/external-themes/powerlevel10k
$ ln -s /usr/lib/zim/modules/prompt/external-themes/powerlevel10k/powerlevel10k.zsh-theme /usr/lib/zim/modules/prompt/functions/prompt_powerlevel10k_setup
$ echo 'export POWERLEVEL10K_INSTALLATION_PATH="/usr/share/zsh-theme-powerlevel10k"' > /etc/profile.d/powerlevel10k.sh

Terence commented on 2019-09-18 08:57 (UTC)

https://github.com/romkatv/powerlevel10k/commit/e470bbfe11f1e3c311edf5be06d99419b8194f52 removed EXTENDED_CONFIGURATION.md so it needs to be removed from the PKGBUILD.

francoism90 commented on 2019-08-08 12:52 (UTC)

'It works well with Nerd Fonts, Source Code Pro, Font Awesome, Powerline, and even the default system fonts. The full choice of style options is available only when using Nerd Fonts.'

Please add all optional fonts, like nerd. :)

Terence commented on 2019-07-25 12:20 (UTC)

@madscience Shouldn't the pkgrel be bumped after this change?

madscience commented on 2019-07-25 01:16 (UTC)

PKGBUILD is updated.

hotty commented on 2019-07-24 23:05 (UTC) (edited on 2019-07-24 23:14 (UTC) by hotty)

Build fails with the following error message:

==> Starting package()...
install: cannot stat 'functions/*.zsh': No such file or directory
==> ERROR: A failure occurred in package().

Upstream removed the folder "functions" which is why the line

for FILE in functions/*.zsh; do

expands FILE to "functions/*.zsh" which of course does not exists and the next line fails. To prevent this in the future use "shopt -s nullglob" so that FILE will expand to NULL which means it will not enter the do-block.

Or better remove this block completely because it isn't used anymore.

francoism90 commented on 2019-07-06 07:49 (UTC)

Thanks for providing this package. :)

madscience commented on 2019-04-10 12:24 (UTC)

Please redownload the PKGBUILD and try building again. If you're using an AUR helper, clear it's build directory

markoff commented on 2019-04-10 10:04 (UTC)

Dude, same error as before:

==> Starting pkgver()...
fatal: No names found, cannot describe anything.
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 
Error making: zsh-theme-powerlevel10k-git

Terence commented on 2019-03-20 02:23 (UTC)

@madscience VCS packages does not need to be updated for new release/commits,they fetch the latest one automatically at build time. Generally, you only update VCS packages when the upstream repo requires a packaging change.

madscience commented on 2019-03-18 17:58 (UTC)

Thanks for the help with pkgbuild(), it seems to be OK now. I misunderstood the VCS packaging guidelines on the wiki.

egrupled commented on 2019-03-18 17:41 (UTC) (edited on 2019-03-18 17:46 (UTC) by egrupled)

@madscience it's still broken - you can't use git describe in a repo which doesn't have any tags. Please use

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

and be done with this.

Alternatively use:

pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

madscience commented on 2019-03-18 16:50 (UTC)

Please try building again, I've updated the PKGBUILD

gavsiu commented on 2019-03-18 16:38 (UTC) (edited on 2019-03-18 18:14 (UTC) by gavsiu)

aurman:

[trimmed] Cloning into 'powerlevel10k'... done. ==> Starting pkgver()... fatal: No names found, cannot describe anything. ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version: 2019-03-18 09:29:27,704 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /home/gavsiu/.cache/aurman/zsh-theme-powerlevel10k-git

makepkg -si:

makepkg -si ==> Making package: zsh-theme-powerlevel10k-git v0.6.6.r254.g6e7ba25-1 (Mon 18 Mar 2019 09:33:11 AM PDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Cloning powerlevel10k git repo... Cloning into bare repository '/home/gavsiu/.aur/zsh-theme-powerlevel10k-git/powerlevel10k'... remote: Enumerating objects: 60, done. remote: Counting objects: 100% (60/60), done. remote: Compressing objects: 100% (41/41), done. remote: Total 6580 (delta 31), reused 38 (delta 19), pack-reused 6520 Receiving objects: 100% (6580/6580), 13.75 MiB | 9.14 MiB/s, done. Resolving deltas: 100% (4102/4102), done. ==> Validating source files with sha256sums... powerlevel10k ... Skipped ==> Extracting sources... -> Creating working copy of powerlevel10k git repo... Cloning into 'powerlevel10k'... done. ==> Starting pkgver()... fatal: No names found, cannot describe anything. ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version:

Uhh.. how do you format on here? There are no instructions.

madscience commented on 2019-03-18 16:29 (UTC) (edited on 2019-03-18 16:37 (UTC) by madscience)

What AUR helper are you using? Do you get the same error when using makepkg?

EDIT: I think I fixed the pkgver issue. Please try installing again

stepovic commented on 2019-03-18 16:16 (UTC)

Got the same error as markoff.

markoff commented on 2019-03-17 09:52 (UTC)

==> Starting pkgver()...
fatal: No names found, cannot describe anything.
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 
Error making: zsh-theme-powerlevel10k-git

madscience commented on 2019-03-10 03:02 (UTC) (edited on 2019-03-23 12:54 (UTC) by madscience)

To start, add the following to your .zshrc:

source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme

See https://github.com/romkatv/powerlevel10k/#configuration for configuration options.