diff options
-rw-r--r-- | meta/classes/package_deb.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/package_rpm.bbclass | 14 | ||||
-rw-r--r-- | meta/classes/package_tar.bbclass | 4 |
4 files changed, 17 insertions, 17 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 000d9ee8dc..fb502cbc99 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -272,7 +272,7 @@ python do_package_deb () { | |||
272 | except ValueError: | 272 | except ValueError: |
273 | pass | 273 | pass |
274 | if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": | 274 | if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": |
275 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, True), bb.data.getVar('PR', localdata, True))) | 275 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, True), bb.data.getVar('PKGR', localdata, True))) |
276 | bb.utils.unlockfile(lf) | 276 | bb.utils.unlockfile(lf) |
277 | continue | 277 | continue |
278 | 278 | ||
@@ -288,11 +288,11 @@ python do_package_deb () { | |||
288 | raise bb.build.FuncFailed("unable to open control file for writing.") | 288 | raise bb.build.FuncFailed("unable to open control file for writing.") |
289 | 289 | ||
290 | fields = [] | 290 | fields = [] |
291 | pe = bb.data.getVar('PE', d, True) | 291 | pe = bb.data.getVar('PKGE', d, True) |
292 | if pe and int(pe) > 0: | 292 | if pe and int(pe) > 0: |
293 | fields.append(["Version: %s:%s-%s\n", ['PE', 'PV', 'PR']]) | 293 | fields.append(["Version: %s:%s-%s\n", ['PKGE', 'PKGV', 'PKGR']]) |
294 | else: | 294 | else: |
295 | fields.append(["Version: %s-%s\n", ['PV', 'PR']]) | 295 | fields.append(["Version: %s-%s\n", ['PKGV', 'PKGR']]) |
296 | fields.append(["Description: %s\n", ['DESCRIPTION']]) | 296 | fields.append(["Description: %s\n", ['DESCRIPTION']]) |
297 | fields.append(["Section: %s\n", ['SECTION']]) | 297 | fields.append(["Section: %s\n", ['SECTION']]) |
298 | fields.append(["Priority: %s\n", ['PRIORITY']]) | 298 | fields.append(["Priority: %s\n", ['PRIORITY']]) |
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index a3dfc73342..43170280c9 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -241,7 +241,7 @@ python do_package_ipk () { | |||
241 | except ValueError: | 241 | except ValueError: |
242 | pass | 242 | pass |
243 | if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": | 243 | if not g and bb.data.getVar('ALLOW_EMPTY', localdata) != "1": |
244 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) | 244 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, 1), bb.data.getVar('PKGR', localdata, 1))) |
245 | bb.utils.unlockfile(lf) | 245 | bb.utils.unlockfile(lf) |
246 | continue | 246 | continue |
247 | 247 | ||
@@ -254,11 +254,11 @@ python do_package_ipk () { | |||
254 | raise bb.build.FuncFailed("unable to open control file for writing.") | 254 | raise bb.build.FuncFailed("unable to open control file for writing.") |
255 | 255 | ||
256 | fields = [] | 256 | fields = [] |
257 | pe = bb.data.getVar('PE', d, 1) | 257 | pe = bb.data.getVar('PKGE', d, 1) |
258 | if pe and int(pe) > 0: | 258 | if pe and int(pe) > 0: |
259 | fields.append(["Version: %s:%s-%s\n", ['PE', 'PV', 'PR']]) | 259 | fields.append(["Version: %s:%s-%s\n", ['PKGE', 'PKGV', 'PKGR']]) |
260 | else: | 260 | else: |
261 | fields.append(["Version: %s-%s\n", ['PV', 'PR']]) | 261 | fields.append(["Version: %s-%s\n", ['PKGV', 'PKGR']]) |
262 | fields.append(["Description: %s\n", ['DESCRIPTION']]) | 262 | fields.append(["Description: %s\n", ['DESCRIPTION']]) |
263 | fields.append(["Section: %s\n", ['SECTION']]) | 263 | fields.append(["Section: %s\n", ['SECTION']]) |
264 | fields.append(["Priority: %s\n", ['PRIORITY']]) | 264 | fields.append(["Priority: %s\n", ['PRIORITY']]) |
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 1d8c686330..3df66cc16a 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -330,7 +330,7 @@ python write_specfile () { | |||
330 | if dep and ver: | 330 | if dep and ver: |
331 | if '-' in ver: | 331 | if '-' in ver: |
332 | subd = oe.packagedata.read_subpkgdata_dict(dep, d) | 332 | subd = oe.packagedata.read_subpkgdata_dict(dep, d) |
333 | pv = subd['PV'] | 333 | pv = subd['PKGV'] |
334 | reppv = pv.replace('-', '+') | 334 | reppv = pv.replace('-', '+') |
335 | ver = ver.replace(pv, reppv) | 335 | ver = ver.replace(pv, reppv) |
336 | newdeps_dict[dep] = ver | 336 | newdeps_dict[dep] = ver |
@@ -383,9 +383,9 @@ python write_specfile () { | |||
383 | # Construct the SPEC file... | 383 | # Construct the SPEC file... |
384 | srcname = bb.data.getVar('PN', d, True) | 384 | srcname = bb.data.getVar('PN', d, True) |
385 | srcsummary = (bb.data.getVar('SUMMARY', d, True) or bb.data.getVar('DESCRIPTION', d, True) or ".") | 385 | srcsummary = (bb.data.getVar('SUMMARY', d, True) or bb.data.getVar('DESCRIPTION', d, True) or ".") |
386 | srcversion = bb.data.getVar('PV', d, True).replace('-', '+') | 386 | srcversion = bb.data.getVar('PKGV', d, True).replace('-', '+') |
387 | srcrelease = bb.data.getVar('PR', d, True) | 387 | srcrelease = bb.data.getVar('PKGR', d, True) |
388 | srcepoch = (bb.data.getVar('PE', d, True) or "") | 388 | srcepoch = (bb.data.getVar('PKGE', d, True) or "") |
389 | srclicense = bb.data.getVar('LICENSE', d, True) | 389 | srclicense = bb.data.getVar('LICENSE', d, True) |
390 | srcsection = bb.data.getVar('SECTION', d, True) | 390 | srcsection = bb.data.getVar('SECTION', d, True) |
391 | srcmaintainer = bb.data.getVar('MAINTAINER', d, True) | 391 | srcmaintainer = bb.data.getVar('MAINTAINER', d, True) |
@@ -438,9 +438,9 @@ python write_specfile () { | |||
438 | splitname = pkgname | 438 | splitname = pkgname |
439 | 439 | ||
440 | splitsummary = (bb.data.getVar('SUMMARY', localdata, True) or bb.data.getVar('DESCRIPTION', localdata, True) or ".") | 440 | splitsummary = (bb.data.getVar('SUMMARY', localdata, True) or bb.data.getVar('DESCRIPTION', localdata, True) or ".") |
441 | splitversion = (bb.data.getVar('PV', localdata, True) or "").replace('-', '+') | 441 | splitversion = (bb.data.getVar('PKGV', localdata, True) or "").replace('-', '+') |
442 | splitrelease = (bb.data.getVar('PR', localdata, True) or "") | 442 | splitrelease = (bb.data.getVar('PKGR', localdata, True) or "") |
443 | splitepoch = (bb.data.getVar('PE', localdata, True) or "") | 443 | splitepoch = (bb.data.getVar('PKGE', localdata, True) or "") |
444 | splitlicense = (bb.data.getVar('LICENSE', localdata, True) or "") | 444 | splitlicense = (bb.data.getVar('LICENSE', localdata, True) or "") |
445 | splitsection = (bb.data.getVar('SECTION', localdata, True) or "") | 445 | splitsection = (bb.data.getVar('SECTION', localdata, True) or "") |
446 | splitdescription = (bb.data.getVar('DESCRIPTION', localdata, True) or ".") | 446 | splitdescription = (bb.data.getVar('DESCRIPTION', localdata, True) or ".") |
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass index e546eb7fd8..a806e4514b 100644 --- a/meta/classes/package_tar.bbclass +++ b/meta/classes/package_tar.bbclass | |||
@@ -3,7 +3,7 @@ inherit package | |||
3 | IMAGE_PKGTYPE ?= "tar" | 3 | IMAGE_PKGTYPE ?= "tar" |
4 | 4 | ||
5 | python package_tar_fn () { | 5 | python package_tar_fn () { |
6 | fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PV', d), bb.data.getVar('PR', d))) | 6 | fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d), "%s-%s-%s.tar.gz" % (bb.data.getVar('PKG', d), bb.data.getVar('PKGV', d), bb.data.getVar('PKGR', d))) |
7 | fn = bb.data.expand(fn, d) | 7 | fn = bb.data.expand(fn, d) |
8 | bb.data.setVar('PKGFN', fn, d) | 8 | bb.data.setVar('PKGFN', fn, d) |
9 | } | 9 | } |
@@ -83,7 +83,7 @@ python do_package_tar () { | |||
83 | os.chdir(root) | 83 | os.chdir(root) |
84 | from glob import glob | 84 | from glob import glob |
85 | if not glob('*'): | 85 | if not glob('*'): |
86 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) | 86 | bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PKGV', localdata, 1), bb.data.getVar('PKGR', localdata, 1))) |
87 | continue | 87 | continue |
88 | ret = os.system("tar -czf %s %s" % (tarfn, '.')) | 88 | ret = os.system("tar -czf %s %s" % (tarfn, '.')) |
89 | if ret != 0: | 89 | if ret != 0: |