From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RGrCc-0002rW-KW for openembedded-core@lists.openembedded.org; Thu, 20 Oct 2011 13:54:27 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p9KBmVoL022181 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 20 Oct 2011 04:48:31 -0700 (PDT) Received: from [128.224.162.146] (128.224.162.146) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.1.255.0; Thu, 20 Oct 2011 04:48:31 -0700 Message-ID: <4EA00A17.6090805@windriver.com> Date: Thu, 20 Oct 2011 19:46:31 +0800 From: Xiaofeng Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: Saul Wold References: <4E9D103B.10506@intel.com> <4E9D123F.6090102@windriver.com> <4E9EA6E7.9000409@windriver.com> <4E9F5AC2.9080905@intel.com> In-Reply-To: <4E9F5AC2.9080905@intel.com> X-Originating-IP: [128.224.162.146] Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH 1/2] qmmp: update to 0.5.2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2011 11:54:27 -0000 Content-Type: multipart/alternative; boundary="------------060807030400090107010808" --------------060807030400090107010808 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.windriver.com id p9KBmVoL022181 On 2011=E5=B9=B410=E6=9C=8820=E6=97=A5 07:18, Saul Wold wrote: > On 10/19/2011 03:31 AM, Xiaofeng Yan wrote: >> On 2011=E5=B9=B410=E6=9C=8818=E6=97=A5 13:44, Xiaofeng Yan wrote: >>> On 2011=E5=B9=B410=E6=9C=8818=E6=97=A5 13:35, Saul Wold wrote: >>>> On 10/17/2011 10:21 PM, Xiaofeng Yan wrote: >>>>> From: Xiaofeng Yan >>>>> >>>>> The new version of qmmp can run on core-image-sato by test. >>>>> $qmmp *.mp3 >>>>> >>>>> Signed-off-by: Xiaofeng Yan >>>>> --- >>>>> meta/recipes-qt/qt-apps/qmmp_0.5.2.bb | 49 >>>>> +++++++++++++++++++++++++++++++++ >>>>> 1 files changed, 49 insertions(+), 0 deletions(-) >>>>> create mode 100644 meta/recipes-qt/qt-apps/qmmp_0.5.2.bb >>>>> >>>>> diff --git a/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb >>>>> b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb >>>>> new file mode 100644 >>>>> index 0000000..f31409b >>>>> --- /dev/null >>>>> +++ b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb >>>>> @@ -0,0 +1,49 @@ >>>>> +dESCRIPTION =3D "Qmmp (Qt-based Multimedia Player) is an >>>>> audio-player, written with help of Qt library" >>>>> +HOMEPAGE =3D "http://qmmp.ylsoftware.com" >>>>> +LICENSE =3D "GPLv2" >>>>> +LIC_FILES_CHKSUM =3D >>>>> "file://COPYING;md5=3D393a5ca445f6965873eca0259a17f833" >>>>> +SECTION =3D "multimedia" >>>>> + >>>>> +PR =3D "r3" >>>>> + >>>>> +PROVIDES =3D "qmmp" >>>>> +DEPENDS =3D "qt4-x11-free taglib libmad libvorbis libogg alsa-lib" >>>>> +RDEPENDS_${PN} +=3D "taglib alsa-lib libmad curl" >>>>> + >>>>> +SRC_URI =3D "http://qmmp.ylsoftware.com/files/${BPN}-${PV}.tar.bz2= " >>>>> + >>>>> +SRC_URI[md5sum] =3D "20852f3cce3471bfc5affa9b2e947dc6" >>>>> +SRC_URI[sha256sum] =3D >>>>> "6391dec020d2a381d7f4b7890fae6c49eadf88b3c9aef571fe3c5e96140822ec" >>>>> + >>>>> + >>>>> +PARALLEL_MAKE =3D "" >>>>> + >>>>> +inherit qmake2 cmake >>>>> + >>>>> +export EXTRA_OECMAKE =3D "-DQT_QMAKE_EXECUTABLE=3D${OE_QMAKE_QMAKE= } \ >>>>> + -DQT_LRELEASE_EXECUTABLE=3D${OE_QMAKE_LRELEASE} \ >>>>> + -DQT_MOC_EXECUTABLE=3D${OE_QMAKE_MOC} \ >>>>> + -DQT_UIC_EXECUTABLE=3D${OE_QMAKE_UIC} \ >>>>> + -DQT_RCC_EXECUTABLE=3D${OE_QMAKE_RCC} \ >>>>> + -DQT_LIBRARY_DIR=3D${OE_QMAKE_LIBDIR_QT} \ >>>>> + -DQT_HEADERS_DIR=3D${OE_QMAKE_INCDIR_QT} \ >>>>> + -DQT_QTCORE_INCLUDE_DIR=3D${OE_QMAKE_INCDIR_QT}/QtCore \ >>>>> + " >>>>> + >>>>> +FILES_${PN} =3D+ "\ >>>>> + ${libdir}/qmmp/*/*.so \ >>>>> + ${datadir}/icons/* \ >>>>> + ${datadir}/qmmp/images/* \ >>>>> + ${datadir}/applications/qmmp.desktop \ >>>>> + " >>>>> + >>>> Xiaofeng, >>>> >>>> I was looking into this also, I think it would be better to split al= l >>>> the various plugins into separate packages using=20 >>>> do_split_packages(), in >>>> the packages.bbclass. >>>> >>>> I started with this code: >>>>> PACKAGES_DYNAMIC =3D "qmmp-plugin-*" >>>>> >>>>> python populate_packages_prepend () { >>>>> qmmp_libdir =3D bb.data.expand('${libdir}/qmmp', d) >>>>> >>>>> do_split_packages(d, qmmp_libdir, '^(.*)/(.*)\.so$', >>>>> 'qmmp-plugin-%s-%s', 'Qmmp %s Plugin for %s', extra_depends=3D'') >>>>> } >>>> >>>> But have not completed it yet, if you have time to investigate >>>> further and complete this correctly, there might be a problem with >>>> using multiple Regular expressions in the do_split_packages code, bu= t >>>> I have not fully debugged this yet. >>>> >>>> Please let me know if you can complete this task. >>>> >> Hi saul, >> >> The following is my modification to qmmp_0.5.2.bb. Please review it. >> I want to get a reply about how to ship files in ${datadir} for qmmp. = I >> shipped them to FILES_${PN} because qmmp need these files when startin= g >> up. Do you think that they should be packaged like qmmp-plugin-* ? >> >> Please give me your suggestion and I will modify this file. >> >> >> PACKAGES_DYNAMIC +=3D "qmmp-plugin-*" >> >> >> python populate_packages_prepend () { >> qmmp_libdir =3D bb.data.expand('${libdir}/qmmp', d) >> do_split_packages(d, qmmp_libdir, '^lib(.*)\.so$', >> 'qmmp-plugin-%s', 'Qmmp %s Plugin for', recursive=3DTrue,extra_depends= =3D'') >> } >> > Ah, I see you added the recursive flag, I was trying to capture the=20 > plugin group (Input, Ouput, Effect, ...) in the package name incase=20 > there was name conflict, also to match the mad and vorbis naming below. > > If using multiple RE expressions in the re match does not work, then=20 > we should make do_split_package for each grouping and name them correct= ly > qmmp-plugin-- with the Description: Qmmp =20 > plugin for %s" > Hi Saul, I find .debug can't be packaged to rpm package because it is invisible=20 directory. In current OE-core .debug was shipped to FILES_${PN}-dbg, for=20 example , gtk+ ,qt4-x11-free If we want to split up .debug/* to single package, we can rename .debug=20 to debug to make this directory visible, then debug directory can be=20 split up to single package. Please review the following two mode. _Mode 1: Ship .debug to FILES_${PN}-dbg_ PACKAGES_DYNAMIC =3D "qmmp-plugin-* " python populate_packages_prepend () { import os qmmp_libdir =3D bb.data.expand('${libdir}/qmmp', d) gd =3D bb.data.expand('${D}/${libdir}/qmmp', d) plug_dirs =3D os.listdir(gd) /# for makeing do_split_package for each grouping and name them correctl= y # qmmp-plugin-- with the Description: Qmmp =20 plugin for %s" # I use the following method./ for plug_dir in plug_dirs: g_plug_dir =3D os.path.join(qmmp_libdir,plug_dir) do_split_packages(d, g_plug_dir, '^lib(.*)\.so$',=20 'qmmp-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir + 'plugin for %s') } /# if I don't point files to ship file to ${PN}, then FILE_${PN} will=20 get files in usr/lib/qmmp and qmmp-plug-* will not get files. / FILES_${PN} =3D "\ ${bindir}/qmmp \ ${libdir}/lib*${SOLIBS} \ ${datadir}/icons/* \ ${datadir}/qmmp/images/* \ ${datadir}/applications/* \ " FILES_${PN}-dbg +=3D "\ ${libdir}/qmmp/*/.debug/* \ " =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D _ Mode 2: Split up .debug to sub-packages_ PACKAGES_DYNAMIC =3D "qmmp-plugin-* qmmp-debug-plugin-*" python populate_packages_prepend () { import os qmmp_libdir =3D bb.data.expand('${libdir}/qmmp', d) qmmp_pkgd =3D bb.data.expand('${WORKDIR}/package/${libdir}/qmmp'= , d) gd =3D bb.data.expand('${D}/${libdir}/qmmp', d) plug_dirs =3D os.listdir(gd) for plug_dir in plug_dirs: /#rename .debug to debug/ if os.path.exists( qmmp_pkgd + '/' + plug_dir +=20 '/.debug'): os.rename(qmmp_pkgd + '/' + plug_dir +=20 '/.debug',qmmp_pkgd + '/' + plug_dir + '/debug') g_plug_dir =3D os.path.join(qmmp_libdir,plug_dir) do_split_packages(d, g_plug_dir, '^lib(.*)\.so$',=20 'qmmp-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir + 'plugin for %s') /#split up .debug to sub-packages/ g_plug_debug_dir =3D os.path.join(g_plug_dir,'debug') do_split_packages(d, g_plug_debug_dir, '^lib(.*)\.so$',=20 'qmmp-debug-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir + 'plugin=20 debug for %s') } / # if I don't point files to ship file to ${PN}, then FILE_${PN} will get=20 files in usr/lib/qmmp and qmmp-plug-* will not get files./ /I check gtk+=20 and qt4-x11-free and find that they adopt the following method without=20 using default mode./ FILES_${PN} =3D "\ ${bindir}/qmmp \ ${libdir}/lib*${SOLIBS} \ ${datadir}/icons/* \ ${datadir}/qmmp/images/* \ ${datadir}/applications/* \ " Do you have any comment for above code. If have, I will continue=20 looking into modification method according to your suggestion. Do you=20 think we should select which method? Thanks Yan >> FILES_${PN} =3D "\ > I think this should be a +=3D >> ${bindir}/qmmp \ >> ${libdir}/lib*${SOLIBS} \ > These 2 should go away (part of default FILES_${PN} >> ${datadir}/icons/* \ >> ${datadir}/qmmp/images/* \ >> ${datadir}/applications/* \ >> " > There are added via the +=3D above. > >> >> FILES_${PN}-dbg +=3D "\ >> ${libdir}/qmmp/*/.debug/* \ >> " >> > These should be picked up by the do_split_package above I believe > >> PACKAGES +=3D "${PN}-plugin-input-mad ${PN}-plugin-input-vorbis " >> >> FILES_${PN}-plugin-input-mad =3D "${libdir}/qmmp/Input/libmad.so" >> RDEPENDS_${PN}-plugin-input-mad =3D "libmad" >> FILES_${PN}-plugin-input-vorbis =3D "${libdir}/qmmp/Input/libvorbis.so= " >> RDEPENDS_${PN}-plugin-input-vorbis =3D "libvorbis libogg" >> > Ideally the above PACKAGES and FILES_ go away and the default actions=20 > take over. > > Thanks for looking into this. > > Sau! > >> >> >> Thanks >> Yan >>> Thanks for your reply and I will investigate it according to your >>> suggestion. >>> >>> Thanks >>> Yan >>>> Thanks >>>> Sau! >>>> >>>> >>>>> +FILES_${PN}-dbg +=3D "\ >>>>> + ${libdir}/qmmp/*/.debug/* \ >>>>> + " >>>>> + >>>>> +PACKAGES +=3D "${PN}-plugin-input-mad ${PN}-plugin-input-vorbis" >>>>> + >>>>> +FILES_${PN}-plugin-input-mad =3D "${libdir}/qmmp/Input/libmad.so" >>>>> +RDEPENDS_${PN}-plugin-input-mad =3D "libmad" >>>>> +FILES_${PN}-plugin-input-vorbis =3D=20 >>>>> "${libdir}/qmmp/Input/libvorbis.so" >>>>> +RDEPENDS_${PN}-plugin-input-vorbis =3D "libvorbis libogg" >>>> >>>> >>> >>> >>> _______________________________________________ >>> Openembedded-core mailing list >>> Openembedded-core@lists.openembedded.org >>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core >> >> >> >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core > > --------------060807030400090107010808 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.windriver.com id p9KBmVoL022181 On 2011=E5=B9=B410=E6=9C=8820=E6=97=A5 07:18, Saul Wold wrote:
On 10/19/2011 03:31 AM, Xiaofeng Yan wrote:
On 2011=E5=B9=B410=E6=9C=8818=E6=97=A5 13= :44, Xiaofeng Yan wrote:
On 2011=E5=B9=B410=E6=9C=8818=E6=97=A5 = 13:35, Saul Wold wrote:
On 10/17/2011 10:21 PM, Xiaofeng Yan wrote:
From: Xiaofeng Yan<xiaofeng.yan@windriver.com>

