[depreciated]mms-1.0.8.1 packaged for Debian/Edgy (PLS test)

Moderator: Moderator

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

Postby acmelabs » Tue Dec 19, 2006 11:32 am

Uatschitchun wrote:anders, there is no optimization flag in config.h ... architecture is checked in configure and saved in config.mak ... so only way is to hard set i386 in configure ...

Code: Select all

#optimize
#OPTIMIZE = $_optimizing
OPTIMIZE = i386


If I set it this way, it is also applied if one compiles (build deb) from sources ... need to find a way to set it when compiling the deb and leave it for configure-check if one builds the deb from the sources so optimization is correct ... !?

Any idea on this?

Lg
Roman

I've tied to build this package, it compiled fine, and gave me a pretty small .deb back. I've installed it, and started:

Code: Select all

root@vulcan:/home/acme/mms-deb/deb# mms
Config: Öffne Konfigurationsdatei /etc/mms/config
CONFIG: Konfigurationsdatei nicht gefunden /etc/mms/config
Nutze /etc/mms/ als Konfigurationsverzeichnis
MMS: DVB und DXR3 Ausgabe unterstützt nur die Auflösung 720x540 (4:3) oder 720x405 (16:9)

Seems the package isn't built quite right, but never the less, it shows, that the CPU dependency matches.
I'll stop my activities here, because You both handel this much better :D

Regards,

Andreas

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

Postby acmelabs » Tue Dec 19, 2006 12:37 pm

Forgot to mention:
I suggest to use "MMS - My Media System" in the Debian-Package.

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

Postby Uatschitchun » Tue Dec 19, 2006 12:52 pm

arj wrote:I'll add a switch to configure for this. But for now the hardcoding should work.

Nice!

Making it depend on libcommoncpp2 would be a good idea.
I can easily create tar.gz without these.

That would be cool ;)

Version included with edgy is:
1.4.3-1 0

is this version Ok?

Especially with libavcodec. Their API and release schedule is a nightmare to support.

Afaik and afa I can see from the debian part of mplayer (f.e.) they use their own libavcodec themselves ...

Btw. ... new version is on the way ... just a few changes left ...

Lg
Roman

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

Postby Uatschitchun » Tue Dec 19, 2006 1:03 pm

