Package Details: sxiv-git 2016.08.08-1

Git Clone URL: (read-only, click to copy)
Package Base: sxiv-git
Description: Simple (or small or suckless) X Image Viewer
Upstream URL:
Licenses: GPL2
Conflicts: sxiv
Provides: sxiv
Submitter: None
Maintainer: jasonwryan
Last Packager: jasonwryan
Votes: 35
Popularity: 0.077223
First Submitted: 2011-01-23 13:55
Last Updated: 2016-08-10 07:16

Required by (7)

Sources (1)

Latest Comments

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

orschiro commented on 2014-04-08 22:01


In fact know I completely understood what you meant. I overlooked that config.h is provided in the tarball and is not cloned from the repo.

Thank you!

jasonwryan commented on 2014-04-08 21:48


It builds fine here. I have uploaded a tarball with the updated config.h (which is just copied from config.def.h): you really shouldn't need your hand held for this...

orschiro commented on 2014-04-08 21:42


I usually know how to maintain the git version. But even downloading the archive, extracting it and running makepkg fails with the same error although in that case there is no local config.h present.

jasonwryan commented on 2014-04-08 20:41


Diff your config.h and bert's config.def.h and work it out yourself. Or move to a non-git version if you aren't able to track changes to the application.

sekret commented on 2014-04-08 20:40

No, my advise is to merge the changes in config.def.h to your config.h.

What I do is

git clone sxiv-git git
vimdiff config.h git/config.def.h

and after updates

cd git
git pull
cd ..
# if config.def.h is among the updated files, do
vimdiff config.h git/config.def.h

and apply the changes, but keep mine. You always have to do this in whatever way, because if you don't, sxiv probably doesn't build anymore.

This needs to be done as well with e.g. dwm-git, st-git, ... In short: With packages, which provide configuration through config.h. Except of course if you don't do any customisations and don't have a config.h, then you'll be fine.

orschiro commented on 2014-04-08 20:34


So your advice is to stick to the old config.h?

What needs to be updated to make it working with the new one?

sekret commented on 2014-04-08 19:35

Yes and no. Yes if I use my old config.h, no if I update it according to the new config.def.h

orschiro commented on 2014-04-08 19:32

Anyone else having problem to build it?

aura >>= Building `sxiv-git`...
aura >>= Well, building `sxiv-git` failed.
aura >>= Dumping makepkg output in 3.. 2.. 1..
==> Making package: sxiv-git 522.653a6ee-1 (Di 8. Apr 21:31:13 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning sxiv git repo...
Cloning into bare repository '/var/cache/pacman/pkg/sxiv-git30288/sxiv-git/sxiv'...
-> Found config.h
==> Validating source files with sha256sums...
sxiv ... Skipped
config.h ... Skipped
==> Extracting sources...
-> Creating working copy of sxiv git repo...
Cloning into 'sxiv'...
==> Starting pkgver()...
==> Updated version: sxiv-git 524.e685859-1
==> Starting prepare()...
==> Starting build()...
image.c: In function ‘img_init’:
image.c:82:12: error: ‘ANTI_ALIAS’ undeclared (first use in this function)
img->aa = ANTI_ALIAS;
image.c:82:12: note: each undeclared identifier is reported only once for each function it appears in
image.c:83:15: error: ‘ALPHA_LAYER’ undeclared (first use in this function)
img->alpha = ALPHA_LAYER;
make: *** [image.o] Error 1
==> ERROR: A failure occurred in build().

gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB -DVERSION=\"git-20140406\" -c -o commands.o commands.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB -DVERSION=\"git-20140406\" -c -o exif.o exif.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -std=c99 -Wall -pedantic -O2 -I/usr/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB -DVERSION=\"git-20140406\" -c -o image.o image.c
Makefile:20: recipe for target 'image.o' failed

Anonymous comment on 2012-12-30 13:25

Ok, I looked into the Makefile and I understand why this is to be prefered.

It doesn't change anything, but since I have the strong feeling that you won't give up until I change it, I changed it ;)

Everything ok now? I'm always open for suggestions.

baskerville commented on 2012-12-30 11:56

Please see:

(This recommendation is coming from Judd Vinet.)