LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-05-2017, 09:18 AM   #31
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,308

Rep: Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821

Quote:
14:12 < rworkman> Without any debugging, looks like it's in glib/gutils.c probably
14:14 < rworkman> in g_get_user_runtime_dir()
I've made an inquiry of mclasen, the guy who does glib releases; let's wait and see what he says before any significant time is invested in debugging...
 
Old 05-05-2017, 09:29 AM   #32
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,308

Rep: Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821
In the meantime, something like this near the top of rc.networkmanager should move the problem somewhere other than /:
Code:
XDG_CACHE_HOME=/run
export XDG_CACHE_HOME
 
1 members found this post helpful.
Old 05-05-2017, 09:37 AM   #33
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,308

Rep: Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821
Quote:
Originally Posted by allend View Post
This is working for me to stop the creation of /.cache directory.
Code:
bash-4.4$ diff ./a/rc.networkmanager ./b/rc.networkmanager 
36c36
<   $NETWORKMANAGER_BIN
---
>   XDG_CACHE_HOME=/root/.cache $NETWORKMANAGER_BIN
From https://standards.freedesktop.org/ba...ec-latest.html
Crap, I just saw this. Yes, this is a nice workaround and essentially what I reposted.
 
1 members found this post helpful.
Old 05-05-2017, 11:08 AM   #34
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware, Xubuntu
Posts: 275

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by allend
This is working for me to stop the creation of /.cache directory.
Code:
bash-4.4$ diff ./a/rc.networkmanager ./b/rc.networkmanager 
36c36
<   $NETWORKMANAGER_BIN
---
>   XDG_CACHE_HOME=/root/.cache $NETWORKMANAGER_BIN
Crap, I just saw this. Yes, this is a nice workaround and essentially what I reposted.
Confirmed to resolve (work around?) the issue for me too.

Last edited by burdi01; 05-05-2017 at 11:22 AM.
 
Old 05-25-2017, 11:24 AM   #35
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,998

Rep: Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743
Grr - This issue is back in -current with the latest NetworkManager-1.8.0 which silently overwrote my existing /etc/rc.d/rc.networkmanager on upgrade.
 
Old 05-25-2017, 01:10 PM   #36
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,308

Rep: Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821Reputation: 821
Quote:
Originally Posted by allend View Post
Grr - This issue is back in -current with the latest NetworkManager-1.8.0 which silently overwrote my existing /etc/rc.d/rc.networkmanager on upgrade.
I don't see how it overwrote your rc.networkmanager :/
 
Old 05-26-2017, 03:25 AM   #37
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,998

Rep: Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743Reputation: 1743
The problem is in this function of the doinst.sh
Code:
preserve_perms() {
  NEW="$1"
  OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
  if [ -e ${OLD} ]; then
    cp -a ${OLD} ${NEW}.incoming
    cat ${NEW} > ${NEW}.incoming
    mv ${NEW}.incoming ${NEW}
  fi
  mv ${NEW} ${OLD}
}
The old file is copied, then immediately overwritten.
Perhaps
Code:
cp -a ${OLD} ${OLD}.orig
 
Old 05-26-2017, 03:35 PM   #38
GazL
Senior Member
 
Registered: May 2008
Posts: 4,754
Blog Entries: 14

Rep: Reputation: Disabled
preserve_perms() usually has a config $NEW rather than a mv $NEW $OLD where files are to be treated as config files and left for the user to manage. It would probably be more in keeping with the slackware way of doing things to do that than creating a *.orig in this case.
 
Old 05-26-2017, 09:04 PM   #39
USUARIONUEVO
Member
 
Registered: Apr 2015
Posts: 919

Rep: Reputation: 289Reputation: 289Reputation: 289
The .cache folder is using by some apps or services.

In my $HOME/.cache i have some folders like gstreamer-1.0 , obexd , google-crome , and others.

Is not an error ,some apps, want this ,if no exists "create a new one".

Thats all.
 
Old 05-26-2017, 09:16 PM   #40
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
The .cache folder is using by some apps or services.

