Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549012 - kde5.eclass: RESTRICT dependent on local time of generation of metadata cache
Summary: kde5.eclass: RESTRICT dependent on local time of generation of metadata cache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: QAglobalscope
Depends on:
Blocks:
 
Reported: 2015-05-09 13:21 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2015-05-31 15:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2015-05-09 13:21:11 UTC
kde5.eclass since revision 1.7 breaks invariance of metadata by calling `date` in global scope and using its output for generation of metadata.
https://sources.gentoo.org/eclass/kde5.eclass?r1=1.6&r2=1.7
https://gitweb.gentoo.org/proj/kde.git/commit/eclass/kde5.eclass?id=603f50e1bacae45e1a24452e07d1381e2ea0c786
https://gitweb.gentoo.org/proj/kde.git/commit/eclass/kde5.eclass?id=3e82f327122b6140f213022a649b88f81078a333

# PYTHONWARNINGS= portageq metadata / ebuild kde-plasma/oxygen-fonts-5.3.0::gentoo RESTRICT

# LC_ALL="C" TZ="UTC" date 042500002015
Sat Apr 25 00:00:00 UTC 2015
# PYTHONWARNINGS= portageq metadata / ebuild kde-plasma/oxygen-fonts-5.3.0::gentoo RESTRICT

# touch kde-plasma/oxygen-fonts/oxygen-fonts-5.3.0.ebuild
# PYTHONWARNINGS= portageq metadata / ebuild kde-plasma/oxygen-fonts-5.3.0::gentoo RESTRICT
fetch
# hwclock -s
# 


If metadata cache for kde-plasma/oxygen-fonts-5.3.1 is generated on <2015-05-26, then on >=2015-05-26 cached RESTRICT will still contain "fetch" until ebuild or any used eclass is changed.


Also output of `date` is dependent on local timezone unless -u option is used or TZ="UTC" is explicitly set:
# date +"%Y%m%d"
20150509
# TZ="UTC-10" date +"%Y%m%d"
20150509
# TZ="UTC-11" date +"%Y%m%d"
20150510
# TZ="UTC-11" date -u +"%Y%m%d"
20150509
#
Comment 1 Arfrever Frehtes Taifersar Arahesis 2015-05-09 13:34:01 UTC
Re _get_release_date():
- Ebuilds in kde-frameworks category have additional ".0" in ${PV} (e.g. 5.10.0 instead of 5.10).
- There is kde-apps category in repository "kde", but no kde-applications category.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2015-05-31 15:52:17 UTC
  31 May 2015; Manuel Rüger <mrueg@gentoo.org> kde5.eclass:
  Sync verbosely with kde overlay. Drop fetch restriction for unpublished
  packages including the pkg_nofetch prompt. This did not work out as expected,
  see bug 549012. Add support for split localization packages via
  kde-apps/kde4-l10n. Add KDE_BLOCK_SLOT4 variable which makes it possible to
  adjust coinstallability of kf5 packages.