Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 11:08
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
/root/.usr/share/pixmaps corrupts puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 09 Oct 2005, 07:38    Post subject:  /root/.usr/share/pixmaps corrupts puppy  

Puppy 1.0.5

I you create this folder manually or by extracting a .tgz, the loop-device gets broken.

When you reboot, there appear strange numbers when trying to unmount /dev/loop1.

After reboot, window-managers do not work.

If you remove this folder and reboot, everything is ok again.

Mark
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sun 09 Oct 2005, 12:20    Post subject:  

Interesting.

My question is: Why would someone explicitly extract to /root/.usr/... ?

As I've said in a different thread: /root/.usr and /root/.etc are just implementation details that shouldn't be exposed in scripts.

As I see it, scripts and instalations should always write to /usr or /etc.

It is not a good practice to depend on implementation details. When the implementation changes, it will break everything that depends on them.

"Code to the interface" is the best practice even if you know the implementation details.

The abstraction in this case is /usr and /etc are writable, however it was implemented.
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 09 Oct 2005, 13:04    Post subject:  

Yes, but it happens too, when extracting an archive that contains pictures in /usr/share/pixmaps.

This is, how I found the bug.

I posted the example of
mkdir /root/.usr/share/pixmaps to give you a quick way to reproduce the error.

You also may create a dotpup, that extracts files to /usr/share/pixmaps, I deleted the one that caused me my trouble.

Mark
Back to top
View user's profile Send private message Visit poster's website 
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Wed 12 Oct 2005, 10:14    Post subject: Solution  

Yes i have also been plagued by this problem. it occurs because
/root/.usr/share/pixmaps is translated as /usr/share/pixmaps which is a sim link to /usr/local/lib/X11/pixmaps when files are extracted upon /usr/share/pixmaps this link gets borken and hence the error

so extract you pixmaps to /root/.usr/local/lib/X11/pixmaps this will work.
Back to top
View user's profile Send private message Yahoo Messenger 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 12 Oct 2005, 19:58    Post subject:  

You should never write directly to /root/.usr/, at least not after it is mounted on /usr, as that breaks unionfs. Unless you reboot.
Back to top
View user's profile Send private message Visit poster's website 
guest
Guest


PostPosted: Thu 13 Oct 2005, 09:07    Post subject: sorry its a cut & paste mistake  

sorry i just blatantly cut pasted /root/.usr

rather it should be root/usr/local/lib/X11/pixmaps
Back to top
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0460s ][ Queries: 11 (0.0031s) ][ GZIP on ]