To be done or not to be done ... that's here the question ;)

everything about the next not so big update

Moderator: Moderator

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Re: To be done or not to be done ... that's here the questio

Postby arj » Wed Mar 07, 2007 8:58 am

Uatschitchun wrote:
arj wrote:
Uatschitchun wrote:I'll just post a list of little things and questions I need to know for building proper Debian-Packages:

:arrow: Shouldn't fullscreen=true be made default for dvb, dxr3?


# If you selected sdl as output device this setting ...

All configs are using 'fullscreen = false' right now ...
But at least DVB & DXR3 need 'fullscreen = true' to work properly, do they?


I know it is sort of strange that it is set to false for dxr3 and dvb since they can not do anything else. But the option has no meaning for them. That I why I posted that quote from the comment in config.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Mar 07, 2007 10:13 am

Hm .. sometimes a penny needs time to drop :oops:

Lg
Roman

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Mar 07, 2007 11:54 am

Heyho ... first time ever a upstream update for deb works like a charme cause of the proper clean targets !!!

Update to the first post

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Wed Mar 07, 2007 1:34 pm

Uatschitchun wrote:Heyho ... first time ever a upstream update for deb works like a charme cause of the proper clean targets !!!

Update to the first post

Lg
Roman

Could you familiarize the non-gifted with the term "clean targets"? I guess it has nothing to do with the "hunting season", doesn't it?

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Mar 07, 2007 1:46 pm

Problem was the following:

Debian packages use a _clean_ upstream tarball called prg_version.orig.tar.gz and calculates the differences to this in a prg_version-deb-version.diff.gz.

Mainly the diff.gz contains the content of the debian/ dir inside the upstream.

If a pckage is not cleaned up correctly after building, the diff.gz even includes these leftovers as changes to the upstream.

First problem that occurs: diff.gz may not change the upstream
Second problem: When new upstream version comes out, one debianizes this upstream by simply applying the diff.gz to it (this is what uupdate does, too but with just the new orig.tar.gz ... so one needn't unpacking it by hand)
So if there are these leftovers (which do not exist in clean upstream cause they are leftovers from build process), diff and uupdate are complaining cause they cannot find these files!
Thus updating with new upstream versions is a PITA (like anders would say ;)

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Wed Mar 07, 2007 1:55 pm

Uatschitchun wrote:Problem was the following:

Debian packages use a _clean_ upstream tarball called prg_version.orig.tar.gz and calculates the differences to this in a prg_version-deb-version.diff.gz.

Mainly the diff.gz contains the content of the debian/ dir inside the upstream.

If a pckage is not cleaned up correctly after building, the diff.gz even includes these leftovers as changes to the upstream.

First problem that occurs: diff.gz may not change the upstream
Second problem: When new upstream version comes out, one debianizes this upstream by simply applying the diff.gz to it (this is what uupdate does, too but with just the new orig.tar.gz ... so one needn't unpacking it by hand)
So if there are these leftovers (which do not exist in clean upstream cause they are leftovers from build process), diff and uupdate are complaining cause they cannot find these files!
Thus updating with new upstream versions is a PITA (like anders would say ;)

Lg
Roman

Aha, aha --- well - 2 cheesburger, one diet coke and 2 chicken wings.
Whish I didn't ask, but I guess this exacltly was your intention. Thanks :evil:
No Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Mar 07, 2007 5:14 pm

clean targets = make clean / make distclean

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Mar 07, 2007 10:07 pm

Update to the first post ...

Lg
Roman

P.S. Andreas, wasn't what I explained what you wanted to know?

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Re: To be done or not to be done ... that's here the questio

Postby arj » Wed Mar 07, 2007 11:19 pm

Uatschitchun wrote: :arrow: Would be nice if you could change tools/gen_tvlisting.sh to this one (at least '#!/bin/bash' is needed in the beginning to make debian packages recognize it as a script which may have to be executeable) - it's also providing some docu:
[code]#!/bin/bash
#
# EPG-Update Script
#
# BENÖTIGT/NEEDS: xmltv
#
# Alternativ läßt sich auch 'tv_grab_de_prisma' von dieser Seite:
# http://sfr.mythwiki.de/index.html
# verwenden. Die entsprechende Zeile dann unten auskommentieren.
#
# Nach der Installation von xmltv muß der Grabber noch konfiguriert werden:
# After the installation of xmltv your grabber has to be configured:
#
# tv_grab_(your choice) --configure [--gui tk]
#
# Damit dieses Script automatisch von MMS aufgerufen wird
# muß folgende Zeile in /etc/mms/config geändert werden:
# For to make MMS use this script, you'll have to change
# this line:
#
# epg_update_script = /usr/lib/mms/gen_tvlisting.sh

DATADIR=/var/lib/mms
TMPDIR=/var/cache/mms/

echo "Updating EPG information (TV.xml). Pls be patient ..."

#############################################
# Den Grabber der Wahl bitte auskommentieren!
#
# Pls comment out the grabber of your choice!
# Or define one of your own ...
#############################################

# TV_GRAB_DE_TVTODAY
#
#tv_grab_de_tvtoday --config-file ~/.xmltv/tv_grab_de_tvtoday.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DE_PRISMA
#
#tv_grab_de_prisma --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DK
#
#tv_grab_dk --config-file ~/.xmltv/tv_grab_dk.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# Wandle TV.xml nach UTF-8 und kopiere
# Convert TV.xml to UTF-8 and copy
#
iconv --from-code=ISO-8859-1 --to-code=UTF-8 < $TMPDIR/TV.xml.tmp > $TMPDIR/TV.utf8.xml
mv $TMPDIR/TV.utf8.xml $DATADIR/TV.xml


I'm not too crazy about this one. My two gripes about it is:

1) It's in german
2) It's doesn't work out of the box. One needs to modify it. I could perhaps be persuaded to add it as tools/gen_tv_listing_german.sh or something like that but the idea of the script is that it's just an example of what one can do. Sort of like the cfg/input-X files. I find it very important that it's a working example even though it might not be exactly what the user needs.

