Bug 1093336
| Summary: | date(1): -u is much portable than --utc | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | OBATA Akio <obache> |
| Component: | cmake-fedora | Assignee: | Ding-Yi Chen <dchen> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 22 | CC: | dchen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-23 00:12:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
cmake-fedora-2.1.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.fc20 cmake-fedora-2.1.3-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.fc19 cmake-fedora-2.1.3-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.el6 cmake-fedora-2.1.3-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.el5 cmake-fedora-2.2.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.fc20 cmake-fedora-2.2.2-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.fc19 cmake-fedora-2.2.2-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.el5 cmake-fedora-2.2.2-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.el6 cmake-fedora-2.3.0-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.fc20 cmake-fedora-2.3.0-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.fc19 cmake-fedora-2.3.0-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.el6 cmake-fedora-2.3.0-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.el5 cmake-fedora-2.3.0-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 |
Description of problem: "date --utc" is used in Modules/DateTimeFormat.cmake, but "--utc" option is not portable, "-u" is the POSIX standard way and portable. Version-Release number of selected component (if applicable): 1.3.0 (and git-master) How reproducible: Try to use with date command other than coreutils. For example, NetBSD (and probably other *BSD, Solaris, ...) I don't know "--utc" is supported other than coreutils. Steps to Reproduce: 1. On NetBSD 2. Built ibus-chewing, ibus-table-chinses, using cmake-fedora 3. Actual results: date: unknown option -- - Expected results: no error Additional info: --- Modules/DateTimeFormat.cmake.orig 2012-07-13 05:44:02.000000000 +0000 +++ Modules/DateTimeFormat.cmake @@ -28,7 +28,7 @@ IF(NOT DEFINED _DATE_TIME_FORMAT_CMAKE_) IF(_locale) SET(ENV{LC_ALL} ${_locale}) ENDIF(_locale) - COMMAND_OUTPUT_TO_VARIABLE(${date_var} date --utc "${format}") + COMMAND_OUTPUT_TO_VARIABLE(${date_var} date -u "${format}") ENDMACRO(TODAY date_var format) TODAY(TODAY_CHANGELOG "+%a %b %d %Y" "C")