[SCM] Qt 4 Debian packaging branch, master, updated. debian/4.6.0-1-50-g3f30f86

Fathi Boudra fabo at alioth.debian.org
Sun Jan 31 21:41:06 UTC 2010


The following commit has been merged in the master branch:
commit 93298da97f3533955cca8ae09f94e8f9d9e774b5
Author: Fathi Boudra <fabo at debian.org>
Date:   Sun Jan 31 22:40:22 2010 +0100

    Fix Phonon update patch - 2nd try.
---
 debian/patches/97_update_phonon_4.3.80.diff |  329 ++-------------------------
 1 files changed, 17 insertions(+), 312 deletions(-)

diff --git a/debian/patches/97_update_phonon_4.3.80.diff b/debian/patches/97_update_phonon_4.3.80.diff
index 1c38214..5bfd1a4 100644
--- a/debian/patches/97_update_phonon_4.3.80.diff
+++ b/debian/patches/97_update_phonon_4.3.80.diff
@@ -1,7 +1,9 @@
 Description: update Qt Phonon from kdesupport Phonon 4.3.80.
-To create the following patch, use the following command excluding some patterns
+To create the patch, use the following command excluding some patterns
 (DESIGN cmake ds9 experimental mmf qt7 tests xine)
 $ diff -Nur -X phonon.exclude qt4-x11-4.6.1/src/3rdparty/phonon phonon-4.3.80
+Then adjust Phonon version in original phononnamespace.h from Qt (in kdesupport,
+phononnamespace.h is generated with cmake from phononnamespace.h.in)
 Forwarded: not-needed
 Author: Fathi Boudra <fabo at debian.org>
 
@@ -3877,319 +3879,22 @@ Author: Fathi Boudra <fabo at debian.org>
  # ifndef PHONON_BACKEND_VERSION_4_2
  #  define PHONON_BACKEND_VERSION_4_2
 --- a/src/3rdparty/phonon/phonon/phononnamespace.h
-+++ /dev/null
-@@ -1,311 +0,0 @@
--/*  This file is part of the KDE project
--    Copyright (C) 2005-2008 Matthias Kretz <kretz at kde.org>
--
--    This library is free software; you can redistribute it and/or
--    modify it under the terms of the GNU Lesser General Public
--    License as published by the Free Software Foundation; either
--    version 2.1 of the License, or (at your option) version 3, or any
--    later version accepted by the membership of KDE e.V. (or its
--    successor approved by the membership of KDE e.V.), Nokia Corporation 
--    (or its successors, if any) and the KDE Free Qt Foundation, which shall
--    act as a proxy defined in Section 6 of version 3 of the license.
--
--    This library is distributed in the hope that it will be useful,
--    but WITHOUT ANY WARRANTY; without even the implied warranty of
--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
--    Lesser General Public License for more details.
--
--    You should have received a copy of the GNU Lesser General Public 
--    License along with this library.  If not, see <http://www.gnu.org/licenses/>.
--
--*/
--
--#ifndef PHONONNAMESPACE_H
--#define PHONONNAMESPACE_H
--
--#include "phonon_export.h"
--
--#ifdef __QT_SYNCQT__
--// Tell syncqt to create a "Global" header here
--#pragma qt_class(Phonon::Global)
--#endif
--
--/**
-- * Helper macro that can be used like
-- * \code
-- * #if (PHONON_VERSION >= PHONON_VERSION_CHECK(4, 4, 0))
-- * \endcode
-- */
--#define PHONON_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
--
--/**
-- * PHONON_VERSION is (major << 16) + (minor << 8) + patch.
-- */
++++ b/src/3rdparty/phonon/phonon/phononnamespace.h
+@@ -41,12 +41,12 @@
+ /**
+  * PHONON_VERSION is (major << 16) + (minor << 8) + patch.
+  */
 -#define PHONON_VERSION PHONON_VERSION_CHECK(4, 3, 1)