Uatschitchun wrote: :arrow: If it's no big deal, these topics from 1.0.9-todo would be nice if they could be implemented into 1.0.8.2:

07 [the voting was clear ;)] Switch UP/DOWN and LEFT/RIGHT in its slideshow-functions to be more 'intuitiv'
See: http://mms.kicks-ass.org/forum/viewtopic.php?t=576&start=0&postdays=0&postorder=asc&highlight=

15 [*] Make button for 'second-action-menu' work as on/off. With keyboard using SPACE to open up and SPACE to shut down the menu is more intuitiv!
It's confusing to use END when END is assinged to 'Leave dir' in the s-a-m itself.



Fixed both. The last suggestion was actually a super idea! Thanks.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: To be done or not to be done ... that's here the questio

Postby Uatschitchun » Thu Mar 08, 2007 7:52 am

Uatschitchun wrote: :arrow: Would be nice if you could change tools/gen_tvlisting.sh to this one - it's also providing some docu:
#!/bin/sh
#
# EPG-Update Script
#
# BENÖTIGT/NEEDS: xmltv
#
# Alternativ läßt sich auch 'tv_grab_de_prisma' von dieser Seite:
# http://sfr.mythwiki.de/index.html
# verwenden. Die entsprechende Zeile dann unten auskommentieren.
#
# Nach der Installation von xmltv muß der Grabber noch konfiguriert werden:
# After the installation of xmltv your grabber has to be configured:
#
# tv_grab_(your choice) --configure [--gui tk]
#
# Damit dieses Script automatisch von MMS aufgerufen wird
# muß folgende Zeile in /etc/mms/config geändert werden:
# For to make MMS use this script, you'll have to change
# this line:
#
# epg_update_script = /usr/lib/mms/gen_tvlisting.sh

DATADIR=/var/lib/mms
TMPDIR=/var/cache/mms/

echo "Updating EPG information (TV.xml). Pls be patient ..."

#############################################
# Den Grabber der Wahl bitte auskommentieren!
#
# Pls comment out the grabber of your choice!
# Or define one of your own ...
#############################################

