Skip to contentSkip to conversation

gvfs: Handle samba dependency based on GPLv3 license.

PATCH Superseded Noor, Ahsan 2 participants 3 messages Jun 17, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gvfs: Handle samba dependency based on GPLv3 license.

From: Noor <[email protected]>

* Samba is GPLv3. In GPLv3 free environment one was not able to build gvfs. Add PACKAGECONFIG for samba and enable is when GPLv3 is not present in INCOMPATIBLE_LICENSE.

---
 meta-gnome/recipes-gnome/gvfs/gvfs.inc      |    4 +---
 meta-gnome/recipes-gnome/gvfs/gvfs_1.8.2.bb |    7 ++++++-
 2 files changed, 7 insertions(+), 4 deletions(-)
meta-gnome/recipes-gnome/gvfs/gvfs.inc +1 -3
index 0e1c69c..ba52fe7 100644
@@ -10,9 +10,7 @@ SRC_URI[archive.md5sum] = "402f94b187b197b403d25c85caeb9562"
 SRC_URI[archive.sha256sum] = "0895ac8f6d416e1b15433b6b6b68eb119c6e8b04fdb66db665d684355ef89345"
 SRC_URI += "file://0001-gvfsfusedaemon.c-fix-glib-build.patch"
 
-EXTRA_OECONF = "--with-samba-includes=${STAGING_INCDIR} \
-                --with-samba-libs=${STAGING_LIBDIR} \
-                --with-archive-includes=${STAGING_INCDIR} \
+EXTRA_OECONF = "--with-archive-includes=${STAGING_INCDIR} \
                 --with-archive-libs=${STAGING_LIBDIR} \
 "
 
meta-gnome/recipes-gnome/gvfs/gvfs_1.8.2.bb +6 -1
index 7f86151..5274280 100644
@@ -1,6 +1,6 @@
 require gvfs.inc
 
-DEPENDS = "samba libsoup-2.4 gnome-keyring glib-2.0 fuse avahi fuse gconf libgphoto2"
+DEPENDS = "libsoup-2.4 gnome-keyring glib-2.0 fuse avahi fuse gconf libgphoto2"
 # optional: obexftp libcdio libimobiledevice 
 
 PR = "${INC_PR}.1"
@@ -21,3 +21,8 @@ FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${datadir}/gvfs/mounts/trash.moun
 
 RDEPENDS_${PN} = "gvfs-gdu-volume-monitor"
 RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh"
+
+PACKAGECONFIG = "${@base_contains('INCOMPATIBLE_LICENSE', 'GPLv3', '', 'samba', d)}"
+
+PACKAGECONFIG[samba] = "--enable-samba --with-samba-includes=${STAGING_INCDIR} \
+                        --with-samba-libs=${STAGING_LIBDIR}, --disable-samba, samba"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Ahsan

+PACKAGECONFIG = "${@base_contains('INCOMPATIBLE_LICENSE', 'GPLv3', '', 'samba', d)}" +

This needs to use ?= or ??= so that it can be overridden easily.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Thanks. I'll update it.

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Monday, June 17, 2013 2:58 PM
To: Ahsan, Noor
Cc: [email protected]
Subject: Re: [oe] [meta-gnome][PATCH] gvfs: Handle samba dependency based on GPLv3 license.

Quoted 2 lines · Ahsan

+PACKAGECONFIG = "${@base_contains('INCOMPATIBLE_LICENSE', 'GPLv3', '', 'samba', d)}" +

This needs to use ?= or ??= so that it can be overridden easily.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre