2 Commits

Author SHA1 Message Date
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
Yue Tao
de2af4d74d Add debian package for python-keyring
The upstream commit 1e422ed of python-keyring moved non-preferred
keyring backends to separated package "keyrings.alt", so adding the
keyrings.alt and porting the patches related to non-preferred
keyring backends to keyrings.alt.

Patches are not up to our standard. Bringing them up to standard
is future work, tracked by:

https://bugs.launchpad.net/starlingx/+bug/1950506.

Related-Bug: 1950506

Building successfully.

Installing python3-keyrings.alt, python3-keyring and the dependence
package tsconfig successfully.

Booting up ISO successfully on qemu.

Story: 2009221
Task: 43438

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I4b70927709f0cc968e32af1d0e2a9402f47b2fe9
2021-11-22 13:11:46 +08:00