maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] Enhanced BusyBox package (https://talk.maemo.org/showthread.php?t=72801)

ade 2011-11-24 13:50

Re: [Announce] Enhanced BusyBox package
 
IDon't,

I'm experiencing something that looks like some bug in busybox-power_1.19.3power2. But it is strange I have heard no one else about it.
Yesterday I noticed Python apps started losing their skin/buttons.

I traced it down to this:

For some reason, TMPDIR is not set (or unset) in the user shell (it is still set in the root shell).
Because it is not set, python starts looking in /tmp for the sapwood-engine entry (/tmp/sapwood-:0.0), but is is running in /var/tmp. First exporting TMPDIR to /var/tmp before starting solves it for that session.

When I reverted back to busybox-power_1.19.3power1, TMPDIR was set again. Upgraded to busybox-power_1.19.3power2 again, and TMPDIR was gone.
Setting the export in /etc/profile or ~/.profile does not work. The problem does not occur in the bash shell.

Edit: the issue is visable then a sh shell is opened in a existing shell. TMPDIR is not passed on to the next shell.

vi_ 2011-11-24 13:57

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by ade (Post 1128415)
IDon't,

I'm experiencing something that looks like some bug in busybox-power_1.19.3power2. But it is strange I have heard no one else about it.
Yesterday I noticed Python apps started losing their skin/buttons.

I traced it down to this:

For some reason, TMPDIR is not set (or unset) in the user shell (it is still set in the root shell).
Because it is not set, python starts looking in /tmp for the sapwood-engine entry (/tmp/sapwood-:0.0), but is is running in /var/tmp. First exporting TMPDIR to /var/tmp before starting solves it for that session.

When I reverted back to busybox-power_1.19.3power1, TMPDIR was set again. Upgraded to busybox-power_1.19.3power2 again, and TMPDIR was gone.
Setting the export in /etc/profile or ~/.profile does not work. The problem does not occur in the bash shell.

I noticed this with recaller. I simply 'apt-get purge recaller', rebooted then installed again.

Currently I am running BB-P 1.19v2 with no issues to python programs.

pusak gaoq 2011-11-24 14:02

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by vi_ (Post 1128418)
I noticed this with recaller. I simply 'apt-get purge recaller', rebooted then installed again.

Currently I am running BB-P 1.19v2 with no issues to python programs.

removing(purge) then re-installed didn't help....still no skin/button on theme customizer,advanced clock plugin,CSSU features configuration, recaller & etc....

ade 2011-11-24 14:05

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by vi_ (Post 1128418)
I noticed this with recaller. I simply 'apt-get purge recaller', rebooted then installed again.

Currently I am running BB-P 1.19v2 with no issues to python programs.

I don't have recaller installed. It is not just one program, it's every program based on python. Vi_, what does a "echo $TMPDIR" give you in a sh usershell?

ade 2011-11-24 14:08

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by pusak gaoq (Post 1128420)
removing(purge) then re-installed didn't help....still no skin/button on theme customizer,advanced clock plugin,CSSU features configuration, recaller & etc....

All python based programs. Your are facing the same problem.

Could you start an sh shell (x-terminal) as user and do
Code:

echo $TMPDIR
Big chance it will return an empty value...

karam 2011-11-24 14:18

Re: [Announce] Enhanced BusyBox package
 
having the same as ade...

reversing to the older version solves it

artpra 2011-11-24 14:20

Re: [Announce] Enhanced BusyBox package
 
I have the same problem.
Code:

echo $TMPDIR
returned
Code:

/var/tmp

ade 2011-11-24 14:24

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by artpra (Post 1128434)
I have the same problem.
Code:

echo $TMPDIR
returned
Code:

/var/tmp

In this case it should be okay. but did you test correctly?
You must use the sh shell and be user.

echo $0
must return: sh
id
must return: uid=29999(user) gid=29999(users) groups=20(dialout),29(audio),44(video),670(pulse-access),29999(users)

Then do you still get /var/tmp as a value for TMPDIR?

Rob1n 2011-11-24 14:52

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by ade (Post 1128436)
In this case it should be okay. but did you test correctly?
You must use the sh shell and be user.

echo $0
must return: sh
id
must return: uid=29999(user) gid=29999(users) groups=20(dialout),29(audio),44(video),670(pulse-access),29999(users)

Then do you still get /var/tmp as a value for TMPDIR?

On mine, the initial shell (from running X Terminal or via ssh) reports "-sh" as $0 and has TMPDIR set to /var/tmp. Running "sh" to start a new shell reports "sh" as $0 and has no TMPDIR set though.

pusak gaoq 2011-11-24 14:54

Re: [Announce] Enhanced BusyBox package
 
Quote:

Originally Posted by ade (Post 1128436)
In this case it should be okay. but did you test correctly?
You must use the sh shell and be user.

echo $0
must return: sh
id
must return: uid=29999(user) gid=29999(users) groups=20(dialout),29(audio),44(video),670(pulse-access),29999(users)

Then do you still get /var/tmp as a value for TMPDIR?

i did try your step & yes i got /var/tmp as value TMPDIR.....
is it the right thing or wrong cause i still got bug in TC...


All times are GMT. The time now is 02:04.

vBulletin® Version 3.8.8