diff options
-rw-r--r-- | meta/classes/package_deb.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/package_rpm.bbclass | 3 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index d0befade20..a0a31bd0f6 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -116,7 +116,8 @@ python do_package_deb () { fields.append(["Architecture: %s\n", ['DPKG_ARCH']]) fields.append(["OE: %s\n", ['PN']]) fields.append(["PackageArch: %s\n", ['PACKAGE_ARCH']]) - fields.append(["Homepage: %s\n", ['HOMEPAGE']]) + if d.getVar('HOMEPAGE', True): + fields.append(["Homepage: %s\n", ['HOMEPAGE']]) # Package, Version, Maintainer, Description - mandatory # Section, Priority, Essential, Architecture, Source, Depends, Pre-Depends, Recommends, Suggests, Conflicts, Replaces, Provides - Optional diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 68c8580761..516ec4b3d2 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass @@ -95,7 +95,8 @@ python do_package_ipk () { fields.append(["License: %s\n", ['LICENSE']]) fields.append(["Architecture: %s\n", ['PACKAGE_ARCH']]) fields.append(["OE: %s\n", ['PN']]) - fields.append(["Homepage: %s\n", ['HOMEPAGE']]) + if d.getVar('HOMEPAGE', True): + fields.append(["Homepage: %s\n", ['HOMEPAGE']]) def pullData(l, d): l2 = [] diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 4d33d01835..82ea187479 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -497,7 +497,8 @@ python write_specfile () { spec_preamble_top.append('License: %s' % srclicense) spec_preamble_top.append('Group: %s' % srcsection) spec_preamble_top.append('Packager: %s' % srcmaintainer) - spec_preamble_top.append('URL: %s' % srchomepage) + if srchomepage: + spec_preamble_top.append('URL: %s' % srchomepage) if srccustomtagschunk: spec_preamble_top.append(srccustomtagschunk) tail_source(d) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 57668e14f2..4fb6a1c460 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -241,7 +241,7 @@ This package contains documentation." LICENSE = "INVALID" MAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>" -HOMEPAGE = "unknown" +HOMEPAGE = "" # Package dependencies and provides. |