The new version of qmmp can run on core-image-sato by test.
$qmmp *.mp3

Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
---
meta/recipes-qt/qt-apps/qmmp_0.5.2.bb | 49
+++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-qt/qt-apps/qmmp_0.5.2.bb

diff --git a/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb
b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb
new file mode 100644
index 0000000..f31409b
--- /dev/null
+++ b/meta/recipes-qt/qt-apps/qmmp_0.5.2.bb
@@ -0,0 +1,49 @@
+dESCRIPTION =3D "Qmmp (Qt-based Multimedia Player) is an
audio-player, written with help of Qt library"
+HOMEPAGE =3D "http://qmmp.ylsoftware.com"
+LICENSE =3D "GPLv2"
+LIC_FILES_CHKSUM =3D
"file://COPYING;md5=3D393a5ca445f6= 965873eca0259a17f833"
+SECTION =3D "multimedia"
+
+PR =3D "r3"
+
+PROVIDES =3D "qmmp"
+DEPENDS =3D "qt4-x11-free taglib libmad libvorbis libogg alsa-lib"
+RDEPENDS_${PN} +=3D "taglib alsa-lib libmad curl"
+
+SRC_URI =3D "http://qmmp.ylsoftware.com/files/= ${BPN}-${PV}.tar.bz2"
+
+SRC_URI[md5sum] =3D "20852f3cce3471bfc5affa9b2e947dc6"
+SRC_URI[sha256sum] =3D
"6391dec020d2a381d7f4b7890fae6c49eadf88b3c9aef571fe3c5e96140822ec"
+
+
+PARALLEL_MAKE =3D ""
+
+inherit qmake2 cmake
+
+export EXTRA_OECMAKE =3D "-DQT_QMAKE_EXECUTABLE=3D${OE_QMAKE_QMAKE} \
+ -DQT_LRELEASE_EXECUTABLE=3D${OE_QMAKE_LRELEASE} \
+ -DQT_MOC_EXECUTABLE=3D${OE_QMAKE_MOC} \
+ -DQT_UIC_EXECUTABLE=3D${OE_QMAKE_UIC} \
+ -DQT_RCC_EXECUTABLE=3D${OE_QMAKE_RCC} \
+ -DQT_LIBRARY_DIR=3D${OE_QMAKE_LIBDIR_QT} \
+ -DQT_HEADERS_DIR=3D${OE_QMAKE_INCDIR_QT} \
+ -DQT_QTCORE_INCLUDE_DIR=3D${OE_QMAKE_INCDIR_QT}/QtCore \
+ "
+
+FILES_${PN} =3D+ "\
+ ${libdir}/qmmp/*/*.so \
+ ${datadir}/icons/* \
+ ${datadir}/qmmp/images/* \
+ ${datadir}/applications/qmmp.desktop \
+ "
+
Xiaofeng,