In my $HOME/.cache i have some folders like gstreamer-1.0 , obexd , google-crome , and others.

Is not an error ,some apps, want this ,if no exists "create a new one".

Thats all.
This thread is about /.cache, not ~/.cache as reminded by the OP is post #10

PS The XDG Base Directory Specification states:
Quote:
$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
But no user should have / as $HOME

Last edited by Didier Spaier; 05-26-2017 at 09:46 PM. Reason: PS added.
 
Old 05-26-2017, 09:52 PM   #41
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
@burdi01:from the ChangeLog for Slackware-Current:
Code:
Fri May 26 22:40:13 UTC 2017
<snip>
  rc.networkmanager: Set XDG_CACHE_HOME=/root/.cache before starting.
  Thanks to allend.
Thus I assume that this thread could be marked as [SOLVED]

PS This complies to the XDG Base Specification as reminded by my previous post. Sounds logical as our friend LP is both NM's author and a co-author of the spec (1)

PPS I just checked: when /etc/rc/d.rc.M starts rc.networkmanager, $HOME is set to "/". I have no idea on why nor what sets it, but that sounds weird as POSIX states:
Code:
HOME
    The system shall initialize this variable at the time of login to be a pathname of the user's home directory. See <pwd.h>.
But as nobody is logged in when rc.M starts rc.networkmanager, why is HOME already set?

Anyway as rc.M runs on behalf of root, setting XDG_CACHE_HOME as /root/.cache in rc.networkmanager is indeed the right thing to do.

EDIT (1) No LP is not author of NM, sorry for this mistake. As we say here on ne prÍte qu'aux riches.

Last edited by Didier Spaier; 05-27-2017 at 05:19 AM. Reason: PPS added.
 
Old 05-27-2017, 04:26 AM   #42
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware, Xubuntu
Posts: 275

Original Poster
Rep: Reputation: 39
I still cannot help feeling that this solution is working around the problem rather that resolving the cause.
Anyway, marking this thread as solved.
Thks everyone.


Edit: Hmm, when reading back this post I notice that it sounds more negative than I meant it to be.

Last edited by burdi01; 05-27-2017 at 04:29 AM.
 
1 members found this post helpful.
Old 05-27-2017, 04:32 AM   #43
GazL
Senior Member
 
Registered: May 2008
Posts: 4,754
Blog Entries: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by burdi01 View Post
I still cannot help feeling that this solution is working around the problem rather that resolving the cause.
Anyway, marking this thread as solved.
Thks everyone.


Edit: Hmm, when reading back this post I notice that it sounds more negative than I meant it to be.
Yes, it does feel kind of ugly, but then, that's NetworkManager for you.
 
Old 05-27-2017, 04:48 AM   #44
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
Yes, it does feel kind of ugly, but then, that's NetworkManager for you.
Well NM just does what's written in the aforementioned spec. How is that wrong or ugly?

The alternative would be that if HOME is set to / NM sets it to /root. I wouldn't like that at all, as it would be too much intrusive: it's simply not NM's job to set HOME. Doing that in the startup script instead is way better, as the admin can easily change this setting if so inclined.

Last edited by Didier Spaier; 05-27-2017 at 04:50 AM.
 
Old 05-27-2017, 05:11 AM   #45
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
Previous content deleted: I mistakenly quoted my post #41 instead of editing it, sorry.

Last edited by Didier Spaier; 05-27-2017 at 05:22 AM. Reason: I mistakenly quoted my post #41 instead of editing it, sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] latest hplip on current64 Launfal Slackware 34 06-10-2016 06:27 PM
[SOLVED] Current64 sound has a mind of its own Gordie Slackware 20 02-22-2016 06:32 AM
[SOLVED] Pdfshuffler and poppler in current64 aszabo Slackware 3 02-01-2016 11:01 AM
[SOLVED] -current64 aclocal segfault KaMii Slackware 8 11-07-2015 12:46 AM
Autokey and current64 charlie_lab Slackware 4 03-20-2010 03:56 PM

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

All times are GMT -5. The time now is 02:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration