Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-26 Thread Ow Mun Heng
On Sun, 2007-02-11 at 11:24 +0100, Dirk Meyer wrote:
 It should work now as expected, I will prepare new ebuilds today.

May I know where to find the ebuilds? Is it in Gentoo's bugzilla or some
other location??

Thanks


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-26 Thread Dirk Meyer
Ow Mun Heng wrote:
 On Sun, 2007-02-11 at 11:24 +0100, Dirk Meyer wrote:
 It should work now as expected, I will prepare new ebuilds today.

 May I know where to find the ebuilds? Is it in Gentoo's bugzilla or some
 other location??

http://freevo.sourceforge.net/cgi-bin/freevo-2.0/InstallationGentoo

I will make new ebuilds this evening.


Dischi

-- 
Never say 'OOPS!'  Always say 'Ah, Interesting!'


pgpaoAb3MuH39.pgp
Description: PGP signature
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-14 Thread Harm Geerts
On Saturday 10 February 2007, Dirk Meyer wrote:
 Harm Geerts wrote:
  Things that jump out so far:
 
  during install:
  both freevo-core and freevo-ui install /usr/share/freevo/mbus.conf

 Fixed

  during setup:
  `freevo setup` must first be run as root in order to
  create /var/lib/freevo/freevo_config.py
  Only when /var/lib/freevo/freevo_config.py exists are regular users able
  to run `freevo setup`

 Or you have write access to that dir :)
 Again, fixed in svn. /var/lib/freevo is now no longer needed when
 running freevo as user.

  Running freevo:
  directory items with a '.' are getting stripped like file extensions

 Not fixed, I added it to the bugs list.

Had some time to dive into freevo's inner workings and made a patch for this.
Index: src/item.py
===
--- src/item.py	(revision 2488)
+++ src/item.py	(working copy)
@@ -130,7 +130,7 @@
 t = self._beacon_data.get('title')
 if t:
 return t
-return str_to_unicode(get_title(self._beacon_data['name']))
+return str_to_unicode(get_title(self._beacon_data['name'], self.isfile()))
 
 if request and not self._beacon_id:
 log.info('requesting data for %s', self)
Index: src/utils.py
===
--- src/utils.py	(revision 2488)
+++ src/utils.py	(working copy)
@@ -55,14 +55,14 @@
 return result
 
 
-def get_title(name):
+def get_title(name, strip=True):
 
 Convert name into a nice title
 
 if len(name)  2:
 return name
 
-if name.find('.')  0 and not name.endswith('.'):
+if strip and name.find('.')  0 and not name.endswith('.'):
 name = name[:name.rfind('.')]
 
 # TODO: take more hints
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-11 Thread Dirk Meyer
Harm Geerts wrote:
 You'll get a sandbox violation writing everywhere except the staging area.
 The staging area is a temporary install image where portage installs the 
 application before committing it to the live filesystem.
 So yes, you would get a violation for writing to /tmp

OK, I see that there is an env variable TMPDIR I could use. Fixed
that. I wonder why you did not get on error when installing everything
else except kaa.base.

It should work now as expected, I will prepare new ebuilds today.


Dischi

-- 
Never let a computer know you're in a hurry.


pgpfWWS4Qj5jk.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Dirk Meyer
Hi,

again an update on current SVN. 

o The config format now has completly changed to the new kaa.config
  based ini format. This means no local_config.py and no
  freevo_config.py anymore. Call 'freevo setup' after updating.

o Some plugins are broken now because they still need the old style
  config. If someone has some time, please send a patch. The plugins
  are all located in WIP/broken_plugins. I removed the follwing
  plugins today:

  - some idlebar plugins

  - input.event_device
I can't test the plugin. It would be nice if someone could port
this plugin to the new config code (see x11.py or lirc.py as
example). Note: the config itself is in input/config.cxml and
input/plugins/config.cxml.

  - input.dfbevents
I can't test it and it needs to be activated when dfb is working
again. We need someone to take over the dfb port of freevo. Please
contact us.

  - mixer and ossmixer
They should be merged into one plugin. The config of this plugin
(maybe called volctl) needs to be in plugins/config.cxml.


If you want to help, this is your change. I also need people to test
current svn.



Dischi


-- 
If windows is the answer, it must have been a stupid question.



pgpf8orYc1U6b.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Harm Geerts
On Saturday 10 February 2007, Dirk Meyer wrote:
 Hi,

 again an update on current SVN.

 o The config format now has completly changed to the new kaa.config
   based ini format. This means no local_config.py and no
   freevo_config.py anymore. Call 'freevo setup' after updating.

 o Some plugins are broken now because they still need the old style
   config. If someone has some time, please send a patch. The plugins
   are all located in WIP/broken_plugins. I removed the follwing
   plugins today:

   - some idlebar plugins

   - input.event_device
 I can't test the plugin. It would be nice if someone could port
 this plugin to the new config code (see x11.py or lirc.py as
 example). Note: the config itself is in input/config.cxml and
 input/plugins/config.cxml.

   - input.dfbevents
 I can't test it and it needs to be activated when dfb is working
 again. We need someone to take over the dfb port of freevo. Please
 contact us.

   - mixer and ossmixer
 They should be merged into one plugin. The config of this plugin
 (maybe called volctl) needs to be in plugins/config.cxml.


 If you want to help, this is your change. I also need people to test
 current svn.

I'm running Gentoo and am using the ebuilds from the freevo overlay which I 
modified to use svn-head. When installing media-tv/freevo-ui you'll receive a 
sandbox violation.

The problem is that setup.py imports freevo.conf which sets up the DATADIR, 
LOGDIR and the logfile handler. I'm using FEATURES=usersandbox which tries 
to run as much as possible under the portage user (which has uid 250).

 Compiling source 
in /var/tmp/portage/media-tv/freevo-ui-/work/freevo-ui- ...
ACCESS DENIED  open_wr:   /var/log/freevo/setup-250
Traceback (most recent call last):
  File setup.py, line 51, in ?
import freevo.conf
  File /usr/lib64/python2.4/site-packages/freevo/conf.py, line 294, in ?
handler = RotatingFileHandler(syslogfile, maxBytes=100, backupCount=2)
  File /usr/lib/python2.4/logging/handlers.py, line 109, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding)
  File /usr/lib/python2.4/logging/handlers.py, line 61, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding)
  File /usr/lib/python2.4/logging/__init__.py, line 757, in __init__
stream = open(filename, mode)
IOError: [Errno 13] Permission denied: '/var/log/freevo/setup-250'

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Harm Geerts
Things that jump out so far:

during install:
both freevo-core and freevo-ui install /usr/share/freevo/mbus.conf

during setup:
`freevo setup` must first be run as root in order to 
create /var/lib/freevo/freevo_config.py
Only when /var/lib/freevo/freevo_config.py exists are regular users able to 
run `freevo setup`

Running freevo:
directory items with a '.' are getting stripped like file extensions

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Dirk Meyer
Harm Geerts wrote:
 The problem is that setup.py imports freevo.conf which sets up the DATADIR, 
 LOGDIR and the logfile handler. I'm using FEATURES=usersandbox which tries 
 to run as much as possible under the portage user (which has uid 250).

 Compiling source 
 in /var/tmp/portage/media-tv/freevo-ui-/work/freevo-ui- ...
 ACCESS DENIED  open_wr:   /var/log/freevo/setup-250
 Traceback (most recent call last):
   File setup.py, line 51, in ?
 import freevo.conf
   File /usr/lib64/python2.4/site-packages/freevo/conf.py, line 294, in ?
 handler = RotatingFileHandler(syslogfile, maxBytes=100, backupCount=2)
   File /usr/lib/python2.4/logging/handlers.py, line 109, in __init__
 BaseRotatingHandler.__init__(self, filename, mode, encoding)
   File /usr/lib/python2.4/logging/handlers.py, line 61, in __init__
 logging.FileHandler.__init__(self, filename, mode, encoding)
   File /usr/lib/python2.4/logging/__init__.py, line 757, in __init__
 stream = open(filename, mode)
 IOError: [Errno 13] Permission denied: '/var/log/freevo/setup-250'

Should be fixed in svn. I hope I don't get a sandbox violation for
creating stuff in /tmp.

I will create a new set of ebuilds tomorrow so you can test.


Dischi

-- 
In the beginning, there was nothing, which exploded.
-Terry Pratchett


pgpaQ5TRhJrV5.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Dirk Meyer
Harm Geerts wrote:
 Things that jump out so far:

 during install:
 both freevo-core and freevo-ui install /usr/share/freevo/mbus.conf

Fixed

 during setup:
 `freevo setup` must first be run as root in order to 
 create /var/lib/freevo/freevo_config.py
 Only when /var/lib/freevo/freevo_config.py exists are regular users able to 
 run `freevo setup`

Or you have write access to that dir :)
Again, fixed in svn. /var/lib/freevo is now no longer needed when
running freevo as user.

 Running freevo:
 directory items with a '.' are getting stripped like file extensions

Not fixed, I added it to the bugs list.


Thanks for the reports


Dischi

-- 
Experience is the worst teacher.  It always gives the test first and
the instruction afterward.


pgpw34nC68OsN.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Weekly 2.0 SVN Update

2007-02-10 Thread Harm Geerts
On Saturday 10 February 2007, Dirk Meyer wrote:
 Harm Geerts wrote:
  The problem is that setup.py imports freevo.conf which sets up the
  DATADIR, LOGDIR and the logfile handler. I'm using FEATURES=usersandbox
  which tries to run as much as possible under the portage user (which has
  uid 250).

 Should be fixed in svn. I hope I don't get a sandbox violation for
 creating stuff in /tmp.

You'll get a sandbox violation writing everywhere except the staging area.
The staging area is a temporary install image where portage installs the 
application before committing it to the live filesystem.
So yes, you would get a violation for writing to /tmp

If you want to make changes to the live filesystem you can do so in the 
ebuilds pgk_preinst and pkg_postint functions.

If you simply want to create an additional directory (like the LOGDIR) you can 
do this in the src_install function. I imagine it would be something like 
this:

# dev-python/freevo-core.ebuild
src_install() {
# call the distutils.eclass install function
# this uses setup.py to install the appliction
# we have to call this because we override the src_install function
distutils_src_install

# create the logdirectory with world writable permissions
# and tell portage to keep the directory even if it's empty
# this creates a directory in the staging area, not the live filesystem
diropts -m0777
keepdir /var/log/freevo
}

The ebuild 5 manpage [1] has more information about what goes where and what 
tools you can use to achieve certain goals. 

Automatically creating systemwide files/directories when importing a module is 
a bad combination on a distro like gentoo. These things should be done when 
installing rather then at runtime (as shown in the src_install function 
above). A sanity check to see if certain files/directies exist at runtime 
should be enough.

For userspecific settings/logging it's no problem as the portage user is 
allowed to write to it's own $HOME (which is removed after the install is 
successfull)

Some additional information about gentoo's sandbox can be found at [2].

[1] http://gentoo-wiki.com/MAN_ebuild_5
[2] http://bugday.gentoo.org/sandbox.html

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users