--
--/**
-- * PHONON_VERSION_STR is "major.minor.patch". E.g. "4.2.1"
-- */
++#define PHONON_VERSION PHONON_VERSION_CHECK(4, 3, 80)
+ 
+ /**
+  * PHONON_VERSION_STR is "major.minor.patch". E.g. "4.2.1"
+  */
 -#define PHONON_VERSION_STR "4.3.1"
--
--QT_BEGIN_HEADER
--QT_BEGIN_NAMESPACE
--
--class QString;
--
--/**
-- * \brief The %KDE Multimedia classes
-- *
-- * In this Namespace you find the classes to access Multimedia functions for
-- * audio and video playback. Those classes are not dependent
-- * on any specific framework (like they were in pre KDE4 times) but rather use
-- * exchangeable backends to do the work.
-- *
-- * If you want to write a new backend take a look at \ref phonon_backend_development_page.
-- *
-- * \author Matthias Kretz <kretz at kde.org>
-- */
--namespace Phonon
--{
--    PHONON_EXPORT const char *phononVersion();
--
--    /**
--     * Enum to identify the media discs supported by MediaObject.
--     *
--     * \see MediaSource(Phonon::DiscType, const QString &deviceName)
--     */
--    enum DiscType {
--        /**
--         * No disc was selected. This is only useful as a return value from
--         * MediaSource::distType();
--         */
--        NoDisc = -1,
--        /**
--         * Identifies Audio CDs.
--         */
--        Cd = 0,
--        /**
--         * Identifies DVDs (not arbitrary data DVDs, only movie DVDs).
--         */
--        Dvd = 1,
--        /**
--         * Identifies Video CDs.
--         */
--        Vcd = 2
--    };
--
--    /**
--     * Provided as keys for \ref MediaObject::metaData for convenience, in addition to the strings defined in
--     * the Ogg Vorbis specification.
--     */
--    enum MetaData {
--        /**
--         * The artist generally considered responsible for the work. In popular
--         * music this is usually the performing band or singer. For classical
--         * music it would be the composer. For an audio book it would be the
--         * author of the original text.
--         */
--        ArtistMetaData,
--        /**
--         * The collection name to which this track belongs.
--         */
--        AlbumMetaData,
--        /**
--         * Track/Work name
--         */
--        TitleMetaData,
--        /**
--         * Date the track was recorded
--         */
--        DateMetaData,
--        /**
--         * A short text indication of music genre
--         */
--        GenreMetaData,
--        /**
--         * The track number of this piece if part of a specific larger
--         * collection or album
--         */
--        TracknumberMetaData,
--        /**
--         * A short text description of the contents
--         */
--        DescriptionMetaData,
--        MusicBrainzDiscIdMetaData
--    };
--
--    /**
--     * The state the media producing object is in at the moment.
--     *
--     * \see MediaObject
--     */
--    enum State
--    {
--        /**
--         * After construction it might take a while before the Player is
--         * ready to play(). Normally this doesn't happen for local
--         * files, but can happen for remote files where the asynchronous
--         * mimetype detection and prebuffering can take a while.
--         */
--        LoadingState,
--        /**
--         * The Player has a valid media file loaded and is ready for
--         * playing.
--         */
--        StoppedState,
--        /**
--         * The Player is playing a media file.
--         */
--        PlayingState,
--        /**
--         * The Player is waiting for data to be able to continue
--         * playing.
--         */
--        BufferingState,
--        /**
--         * The Player is currently paused.
--         */
--        PausedState,
--        /**
--         * An unrecoverable error occurred. The Object is unusable in this state.
--         */
--        ErrorState
--    };
--
--    /**
--     * Set's the category your program should be listed in in the mixer.
--     *
--     * A Jukebox will set this to Music, a VoIP program to Communication, a
--     * DVD player to video, and so on.
--     *
--     * \note These categories can also become useful for an application that
--     * controls the volumes automatically, like turning down the music when a call
--     * comes in, or turning down the notifications when the media player knows
--     * it's playing classical music.
--     *
--     * \see AudioOutput::setCategory
--     */
--    enum Category
--    {
--        /**
--         * Will make use of the default device.
--         */
--        NoCategory = -1,
--        /**
--         * If the sounds produced are notifications (bing, beep and such) you
--         * should use this category.
--         */
--        NotificationCategory = 0,
--        /**
--         * If your application is a music player (like a jukebox or media player
--         * playing an audio file).
--         */
--        MusicCategory = 1,
--        /**
--         * If the sound is the audio channel of a video.
--         */
--        VideoCategory = 2,
--        /**
--         * If your applications produces sounds from communication with somebody
--         * else (VoIP, voice chat).
--         */
--        CommunicationCategory = 3,
--        /**
--         * Sound produced by a computer game should go into this category.
--         */
--        GameCategory = 4,
--        /**
--         * Sounds produced for accessibility (e.g. Text-To-Speech)
--         */
--        AccessibilityCategory = 5,
--        /**
--         * \internal
--         * Holds the largest value of categories.
--         */
--        LastCategory = AccessibilityCategory
--    };
--
--    /**
--     * Tells your program how to recover from an error.
--     *
--     * \see MediaObject::errorType()
--     */
--    enum ErrorType {
--        /**
--         * No error. MediaObject::errorType() returns this if
--         * MediaObject::state() != Phonon::ErrorState.
--         */
--        NoError = 0,
--        /**
--         * Playback should work, and trying with another URL should work.
--         */
--        NormalError = 1,
--        /**
--         * Something important does not work. Your program cannot continue
--         * playback or capture or whatever it was trying to do
--         * without help from the user.
--         */
--        FatalError = 2
--    };
--
--    /**
--     * Returns a (translated) string to show to the user identifying the given
--     * Category.
--     */
--    PHONON_EXPORT QString categoryToString(Category c);
--
--    // TODO: naming
--    /*enum MediaStreamType {
--        Audio = 1,
--        Video = 2,
--        StillImage = 4,
--        Subtitle = 8,
--        AllMedia = 0xFFFFFFFF
--    };
--    Q_DECLARE_FLAGS(MediaStreamTypes, MediaStreamType)*/
--} // namespace Phonon
--//Q_DECLARE_OPERATORS_FOR_FLAGS(Phonon::MediaStreamTypes)
--
--QT_END_NAMESPACE
--
--//X class kdbgstream;
--//X #include <kdebug.h>
--//X /**
--//X  * Implements needed operator to use Phonon::State with kDebug
--//X  */
--//X inline PHONON_EXPORT kdbgstream &operator<<(kdbgstream  & stream, const Phonon::State state)
--//X {
--//X     switch(state)
--//X     {
--//X     case Phonon::ErrorState:
--//X         stream << "ErrorState";
--//X         break;
--//X     case Phonon::LoadingState:
--//X         stream << "LoadingState";
--//X         break;
--//X     case Phonon::StoppedState:
--//X         stream << "StoppedState";
--//X         break;
--//X     case Phonon::PlayingState:
--//X         stream << "PlayingState";
--//X         break;
--//X     case Phonon::BufferingState:
--//X         stream << "BufferingState";
--//X         break;
--//X     case Phonon::PausedState:
--//X         stream << "PausedState";
--//X         break;
--//X     }
--//X     return stream;
--//X }
--
--#include <QtCore/QMetaType>
--
--Q_DECLARE_METATYPE(Phonon::State)
--Q_DECLARE_METATYPE(Phonon::ErrorType)
--Q_DECLARE_METATYPE(Phonon::Category)
--
--QT_END_HEADER
--
--// vim: sw=4 ts=4 tw=80
--#endif // PHONONNAMESPACE_H
++#define PHONON_VERSION_STR "4.3.80"
+ 
+ QT_BEGIN_HEADER
+ QT_BEGIN_NAMESPACE
 --- /dev/null
 +++ b/src/3rdparty/phonon/phonon/pulsesupport.cpp
 @@ -0,0 +1,968 @@

-- 
Qt 4 Debian packaging



More information about the pkg-kde-commits mailing list