Package Details: xkblayout-state 20171010-3

Git Clone URL: https://aur.archlinux.org/xkblayout-state.git (read-only)
Package Base: xkblayout-state
Description: A small command-line program to get/set the current keyboard layout.
Upstream URL: https://github.com/nonpop/xkblayout-state
Licenses: GPL
Conflicts: xkblayout-state
Provides: xkblayout-state
Submitter: NeoTheFox
Maintainer: None
Last Packager: NeoTheFox
Votes: 11
Popularity: 0.003986
First Submitted: 2016-03-14 10:44
Last Updated: 2017-10-26 11:41

Latest Comments

jeremejevs commented on 2017-11-21 17:06

Thank you!

NeoTheFox commented on 2017-11-21 07:46

Done, https://aur.archlinux.org/packages/xkblayout-state-git/

I will now drop this package

jeremejevs 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: https://github.com/rmarquis/pacaur/issues/612

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: https://gist.github.com/m45t3r/0afa820bf1b0e991d9a3f6b595903096

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().
Aborting...
==> 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

...
CPPFLAGS="-D_FORTIFY_SOURCE=2"
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"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
MAKEFLAGS="-j$(nproc)"
...