tce-load -i compiletc automake libtool-dev intltool gettext-dev js52-dev gobject-introspection-dev intltool linux-pam-dev elogind-dev cd polkit-0.114 patch -Np1 -i ../polkit-0.114_elogind.patch https://github.com/elogind/elogind/issues/54 autoreconf -fi sed -e '/JS_ReportWarningUTF8/s/,/, "%s",/' -i src/polkitbackend/polkitbackendjsauthority.cpp sudo mkdir /usr/local/include/security sudo ln -s /tmp/tcloop/linux-pam-dev/usr/local/include/* /usr/local/include/security CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --with-authfw=pam --disable-static --libexecdir=/usr/local/lib/polkit-1 --with-polkitd-user=tc --enable-libsystemd-login=no --with-systemdsystemunitdir=/usr/local/etc/dbus-1/system.d --disable-man-pages --enable-libelogind=yes find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; correct location of perl in src/polkitbackend/toarray.pl make sudo make install sudo chmod 4755 /usr/local/lib/polkit-1/polkit-agent-helper-1 sudo chmod 4755 /usr/local/bin/pkexec sudo chmod -R 700 /usr/local/etc/polkit-1/rules.d sudo chown -R tc:staff /usr/local/etc/polkit-1/rules.d sudo chmod -R 700 /usr/local/share/polkit-1/rules.d sudo chown -R tc:staff /usr/local/share/polkit-1/rules.d polkit 0.114 ================= prefix: /usr/local libdir: ${exec_prefix}/lib libexecdir: /usr/local/lib/polkit-1 bindir: ${exec_prefix}/bin sbindir: ${exec_prefix}/sbin datadir: ${datarootdir} sysconfdir: ${prefix}/etc localstatedir: /var docdir: ${datarootdir}/doc/${PACKAGE_TARNAME} compiler: gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe cflags: -g -O2 cppflags: xsltproc: /usr/local/bin/xsltproc introspection: yes Distribution/OS: unknown Authentication framework: pam Session tracking: libelogind PAM support: yes systemdsystemunitdir: /usr/local/etc/dbus-1/system.d polkitd user: tc PAM file auth: system-auth PAM file account: system-auth PAM file password: system-auth PAM file session: system-auth Maintainer mode: no Building api docs: no Building man pages: no Building examples: yes NOTE: The file /usr/local/lib/polkit-1/polkit-agent-helper-1 must be owned by root and have mode 4755 (setuid root binary) NOTE: The file ${exec_prefix}/bin/pkexec must be owned by root and have mode 4755 (setuid root binary) NOTE: The directory ${prefix}/etc/polkit-1/rules.d must be owned by user 'tc' and have mode 700 NOTE: The directory ${datarootdir}/polkit-1/rules.d must be owned by user 'tc' and have mode 700