![]() |
2010-02-09
, 14:50
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#92
|
Fatal latest pianobar version doubles up the app and has a bunch of stuff in /usr/local. Any chance we can get the old one back?
![]() |
2010-02-09
, 14:52
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#93
|
The problem is related to the fact that pianobar in the new version changed location. So the front end tries to start it and its not where it should be.
![]() |
2010-02-09
, 15:04
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#94
|
[sbox-FREMANTLE_ARMEL: ~/pyPandora] > which pianobar /usr/local/bin/pianobar [sbox-FREMANTLE_ARMEL: ~/pyPandora] > pianobar Welcome to pianobar! [?] Username:
![]() |
2010-02-09
, 15:12
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#95
|
Ok I just updated my scratchbox from the old version to the new and it *did* remove the link in /usr/bin/pianobar like it was supposed to and it's now in /usr/local/bin/pianobar which is where it normally *should* be.
It didn't clean up /etc/pianobar though which is a little annoying.. since the config location moved to /usr/local/etc/pianobar..
So if you've upgraded you can remove /etc/pianobar directory completely.
It still runs for me though.. after the upgrade:
So can someone run from the command line and see if it still works? Bratag - did you hard code /usr/bin/pianobar into qtPianobar? With python I was able to just "popen("pianobar")" and it pulled it out of the path instead of hard coding it.Code:[sbox-FREMANTLE_ARMEL: ~/pyPandora] > which pianobar /usr/local/bin/pianobar [sbox-FREMANTLE_ARMEL: ~/pyPandora] > pianobar Welcome to pianobar! [?] Username:
ETA: Oh, because /etc/pianobar is a "config" file it won't remove it unless you "purge" pianobar first.. I see. I might have to put that into a postrm or something.
![]() |
2010-02-09
, 15:20
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#96
|
I actually did hard code it, I was never sure if the path would include the location of the app. That being said I hate hard coding stuff.
![]() |
2010-02-09
, 15:24
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#97
|
My fault.. it didn't occur to me it break the front-ends - I should have sent you a warning first when I realized the location was going to move having it auto-build instead of having me do it.
The only thing I don't like about the new one is the config location.. I would prefer it to stay in /etc/pianobar... I don't know of any app that uses /usr/local/etc for anything.. but pianobar doesn't come with an example config so I had to add it to the CMakeList files myself and evidently I am not fulling understanding the proper way to do it.
I'm not sure what to do at this point.. having auto-builder do it is the "proper" way to build the app.. do I leave it as is and you fix qtPianobar.. or do I find some way to pass an environment variable or something to auto-builder so that it builds in /usr/ instead of /usr/local ??
![]() |
2010-02-09
, 15:34
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#98
|
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.
[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
![]() |
2010-02-09
, 15:44
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#99
|
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:
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.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
No real, noticeable, space is being taken on rootfs at all.
![]() |
2010-02-09
, 15:49
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#100
|
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900