integ/security
Yue Tao 9594f8f1a8 Determine the SW_VERSION at run time
Distro layer package 'python-keyring' has a dependency on flock layer
package 'tsconfig'. This is s violation of the layering policy,
preventing successful layerd builds.

Get the SW_VERSION via parsing the /etc/build.info file instead of the
tsconfig.tsconfig python module at run time. We do this so that
python-keyring no longer has a runtime dependency on tsconfig.

Test Plan:

Pass: build python-keyring

Pass: put the codes in a test.py. get the SW_VERSION variable by run the
      test.py in an environment in which build-info is installed.

Pass: trigger exception if removing /etc/build.info, or no SW_VERSION
      in the file.

Closes-Bug: https://bugs.launchpad.net/starlingx/+bug/1968611

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I7f0c4eaae7aacf5bcbef082817dc99a62600a162
2022-04-23 08:36:05 +08:00
..
keyrings.alt/debian meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
libtpms/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
python-keyring Determine the SW_VERSION at run time 2022-04-23 08:36:05 +08:00
shim-signed/centos relocate /pxeboot to /var/pxeboot 2021-12-23 14:29:00 -05:00
shim-unsigned meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
spectre-meltdown-checker/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
swtpm Revert "Fix user ownership for /usr/bin/swtpm_setup.sh" 2020-11-04 20:04:28 +00:00
tboot/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
tpm2-tools Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
tss2 Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00