I was looking into this also, I think it would be better to split all
the various plugins into separate packages using do_split_packages(), in
the packages.bbclass.

I started with this code:
PACKAGES_DYNAMIC =3D "qmmp-plugin-*= "

python populate_packages_prepend () {
qmmp_libdir =3D bb.data.expand('${libdir}/qmmp', d)

do_split_packages(d, qmmp_libdir, '^(.*)/(.*)\.so$',
'qmmp-plugin-%s-%s', 'Qmmp %s Plugin for %s', extra_depends=3D'')
}

But have not completed it yet, if you have time to investigate
further and complete this correctly, there might be a problem with
using multiple Regular expressions in the do_split_packages code, but
I have not fully debugged this yet.

Please let me know if you can complete this task.

Hi saul,

The following is my modification to qmmp_0.5.2.bb. Please review it.
I want to get a reply about how to ship files in ${datadir} for qmmp. I
shipped them to FILES_${PN} because qmmp need these files when starting
up. Do you think that they should be packaged like qmmp-plugin-* ?

Please give me your suggestion and I will modify this file.


PACKAGES_DYNAMIC +=3D "qmmp-plugin-*"


python populate_packages_prepend () {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qmmp_libdir =3D = bb.data.expand('${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 do_split_package= s(d, qmmp_libdir, '^lib(.*)\.so$',
'qmmp-plugin-%s', 'Qmmp %s Plugin for', recursive=3DTrue,extra_depends=3D'')
}

