tce-load -i compiletc automake libtool-dev intltool gtk-doc gettext-dev js78-dev gobject-introspection-dev linux-pam-dev [elogind-dev circular dep] wget https://www.freedesktop.org/software/polkit/releases/polkit-0.118.tar.gz wget http://www.linuxfromscratch.org/patches/blfs/svn/polkit-0.118-fix_elogind_detection-1.patch cd polkit-0.118 patch -Np1 -i ../polkit-0.118-fix_elogind_detection-1.patch autoreconf -fi sudo mkdir /usr/local/include/security sudo ln -s /tmp/tcloop/linux-pam-dev/usr/local/include/* /usr/local/include/security CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -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 [--disable-libelogind] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; correct location of perl in src/polkitbackend/toarray.pl make [0m 22.06s] 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.118 ================= 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 -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