Package Details: xkblayout-state-git 20171105-1

Git Clone URL: (read-only, click to copy)
Package Base: xkblayout-state-git
Description: A small command-line program to get/set the current keyboard layout.
Upstream URL:
Keywords: keyboard layout xkb
Licenses: GPL
Conflicts: xkblayout-state
Provides: xkblayout-state
Submitter: NeoTheFox
Maintainer: NeoTheFox
Last Packager: NeoTheFox
Votes: 19
Popularity: 0.72
First Submitted: 2017-11-21 07:45
Last Updated: 2017-11-21 07:45

Latest Comments

alecmev commented on 2017-11-21 17:06

Thank you!

NeoTheFox commented on 2017-11-21 07:46


I will now drop this package

alecmev commented on 2017-11-21 04:26

Please, re-upload as xkblayout-state-git, and deprecate this package (or pin it). Otherwise pacaur mistreats it as a regular package, and refuses to install due to a .SRCINFO and PKGBUILD mismatch, like in this issue:

NeoTheFox commented on 2017-10-26 11:42

Applied the fix by m45t3r

m45t3r commented on 2017-10-26 00:30

Here a (ugly) fix:

NeoTheFox commented on 2017-10-22 18:00

I'm looking into it, but I am really out of ideas. It builds outside of makepkg. If anyone has any ideas please let me know.

icher commented on 2017-10-22 09:25

Can't build:

==> Starting build()...
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -c -o XKeyboard.o XKeyboard.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -c -o wrapper.o wrapper.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lX11 -o xkblayout-state XKeyboard.o wrapper.o
XKeyboard.o: In function `XKeyboard::accomodateGroupXkb()':
XKeyboard.cpp:(.text+0xf3): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::~XKeyboard()':
XKeyboard.cpp:(.text+0x12c): undefined reference to `XCloseDisplay'
XKeyboard.o: In function `XKeyboard::currentGroupNum() const':
XKeyboard.cpp:(.text+0x59f): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::currentGroupName[abi:cxx11]() const':
XKeyboard.cpp:(.text+0x5f8): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::currentGroupSymbol[abi:cxx11]() const':
XKeyboard.cpp:(.text+0x678): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::currentGroupVariant[abi:cxx11]() const':
XKeyboard.cpp:(.text+0x6f8): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::setGroupByNum(int)':
XKeyboard.cpp:(.text+0x778): undefined reference to `XkbLockGroup'
XKeyboard.cpp:(.text+0x7ab): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::changeGroup(int)':
XKeyboard.cpp:(.text+0x7f9): undefined reference to `XkbLockGroup'
XKeyboard.cpp:(.text+0x80e): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::initializeXkb()':
XKeyboard.cpp:(.text+0x1583): undefined reference to `XkbQueryExtension'
XKeyboard.cpp:(.text+0x1589): undefined reference to `XkbAllocKeyboard'
XKeyboard.cpp:(.text+0x15b9): undefined reference to `XkbGetControls'
XKeyboard.cpp:(.text+0x15ca): undefined reference to `XkbGetNames'
XKeyboard.cpp:(.text+0x15db): undefined reference to `XkbGetNames'
XKeyboard.cpp:(.text+0x166e): undefined reference to `XGetAtomName'
XKeyboard.cpp:(.text+0x17b7): undefined reference to `XFree'
XKeyboard.cpp:(.text+0x1955): undefined reference to `XGetAtomName'
XKeyboard.cpp:(.text+0x1983): undefined reference to `XFree'
XKeyboard.cpp:(.text+0x1c4d): undefined reference to `XkbGetState'
XKeyboard.o: In function `XKeyboard::XKeyboard()':
XKeyboard.cpp:(.text+0x1f5b): undefined reference to `XkbIgnoreExtension'
XKeyboard.cpp:(.text+0x1f9a): undefined reference to `XkbOpenDisplay'
XKeyboard.cpp:(.text+0x1ff1): undefined reference to `XkbSelectEventDetails'
XKeyboard.cpp:(.text+0x2002): undefined reference to `XkbGetState'
XKeyboard.cpp:(.text+0x201b): undefined reference to `XkbGetState'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: xkblayout-state] Error 1
==> ERROR: A failure occurred in build().
==> ERROR: Makepkg was unable to build xkblayout-state.
==> Restart building xkblayout-state ? [y/N]

Only work for me if I modify pkgbuild:

CXX="g++" CXXFLAGS="" LDFLAGS="" make

My /etc/makepkg.conf

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"