Ah, I see you added the recursive flag, I was trying to capture the plugin group (Input, Ouput, Effect, ...) in the package name incase there was name conflict, also to match the mad and vorbis naming below.

If using multiple RE expressions in the re match does not work, then we should make do_split_package for each grouping and name them correctly
qmmp-plugin-<group>-<library>=C2=A0 with the Descriptio= n: Qmmp <Group> plugin for %s"


Hi Saul,

I find .debug can't be packaged to rpm package because it is invisible directory. In current OE-core .debug was shipped to FILES_${PN}-dbg, for example , gtk+ ,qt4-x11-free
If we want to split up .debug/* to single package, we can rename .debug to debug to make this directory visible, then debug directory can be split up to single package.
Please review the following two mode.

Mode 1: Ship=C2=A0 .debug to =C2=A0 FILES_= ${PN}-dbg

PACKAGES_DYNAMIC =3D "qmmp-plugin-* "


python populate_packages_prepend () {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 import os
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qmmp_libdir =3D bb.data.ex= pand('${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gd =3D bb.data.expand('${D= }/${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plug_dirs =3D os.listdir(g= d)
# for makeing=C2=A0 do_split_package for e= ach grouping and name them correctly
# qmmp-plugin-<group>-<library>=C2=A0 with the Description: Qmmp <Group> plugin for %s"
# I use the following method.

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for plug_dir in plug_dirs:=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 g_plug_dir =3D os.path.join(qmmp_libdir,plug_dir) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 do_split_packages(d, g_plug_dir, '^lib(.*)\.so$', 'qmmp-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir=C2=A0 + 'plugin = for %s')



}

# if I don't point files to ship file to ${PN}, then FILE_${PN} will get files in usr/lib/qmmp and qmmp-plug-* will not get files.
FILES_${PN} =3D "\
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${bindir}/qmmp \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${libdir}/lib*${SOLIBS} \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/icons/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/qmmp/images/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/applications/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 "

FILES_${PN}-dbg +=3D "\
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${libdir}/qmmp/*/.debug/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 "
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