# TV_GRAB_DE_TVTODAY
#
#tv_grab_de_tvtoday --config-file ~/.xmltv/tv_grab_de_tvtoday.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DE_PRISMA
#
#tv_grab_de_prisma --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DK
#
#tv_grab_dk --config-file ~/.xmltv/tv_grab_dk.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# Wandle TV.xml nach UTF-8 und kopiere
# Convert TV.xml to UTF-8 and copy
#
iconv --from-code=ISO-8859-1 --to-code=UTF-8 < $TMPDIR/TV.xml.tmp > $TMPDIR/TV.utf8.xml
mv $TMPDIR/TV.utf8.xml $DATADIR/TV.xml



I'm not too crazy about this one. My two gripes about it is:

1) It's in german

Sure?

2) It's doesn't work out of the box.

That's only this one little change:

Code: Select all

#tv_grab_dk --config-file ~/.xmltv/tv_grab_dk.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp
tv_grab_dk --config-file ~/.xmltv/tv_grab_dk.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp


Uatschitchun wrote: :arrow: If it's no big deal, these topics from 1.0.9-todo would be nice if they could be implemented into 1.0.8.2:

Fixed both. The last suggestion was actually a super idea! Thanks.

Thx ...


P.S. One could even leave out the german lines completly but add the "self-explanation" and preconfigured grabber-lines:

Code: Select all

#!/bin/sh
#
# EPG-Update Script
#
# NEEDS: xmltv
#
# Alternativly german users might use 'tv_grab_de_prisma' from here:
# http://sfr.mythwiki.de/index.html
#
# After the installation of xmltv your grabber has to be configured:
#
# tv_grab_(your choice) --configure [--gui tk]
#
# For to make MMS use this script, you'll have to change
# this line in your config:
#
# epg_update_script = /usr/lib/mms/gen_tvlisting.sh

DATADIR=/var/lib/mms
TMPDIR=/var/cache/mms/

echo "Updating EPG information (TV.xml). Pls be patient ..."

#############################################
#
# Pls comment out the grabber of your choice!
# Or define one of your own ...
#
#############################################

# TV_GRAB_DE_TVTODAY
#
#tv_grab_de_tvtoday --config-file ~/.xmltv/tv_grab_de_tvtoday.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DE_PRISMA
#
#tv_grab_de_prisma --days 1 --slow --output $TMPDIR/TV.xml.tmp

# TV_GRAB_DK
#
tv_grab_dk --config-file ~/.xmltv/tv_grab_dk.conf --days 1 --slow --output $TMPDIR/TV.xml.tmp

# Convert TV.xml.tmp to UTF-8 and copy as TV.xml
#
iconv --from-code=ISO-8859-1 --to-code=UTF-8 < $TMPDIR/TV.xml.tmp > $TMPDIR/TV.utf8.xml
mv $TMPDIR/TV.utf8.xml $DATADIR/TV.xml


Anyway ... thx for adding '#!/bin/bash' !!

Lg
Roman

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 08, 2007 11:48 am

Another update to the first post :roll:

But to be honest ... these seem to be the last changes needed fro proper packaging :P

All is running well now. The packages are up-to-date with the latest revno.

There's only one thing left (beside the 2 patches in first post) that I don't really know how to fix ...
mms-slim (gstreamer) needs different settings for audio in config. As far as it seems there is no way to patch during the build process (only before). If that would be possible, I would patch in the correct settings when mms-slim is build and installed (into the build-dir).

This is a problem everyone using gstreamer/xine will stumble about and so better be fixed in upstream then ...

Anders, do you see a way on how this could be fixed? Maybe use a patch (like there are for lirc and evdev) and apply it with gstreamer or xine enabled?

Lg
Roman

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Thu Mar 08, 2007 9:26 pm

Well as far as I remember when I tried to do the automatic edit of config based on audio player it didn't work because I was getting conflicts when patching. Anyway if the package has been compiled with a specific player can't you just provide a "fixed" config?

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Thu Mar 08, 2007 9:33 pm

Thanks for the patches to the man pages. I fixed those and changed the gen_tvlisting.sh script.


Return to “1.0.9”

Who is online

Users browsing this forum: No registered users and 1 guest