acmelabs wrote:MMS: DVB und DXR3 Ausgabe unterstützt nur die Auflösung 720x540 (4:3) oder 720x405 (16:9
Seems the package isn't built quite right, but never the less, it shows, that the CPU dependency matches.)


If yu haven't changed the debian/ruls, it should state:

Code: Select all

# Add here commands to configure the package.
./configure --prefix=/usr --enable-alsaplayer --enable-game --enable-tv --enable-eject-tray


I'll stop my activities here, because You both handel this much better :D

Pls don't! Your results are quite worthy as they bring up targets to document on!

Did you get something like:
dpkg-checkbuilddeps: Unmet build dependencies: ...

When running "dpkg-buildpackage" ?

Lg
Roman

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Postby esprit » Tue Dec 19, 2006 1:08 pm

arj wrote:
esprit wrote:Just a question : why does not make this package depend on libcommoncpp ?

Some month ago, I ask a Debian packager if he could package mmsv2, and after he had seen that commoncpp was include, he said he would not do it, that was too dirty for a Debian packaging... :(

I fear that Debian or Ubuntu packager won't accept this package until this kind of thing is not adressed (same thing for libavcodec I think).


Making it depend on libcommoncpp2 would be a good idea.

I can easily create tar.gz without these. It's just that it's much easier for someone installing from source if these are included. Especially with libavcodec. Their API and release schedule is a nightmare to support.

I can understand the problem :lol:

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

Postby acmelabs » Tue Dec 19, 2006 1:14 pm

Hi,
I've written a small script, that moves away all original MMS files, so a Debian-Package test can be performed on your live-system. If test is done. You can move back your original files back on its original location. The old one will be deleted if available!

Warning. It's working for me. Ensure to ajust the file-locations for your system. If not...
    it could cause 3rd world war!!
mv-mms.sh
    Start it without parameters, to get help

    Code: Select all

    #!/bin/bash
    #
    # Andreas Saur. 2006-12-19
    #
    # Script saves or restores all mms directories
    #

    if [[ "$1" == ""  || "$1" == "-h" ]]; then
            echo "Usage: -[s|r|h]"
            echo "       -s  save (move mms dirs to \"*.orig\""
            echo "       -r  restore (move mms dirs to its original place"
            echo "       -h  shows this"
    fi
    if [ "$1" == "-s" ]; then
            if [[ -d "/etc/mms.orig" ]]; then
                    echo "You cannot save your MMS-directories! A original copy already exist! .. exiting."
                    exit
            fi
            echo "save invoked..."
            mv /usr/local/share/mms /usr/local/share/mms.orig
            mv /var/lib/mms /var/lib/mms.orig
            mv /etc/mms /etc/mms.orig
            echo "...saved."

    fi
    if [ "$1" == "-r" ]; then
            echo "restore invoked..."
            echo "Warning: the original MMS-directories will be deleted! Are you sure [Yes|no]no?"
            read YES
            if [[ "$YES" != "Yes" ]]; then
                    echo "assuming \'no\'... exiting."
                    exit
            fi
            if [[ ! -d "/etc/mms.orig" ]]; then
                    echo "Exiting...reason: /etc/mms.orig does not exist. It\'s likely, You confused the restore process."
                    exit
            fi
            if [ "$YES" == "Yes" ]; then
                    echo "Removing all MMS-directories!"
                    rm -rf /usr/local/share/mms
                    rm -rf /var/lib/mms
                    rm -rf /etc/mms
                    echo "Removed!"
                    mv /usr/local/share/mms.orig /usr/local/share/mms
                    mv /var/lib/mms.orig /var/lib/mms
                    mv /etc/mms.orig /etc/mms
                    echo "...restored."
            fi
    fi


Regards,

Andreas

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

Postby acmelabs » Tue Dec 19, 2006 1:35 pm

I've built the package again.
No, I didn't change anything. Result remain the same as before.

Here are the last lines:

Code: Select all

dpkg-buildpackage -rfakeroot -b
.
. bla
.
 Installation complete!

 have fun :)
make[1]: Verlasse Verzeichnis '/home/acme/mms-deb/deb/mms-1.0.8'
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install
dh_installmenu
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: baue Paket „mms“ in „../mms_1.0.8-3_i386.deb“.
tar: -: file name read contains nul character
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
 signfile mms_1.0.8-3_i386.changes
gpg: »Roman Müllenschläder <muellenschlaeder@prodeia.de>« übersprungen: Geheimer Schlüssel ist nicht vorhanden
gpg: [stdin]: clearsign failed: Geheimer Schlüssel ist nicht vorhanden

dpkg-buildpackage: binary only upload (no source included)
(WARNING: Failed to sign .changes file)

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

Postby Uatschitchun » Tue Dec 19, 2006 2:36 pm

acmelabs wrote:I've written a small script, that moves away all original MMS files, so a Debian-Package test can be performed on your live-system.

Nice!

Once running the deb, it should (don't know if it does right now ;) ask before overwrite configs ...

LG
Roman

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

New Version

Postby Uatschitchun » Tue Dec 19, 2006 2:37 pm

1.0.8.1-4 is up ...

Here's the changelog:
mms (1.0.8-4) edgy; urgency=low

* Changed over to dpatch
* Changed binary mms_icon.png to uuencoded patch in 01_mms-icon.dpatch
* Moved hard changes of config into 02_config-changes-alsaplayer.dpatch
* Changed debian/rules to work with dpatch
* Added dpatch to Build-Depends
* Changed configure to hard set architecture to i386
* Update description in control
* [TODO] Update debian/copyright
* Changed names to 'My Media System'


Lg
Roman

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

Re: New Version

Postby acmelabs » Tue Dec 19, 2006 3:25 pm

Hi,
1.0.8-4 behaves like the one I've built myself.
Read the lines carefully, and see "ll /etc/mms" and the part with the "/usr/local/share/mms". If I provide the one which I've saved away before, it works!!. So there is still something wrong for me here.

Code: Select all

root@vulcan:/home/acme/mms-deb/deb# mms
Config: Öffne Konfigurationsdatei /etc/mms/config
CONFIG: Konfigurationsdatei nicht gefunden /etc/mms/config
Nutze /etc/mms/ als Konfigurationsverzeichnis
MMS: DVB und DXR3 Ausgabe unterstützt nur die Auflösung 720x540 (4:3) oder 720x405 (16:9)
root@vulcan:/home/acme/mms-deb/deb# ll /etc/mms
insgesamt 8
drwxrwxrwx 2 root root 4096 2006-12-19 15:14 themes
drwxrwxrwx 2 root root 4096 2006-12-19 15:14 playlists
root@vulcan:/home/acme/mms-deb/deb# dpkg -r mms
(Lese Datenbank ... 111591 Dateien und Verzeichnisse sind derzeit installiert.)
Entferne mms ...
root@vulcan:/home/acme/mms-deb/deb# dpkg -i mms_1.0.8-4_i386.deb
Wähle vormals abgewähltes Paket mms.
(Lese Datenbank ... 111444 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke mms (aus mms_1.0.8-4_i386.deb) ...
Richte mms ein (1.0.8-4) ...

root@vulcan:/home/acme/mms-deb/deb# dpkg -l | grep mms
ii  mms                                        1.0.8-4                              My Media System
root@vulcan:/home/acme/mms-deb/deb# cd /etc
root@vulcan:/etc# rm -rf mms
root@vulcan:/etc# cp -a mms.orig/ mms
root@vulcan:/etc# mms
Config: Öffne Konfigurationsdatei /etc/mms/config
Nutze /etc/mms/ als Konfigurationsverzeichnis
THEME: Fehler beim Öffnen des Skins /usr/local/share/mms/themes/standard/theme.conf
root@vulcan:/etc# ll /usr/local/share/mms/themes/standard/theme.conf
ls: /usr/local/share/mms/themes/standard/theme.conf: No such file or directory
root@vulcan:/etc# cp -a /usr/local/share/mms.orig/ /usr/local/share/mms
root@vulcan:/etc# mms


Thanks,

Andreas

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

Re: New Version

Postby acmelabs » Tue Dec 19, 2006 4:34 pm

With friendly support by Roman, I've finnaly manage to get a working MMS installation!
COOL! :D

:idea: It was an "dpkg -P", and afterwards an "rm -rf /usr/share/mms". I was deleting the wrong directory "/usr/local/share/mms". Shame on me!

Thanks for your patience!

Andreas

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

Postby Uatschitchun » Tue Dec 19, 2006 4:43 pm

houston, we've got a problem ;)

/etc and /usr/share are, per definitionem, read-only ... so we have two possibilities:

1.) Change Makefile and hard set paths in the source to reflect this correctly
dynamic files should rest under /var/lib

2.) Split up the files at installation of the deb correctly /etc/mms, /usr/share, /var/lib) and link everything what is dynamicaly written into /etc/mms and /usr/share to reflect mms' needs

Which one would you prefer?

Or do we have no hard-paths in the source and we only have to change te makefile?

Second problem:
If libavcodec is staticaly linked it should be ok to leave it inside ... is it?

Lg
Roman

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

Postby acmelabs » Tue Dec 19, 2006 5:12 pm

I'm not into it, but you are:
Question
    What would be the cleanest/conformable way to create a debian-package?

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

Postby Uatschitchun » Tue Dec 19, 2006 5:22 pm

The most comfortable way for the deb would be if the source respects these standards ;)

Lg
Roman

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

New Version

Postby Uatschitchun » Tue Dec 19, 2006 5:46 pm

New Version is online: 1.0.8.1-5

Changelog:
mms (1.0.8-5) edgy; urgency=low

* [TODO] manpage
* [TODO] use /var/lib/vdr instead of /etc/mms and link files
(cause of policies - cop)
* [Fixed] change mms_icon from png to xpm (cop)
* [Fixed] resize mms_icon.xpm to 32x32 (cop)
* [Fixed] mms.menu: section 'Multimedia' -> 'Sound' (cop)
* [Fixed] control: extended-description-line was too long (cop)
* [Fixed] control: Section was not set, now set to graphics (cop)
* [Fixed] control: Removed duplicate 'libsdl1.2debian' and 'libtag1c2a' dependency (cop)


Lg
Roman


Return to “announcements”

Who is online

Users browsing this forum: No registered users and 1 guest