← Back to team overview

touch-packages team mailing list archive

[Bug 1394469] Comment bridged from LTC Bugzilla

 

------- Comment From thierry.fauck@xxxxxxxxxx 2014-12-08 16:35 EDT-------
Ubuntu policy described in Comment #6 sounds clear at this point. If you disagree, feel free to reopen the bug

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1394469

Title:
  "VERSION_ID" in /etc/os-release does not include point release number

Status in base-files package in Ubuntu:
  Invalid

Bug description:
  == Comment: #0 - SONG YANG <yangsbj@xxxxxxxxxx> - 2014-11-18 22:06:44 ==
  ---Problem Description---
  "VERSION_ID" in /etc/os-release of ubuntu 14.04.1 is not correct 
   
  ---uname output---
  Linux c910f03c05k05 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:50:31 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
   
  Machine Type = P8 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
  # apt-file find /etc/os-release 
  base-files: /etc/os-release
  # cat /etc/os-release  
  NAME="Ubuntu"
  VERSION="14.04.1 LTS, Trusty Tahr"
  ID=ubuntu
  ID_LIKE=debian
  PRETTY_NAME="Ubuntu 14.04.1 LTS"
  VERSION_ID="14.04"
  HOME_URL="http://www.ubuntu.com/";
  SUPPORT_URL="http://help.ubuntu.com/";
  BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";

  
  according to the manpage of /etc/os-release, the "VERSION_ID" should be "14.04.1", however it still keeps "14.04",which is confused for the system management tool developers. The "VERSION" and "PRETTY_NAME" seems to be correct, however, these 2 fields are for presentation to the user, which is not suitable for the script parsing.

  The following lines are excerpted from the os-release DOC:
  ID=
  A lower-case string (no spaces or other characters outside of 0-9, a-z, ".", "_" and "-") identifying the operating system, excluding any version information and suitable for processing by scripts or usage in generated filenames. If not set, defaults to "ID=linux". Example: "ID=fedora" or "ID=debian".

  ID_LIKE=
  A space-separated list of operating system identifiers in the same syntax as the ID= setting. It should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from. An OS should generally only list other OS identifiers it itself is a derivative of, and not any OSes that are derived from it, though symmetric relationships are possible. Build scripts and similar should check this variable if they need to identify the local operating system and the value of ID= is not recognized. Operating systems should be listed in order of how closely the local operating system relates to the listed ones, starting with the closest. This field is optional. Example: for an operating system with "ID=centos", an assignment of "ID_LIKE="rhel fedora"" would be appropriate. For an operating system with "ID=ubuntu", an assignment of "ID_LIKE=debian" is appropriate.

  VERSION_ID=
  A lower-case string (mostly numeric, no spaces or other characters outside of 0-9, a-z, ".", "_" and "-") identifying the operating system version, excluding any OS name information or release code name, and suitable for processing by scripts or usage in generated filenames. This field is optional. Example: "VERSION_ID=17" or "VERSION_ID=11.04".

   
  Install method: ALL
   
  Install disk info: NA
   
  Install ISO Information: ubuntu-14.04.1-server-ppc64el.iso
   
  Userspace tool common name: NA 
   
  The userspace tool has the following bit modes: both 

  Userspace rpm: NA

  Userspace tool obtained from project website:  base-files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1394469/+subscriptions