Mode 2: Split up=C2=A0 .debug to sub-packages


PACKAGES_DYNAMIC =3D "qmmp-plugin-* qmmp-debug-plugin-*"


python populate_packages_prepend () {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 import os
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qmmp_libdir =3D bb.data.ex= pand('${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 qmmp_pkgd =3D bb.data.expand('${WORKDIR}/package/${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gd =3D bb.data.expand('${D= }/${libdir}/qmmp', d)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plug_dirs =3D os.listdir(g= d)

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for plug_dir in plug_dirs:=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 #rename .debug to debug<= /font>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 if os.path.exists( qmmp_pkgd + '/'=C2=A0 + plug_dir= + '/.debug'):
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 os.= rename(qmmp_pkgd + '/' + plug_dir + '/.debug',qmmp_pkgd + '/' + plug_dir + '/debug')
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 g_plug_dir =3D os.path.join(qmmp_libdir,plug_dir) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 do_split_packages(d, g_plug_dir, '^lib(.*)\.so$', 'qmmp-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir=C2=A0 + 'plugin = for %s')
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 #split up .debug to sub-packages
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 g_plug_debug_dir =3D os.path.join(g_plug_dir,'debug')
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 do_split_packages(d, g_plug_debug_dir, '^lib(.*)\.so$', 'qmmp-debug-plugin-' + plug_dir + '-%s', 'Qmmp' + plug_dir=C2=A0 + 'plugin debug for %s')
}

# if I don't point files to ship file to ${PN}, then FILE_${PN} will get files in usr/lib/qmmp and qmmp-plug-* will not get files.
=C2=A0 I check gtk+ = and qt4-x11-free and find that they adopt the following method without using default mode.
FILES_${PN} =3D "\
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${bindir}/qmmp \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${libdir}/lib*${SOLIBS} \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/icons/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/qmmp/images/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ${datadir}/applications/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 "

Do you have any comment for above code.=C2=A0 If have, I will continu= e looking into modification method according to your suggestion. Do you think we should select which method?=C2=A0

Thanks
Yan

FILES_${PN} =3D "\
I think this should be a +=3D
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${bindir}/qmmp \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${libdir}/lib*${SOLIBS} \
These 2 should go away (part of default FILES_${PN}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${datadir}/icons/*= \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${datadir}/qmmp/images/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${datadir}/applications/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "
There are added via the +=3D above.


FILES_${PN}-dbg +=3D "\
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ${libdir}/qmmp/*/.debug/* \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 "

These should be picked up by the do_split_package above I believe

PACKAGES +=3D "${PN}-plugin-input-mad ${PN}-plugin-input-vorbis "

FILES_${PN}-plugin-input-mad =3D "${libdir}/qmmp/Input/libmad.so"
RDEPENDS_${PN}-plugin-input-mad =3D "libmad"
FILES_${PN}-plugin-input-vorbis =3D "${libdir}/qmmp/Input/libvorbis.so"
RDEPENDS_${PN}-plugin-input-vorbis =3D "libvorbis libogg"

Ideally the above PACKAGES and FILES_ go away and the default actions take over.

Thanks for looking into this.

Sau!



Thanks
Yan
Thanks for your reply and I will investigate it according to your
suggestion.

Thanks
Yan
Thanks
Sau!


+FILES_${PN}-dbg +=3D "\
+ ${libdir}/qmmp/*/.debug/* \
+ "
+
+PACKAGES +=3D "${PN}-plugin-input-mad ${PN}-plugin-input-vorbis"
+
+FILES_${PN}-plugin-input-mad =3D "${libdir}/qmmp/Input/libmad.so"
+RDEPENDS_${PN}-plugin-input-mad =3D "libmad"
+FILES_${PN}-plugin-input-vorbis =3D "${libdir}/qmmp/Input/libvorbis.so"
+RDEPENDS_${PN}-plugin-input-vorbis =3D "libvorbis libogg"




_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org<= /a>
http://lists.linuxtogo.org/cgi-b= in/mailman/listinfo/openembedded-core



_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-b= in/mailman/listinfo/openembedded-core



--------------060807030400090107010808--