View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#98
Originally Posted by Bratag View Post
Well ultimately I would like to see nothing in the /usr tree at all and certainly no configs in /etc. All apps should go into /opt as per optification rules to avoid using rootfs space. No configs should go into /etc that are not daemons or system level software. I much prefer the config in the user space.
Well wait.. you and I are crossing here.

Pianobar is optified by maemo-optify. /opt is not a normal area and thus not usually added to $PATH because /opt can contain several different ideas:

/opt/package
/opt/maemo/package
/opt/maemo/bin
/opt/(insert random character that the developer decided he wanted here)

etc..

It's not consistent. So what you do is you create the directory tree.. just the directories (we're talking taking up a single inode here on the rootfs).. in the rootfs for like /usr/local/bin.

Then you link the application from the optified location, to the rootfs location.. so you get:

Code:
[sbox-FREMANTLE_ARMEL: ~/pyPandora] > which pianobar                            
/usr/local/bin/pianobar                                                         
[sbox-FREMANTLE_ARMEL: ~/pyPandora] > ls -al /usr/local/bin/pianobar            
lrwxrwxrwx  1 maemo maemo 33 Feb  9 08:07 /usr/local/bin/pianobar -> /opt/maemo/
usr/local/bin/pianobar
So, the app itself is taking up space in /opt/maemo/usr/local/bin .. and something like 3 INODE's, and then a link to the other filesystem, is being taken up in Rootfs.

No real, noticeable, space is being taken on rootfs at all.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!