Patchwork [meta-oe,2/5] proj: Use 'lib_package' class and add data files

login
register
mail settings
Submitter Otavio Salvador
Date Dec. 3, 2013, 9:44 p.m.
Message ID <1386107047-27409-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/62749/
State Accepted, archived
Headers show

Comments

Otavio Salvador - Dec. 3, 2013, 9:44 p.m.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta-oe/recipes-navigation/proj/proj_4.8.0.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Koen Kooi - Dec. 4, 2013, 8:20 a.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Otavio Salvador schreef op 03-12-13 22:44:
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> --- 
> meta-oe/recipes-navigation/proj/proj_4.8.0.bb | 5 +++-- 1 file changed, 3
> insertions(+), 2 deletions(-)
> 
> diff --git a/meta-oe/recipes-navigation/proj/proj_4.8.0.bb
> b/meta-oe/recipes-navigation/proj/proj_4.8.0.bb index 6784dde..b4bfaf4
> 100644 --- a/meta-oe/recipes-navigation/proj/proj_4.8.0.bb +++
> b/meta-oe/recipes-navigation/proj/proj_4.8.0.bb @@ -1,4 +1,4 @@ 
> -DESCRIPTION = "PROJ.4 - Cartographic Projections Library" +SUMMARY =
> "PROJ.4 - Cartographic Projections library" HOMEPAGE =
> "http://trac.osgeo.org/proj/" SECTION = "libs"
> 
> @@ -9,5 +9,6 @@ SRC_URI =
> "http://download.osgeo.org/proj/proj-${PV}.tar.gz" SRC_URI[md5sum] =
> "d815838c92a29179298c126effbb1537" SRC_URI[sha256sum] =
> "2db2dbf0fece8d9880679154e0d6d1ce7c694dd8e08b4d091028093d87a9d1b5"
> 
> -inherit autotools pkgconfig +inherit autotools pkgconfig lib_package
> 
> +FILES_${PN} += "${datadir}/proj"

Will this cause renaming of the output packages?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFSnuW6MkyGM64RGpERAphPAJ49M3CTR0Icv49TAhosWl2nL6KISgCglXzQ
7Vy2I/QcO4Atgu9fEjpHiO0=
=QS3a
-----END PGP SIGNATURE-----
Otavio Salvador - Dec. 4, 2013, 1:16 p.m.
Hello Koen,

On Wed, Dec 4, 2013 at 6:20 AM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> -inherit autotools pkgconfig +inherit autotools pkgconfig lib_package
>>
>> +FILES_${PN} += "${datadir}/proj"
>
> Will this cause renaming of the output packages?

It does:

tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-bin_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dbg_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-doc_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-staticdev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj0_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk

Do you want me to add a transitional package?
Koen Kooi - Dec. 4, 2013, 1:25 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Otavio Salvador schreef op 04-12-13 14:16:
> Hello Koen,
> 
> On Wed, Dec 4, 2013 at 6:20 AM, Koen Kooi <koen@dominion.thruhere.net>
> wrote:
>>> -inherit autotools pkgconfig +inherit autotools pkgconfig
>>> lib_package
>>> 
>>> +FILES_${PN} += "${datadir}/proj"
>> 
>> Will this cause renaming of the output packages?
> 
> It does:
> 
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-bin_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>
> 
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dbg_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>
> 
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-doc_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-staticdev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>
> 
tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj0_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
> 
> Do you want me to add a transitional package?

No, just being curious. I couldn't remember how it was before the change.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFSny1TMkyGM64RGpERAsZPAKC6GhnKc5CfxK+hh7cJuFEdSsOo2gCghpFP
rBECOkvYwO0pQqxD8Wlbw/c=
=0Fbr
-----END PGP SIGNATURE-----
Otavio Salvador - Dec. 4, 2013, 2:13 p.m.
On Wed, Dec 4, 2013 at 11:25 AM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Otavio Salvador schreef op 04-12-13 14:16:
>> Hello Koen,
>>
>> On Wed, Dec 4, 2013 at 6:20 AM, Koen Kooi <koen@dominion.thruhere.net>
>> wrote:
>>>> -inherit autotools pkgconfig +inherit autotools pkgconfig
>>>> lib_package
>>>>
>>>> +FILES_${PN} += "${datadir}/proj"
>>>
>>> Will this cause renaming of the output packages?
>>
>> It does:
>>
>> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-bin_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>>
>>
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dbg_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-dev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>>
>>
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-doc_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj-staticdev_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>>
>>
> tmp/deploy/ipk/cortexa9hf-vfp-neon/libproj0_4.8.0-r0.2_cortexa9hf-vfp-neon.ipk
>>
>> Do you want me to add a transitional package?
>
> No, just being curious. I couldn't remember how it was before the change.

It had all in proj, as the binaries were not split.

Patch

diff --git a/meta-oe/recipes-navigation/proj/proj_4.8.0.bb b/meta-oe/recipes-navigation/proj/proj_4.8.0.bb
index 6784dde..b4bfaf4 100644
--- a/meta-oe/recipes-navigation/proj/proj_4.8.0.bb
+++ b/meta-oe/recipes-navigation/proj/proj_4.8.0.bb
@@ -1,4 +1,4 @@ 
-DESCRIPTION = "PROJ.4 - Cartographic Projections Library"
+SUMMARY = "PROJ.4 - Cartographic Projections library"
 HOMEPAGE = "http://trac.osgeo.org/proj/"
 SECTION = "libs"
 
@@ -9,5 +9,6 @@  SRC_URI = "http://download.osgeo.org/proj/proj-${PV}.tar.gz"
 SRC_URI[md5sum] = "d815838c92a29179298c126effbb1537"
 SRC_URI[sha256sum] = "2db2dbf0fece8d9880679154e0d6d1ce7c694dd8e08b4d091028093d87a9d1b5"
 
-inherit autotools pkgconfig
+inherit autotools pkgconfig lib_package
 
+FILES_${PN} += "${datadir}/proj"