LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-01-2020, 11:45 AM   #1
Jefferson
Member
 
Registered: Jul 2012
Distribution: Slackware-current, 32bit
Posts: 84

Rep: Reputation: Disabled
Some nm-connection-editor *.ui files do not exist (impossible to set Wi-Fi Security settings in NM)


Hi. Noticed that i can't change "Wi-Fi Security" settings in nm-applet.
I launched nm-connection-editor in console and got following errors:

Code:
** (nm-connection-editor:2973): WARNING **: 21:29:38.531: Couldn't load UI builder resource /org/freedesktop/network-manager-applet/ws-wep-key.ui: The resource at ?/org/freedesktop/network-manager-applet/ws-wep-key.ui? does not exist

** (nm-connection-editor:2973): WARNING **: 21:29:38.543: Couldn't load UI builder resource /org/freedesktop/network-manager-applet/ws-wep-key.ui: The resource at ?/org/freedesktop/network-manager-applet/ws-wep-key.ui? does not exist

** (nm-connection-editor:2973): WARNING **: 21:29:38.543: Couldn't load UI builder resource /org/freedesktop/network-manager-applet/ws-wpa-psk.ui: The resource at ?/org/freedesktop/network-manager-applet/ws-wpa-psk.ui? does not exist

** (nm-connection-editor:2973): WARNING **: 21:29:38.543: Couldn't load UI builder resource /org/freedesktop/network-manager-applet/ws-sae.ui: The resource at ?/org/freedesktop/network-manager-applet/ws-sae.ui? does not exist
Also, as a result, newly created Wi-Fi hotspots (files in "system-connections" directory of NetworkManager) have "[wifi-security]" block missing.

Would be nice if it'll be fixed.
Thanks in advance.

PS: Slackware-current, 32-bit.
 
Old 04-01-2020, 12:10 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Have you done install-new with slackpkg recently? I'm guessing you're missing libnma.

Code:
Sat Mar  7 20:25:36 UTC 2020
xap/libnma-1.8.28-x86_64-1.txz:  Added.
  This is the NetworkManager GUI client library, which was previously
  provided by network-manager-applet. It's now a standalone project, and
  is required by network-manager-applet and other NetworkManager frontends.
xap/network-manager-applet-1.16.0-x86_64-1.txz:  Upgraded.
  This requires the new libnma package.
 
Old 04-01-2020, 04:05 PM   #3
Jefferson
Member
 
Registered: Jul 2012
Distribution: Slackware-current, 32bit
Posts: 84

Original Poster
Rep: Reputation: Disabled
I have libnma installed:
Quote:
/var/log/packages/libnma-1.8.28-i586-1
 
Old 04-01-2020, 05:20 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
The files still exist in the network-manager-applet source, but aren't present in the final package. I wonder if this new version of network-manager-applet needs to be built with meson now to get the correct files in place.

Try this modified version of the network-manager-applet.SlackBuild that switches from autotools to meson (I have not been able to successfully run the SlackBuild because I'm not running -current and it fails against my 14.2 install -- it might still need a few tweaks):

Code:
#!/bin/bash

# Slackware build script for network-manager-applet

# Copyright 2010, 2011, 2014  Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cd $(dirname $0) ; CWD=$(pwd)

PKGNAM=network-manager-applet
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2bass}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
  echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
  exit 0
fi

NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}

TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.xz || exit 1
cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \+ -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \+

export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
mkdir meson-build
cd meson-build
meson setup \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  -Dteam=false \
  -Dselinux=false \
  .. || exit 1
  "${NINJA:=ninja}" $NUMJOBS || exit 1
  DESTDIR=$PKG $NINJA install || exit 1
cd ..

# network-manager-applet-1.8.22 installs locale files with a different name
# than what is expected causing localization to fail. To be on the safe side,
# we'll symlink to the old name. This hack shouldn't hurt anything in the
# future, but perhaps it should be revisited someday to see if it's still
# required.
for LOCALEDIR in $PKG/usr/share/locale/*/LC_MESSAGES ; do
  ( cd $LOCALEDIR
    if [ -r network-manager-applet.mo ]; then
      ln -sf network-manager-applet.mo nm-applet.mo
    fi
  )
done

# Compress and if needed symlink the man pages:
if [ -d $PKG/usr/man ]; then
  ( cd $PKG/usr/man
    for manpagedir in $(find . -type d -name "man*") ; do
      ( cd $manpagedir
        for eachpage in $( find . -type l -maxdepth 1) ; do
          ln -s $( readlink $eachpage ).gz $eachpage.gz
          rm $eachpage
        done
        gzip -9 *.?
      )
    done
  )
fi

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
  AUTHORS CONTRIBUTING COPYING* ChangeLog INSTALL NEWS README* \
  $PKG/usr/doc/$PKGNAM-$VERSION

# If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then
  DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
  cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
  touch -r ChangeLog $DOCSDIR/ChangeLog
fi

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz

Last edited by bassmadrigal; 04-01-2020 at 09:48 PM. Reason: Adjusted build number to make it easier to install and remove docdir option
 
1 members found this post helpful.
Old 04-02-2020, 06:14 AM   #5
Jefferson
Member
 
Registered: Jul 2012
Distribution: Slackware-current, 32bit
Posts: 84

Original Poster
Rep: Reputation: Disabled
Looks like it did the trick!
Thank you, bassmadrigal.
 
Old 04-03-2020, 11:17 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Official package should be fixed now.

Code:
Thu Apr  2 22:13:11 UTC 2020
xap/network-manager-applet-1.16.0-x86_64-2.txz:  Rebuilt.
  Rebuilt using meson. Thanks to bassmadrigal.
 
1 members found this post helpful.
Old 04-03-2020, 02:31 PM   #7
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Cool

Quote:
Originally Posted by bassmadrigal View Post
Official package should be fixed now.
Thanks for doing that, mate.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot editor crontab unless I explicitly set the EDITOR vincix Linux - Newbie 16 06-27-2019 06:41 AM
[SOLVED] cannot login to funtoo linux. UID 0 does not exist. no users or groups seem to exist. whansard Linux - Security 1 12-19-2018 03:40 AM
[SOLVED] [Mutt] is it impossible to use GVim as editor? Michael Uplawski Linux - Software 3 04-03-2018 11:35 AM
Impossible to change files attributes to all files in the folder maiden2 Linux - Software 1 09-30-2008 05:09 AM
How to use samba implementing some files can visible and some files can not visible willie118 Linux - Server 7 09-18-2007 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration