[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-06-17 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools - 27.1~16.04.1

---
ubuntu-advantage-tools (27.1~16.04.1) xenial; urgency=medium

  * Backport new upstream release: (LP: #1929597) to xenial

 -- Lucas Moura   Thu, 27 May 2021 15:40:20
-0300

** Changed in: ubuntu-advantage-tools (Ubuntu Xenial)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-20 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools - 27.0.2

---
ubuntu-advantage-tools (27.0.2) impish; urgency=medium

  * d/control:
- order build-depends alternatives newer first (LP: #1926949)
- apt-hook: do not attempt to package go APT JSON hook on some
  architectures (GH: #1603) (LP: #1927886, LP: #1927795)
  * Bug-fix release 27.0.2: build failures on riscv64 and powerpc
- apt-hook: refactor json hook messaging to be dry
- tests: fix subp ls error case for powerpc builds
- jenkinsfile: add --resolve-alternatives for trusty builds
- ammend changelog: add ommitted apt-hook message for 27.0.1 stanza

 -- Chad Smith   Fri, 07 May 2021 11:58:03
-0600

** Changed in: ubuntu-advantage-tools (Ubuntu Impish)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-13 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools -
27.0.2~18.04.1

---
ubuntu-advantage-tools (27.0.2~18.04.1) bionic; urgency=medium

  * Backport to Bionic

ubuntu-advantage-tools (27.0.2) impish; urgency=medium

  * d/control:
- order build-depends alternatives newer first (LP: #1926949)
- apt-hook: do not attempt to package go APT JSON hook on some
  architectures (GH: #1603) (LP: #1927886, LP: #1927795)
  * Bug-fix release 27.0.2: build failures on riscv64 and powerpc
- apt-hook: refactor json hook messaging to be dry
- tests: fix subp ls error case for powerpc builds
- jenkinsfile: add --resolve-alternatives for trusty builds
- amend changelog: add omitted apt-hook message for 27.0.1 stanza

ubuntu-advantage-tools (27.0.1) impish; urgency=medium

  * Add .gitignore and cleanup ignored directory .pytest_cache
  * apt-hook: mitigate failures with true

 -- Chad Smith   Wed, 12 May 2021 10:10:45
-0600

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-13 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools -
27.0.2~20.04.1

---
ubuntu-advantage-tools (27.0.2~20.04.1) focal; urgency=medium

  * Backport to Focal

ubuntu-advantage-tools (27.0.2) impish; urgency=medium

  * d/control:
- order build-depends alternatives newer first (LP: #1926949)
- apt-hook: do not attempt to package go APT JSON hook on some
  architectures (GH: #1603) (LP: #1927886, LP: #1927795)
  * Bug-fix release 27.0.2: build failures on riscv64 and powerpc
- apt-hook: refactor json hook messaging to be dry
- tests: fix subp ls error case for powerpc builds
- jenkinsfile: add --resolve-alternatives for trusty builds
- amend changelog: add omitted apt-hook message for 27.0.1 stanza

ubuntu-advantage-tools (27.0.1) impish; urgency=medium

  * Add .gitignore and cleanup ignored directory .pytest_cache
  * apt-hook: mitigate failures with true

 -- Chad Smith   Wed, 12 May 2021 10:10:45
-0600

** Changed in: ubuntu-advantage-tools (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-13 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools -
27.0.2~20.10.1

---
ubuntu-advantage-tools (27.0.2~20.10.1) groovy; urgency=medium

  * Backport to Groovy

ubuntu-advantage-tools (27.0.2) impish; urgency=medium

  * d/control:
- order build-depends alternatives newer first (LP: #1926949)
- apt-hook: do not attempt to package go APT JSON hook on some
  architectures (GH: #1603) (LP: #1927886, LP: #1927795)
  * Bug-fix release 27.0.2: build failures on riscv64 and powerpc
- apt-hook: refactor json hook messaging to be dry
- tests: fix subp ls error case for powerpc builds
- jenkinsfile: add --resolve-alternatives for trusty builds
- amend changelog: add omitted apt-hook message for 27.0.1 stanza

ubuntu-advantage-tools (27.0.1) impish; urgency=medium

  * Add .gitignore and cleanup ignored directory .pytest_cache
  * apt-hook: mitigate failures with true

 -- Chad Smith   Wed, 12 May 2021 10:10:45
-0600

** Changed in: ubuntu-advantage-tools (Ubuntu Groovy)
   Status: Fix Committed => Fix Released

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-13 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-advantage-tools -
27.0.2~21.04.1

---
ubuntu-advantage-tools (27.0.2~21.04.1) hirsute; urgency=medium

  * Backport to Hirsute

ubuntu-advantage-tools (27.0.2) impish; urgency=medium

  * d/control:
- order build-depends alternatives newer first (LP: #1926949)
- apt-hook: do not attempt to package go APT JSON hook on some
  architectures (GH: #1603) (LP: #1927886, LP: #1927795)
  * Bug-fix release 27.0.2: build failures on riscv64 and powerpc
- apt-hook: refactor json hook messaging to be dry
- tests: fix subp ls error case for powerpc builds
- jenkinsfile: add --resolve-alternatives for trusty builds
- amend changelog: add omitted apt-hook message for 27.0.1 stanza

ubuntu-advantage-tools (27.0.1) impish; urgency=medium

  * Add .gitignore and cleanup ignored directory .pytest_cache
  * apt-hook: mitigate failures with true

 -- Chad Smith   Wed, 12 May 2021 10:10:45
-0600

** Changed in: ubuntu-advantage-tools (Ubuntu Hirsute)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-12 Thread Chad Smith
xenial sbuild success emulating powerpc with current branch:


** Attachment added: "sbuild-xenial-powerpc.log"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+attachment/5496762/+files/sbuild-xenial-powerpc.log

** Tags removed: verification-needed verification-needed-hirsute
** Tags added: verification-done verification-done-bionic 
verification-done-focal verification-done-groovy verification-done-hirsute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-12 Thread Chad Smith
Bionic, Focal, Groovy and Hirsute do not have powerpc arch build
support, so we need only to ensure that packages build and contain the
apt-esm-json-hook. Successful package build indicates proper conditional
build logic for this SRU to include/exclude both go build of apt-esm-
json-hook and go test runs of that hook

1. Running the following suceedslocally with sbuild emulating powerpc on Xenial
$ sbuild --resolve-alternatives --dist=xenial --arch=powerpc
[ATTACHED sbuild-xenial-powerpc.log]

2. Upload to ppa:ua-client/staging succeeded with Xenial builds at
https://launchpad.net/~ua-client/+archive/ubuntu/staging/+packages

3 & 4 ensure esm-apt-json-hook is included in amd64 arch builds and
doesn't break `apt upgrade`:

$ cat sru-1927795.sh
#!/bin/bash
# Only LTS releases have ESM package ability so ignore Groovy/Hirsute
# Exercise apt JSON hook messaging to make sure hook messages show up.

cat > proposed-bionic.yaml < proposed-focal.yaml < ./sru-1927795.sh
Creating test-1927795-bionic
Starting test-1927795-bionic
..
status: done
time: Wed, 12 May 2021 21:10:06 +
detail:
DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
27.0.2~18.04.1
Enabling default service esm-apps
Updating package lists
UA Apps: ESM enabled
Enabling default service esm-infra
Updating package lists
UA Infra: ESM enabled
This machine is now attached to 'UA Applications - Essential (Physical)'

SERVICE   ENTITLED  STATUSDESCRIPTION
esm-apps  yes   enabled   UA Apps: Extended Security Maintenance (ESM)
esm-infra yes   enabled   UA Infra: Extended Security Maintenance (ESM)
fips  yes   n/a   NIST-certified FIPS modules
fips-updates  yes   n/a   Uncertified security updates to FIPS modules
livepatch yes   n/a   Canonical Livepatch service

NOTICES
Operation in progress: ua attach

Enable services with: ua enable 

Account: 
   Subscription: UA Applications - Essential (Physical)
Valid until: 3999-12-31 00:00:00
Technical support level: essential
/etc/apt/apt.conf.d/20apt-esm-hook.conf
/usr/lib/ubuntu-advantage/apt-esm-hook
/usr/lib/ubuntu-advantage/apt-esm-json-hook
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  initramfs-tools initramfs-tools-bin initramfs-tools-core krb5-locales
  libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libparted2
  linux-base login openssh-client openssh-server openssh-sftp-server parted
  passwd python-apt-common python3-apt snapd uidmap
20 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.8 MB of archives.
After this operation, 5932 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
Creating test-1927795-focal
Starting test-1927795-focal
...
status: done
time: Wed, 12 May 2021 21:10:56 +
detail:
DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]
27.0.2~20.04.1
Enabling default service esm-apps
Updating package lists
UA Apps: ESM enabled
Enabling default service esm-infra
Updating package lists
UA Infra: ESM enabled
This machine is now attached to 'UA Applications - Essential (Physical)'

SERVICE   ENTITLED  STATUSDESCRIPTION
esm-apps  yes   enabled   UA Apps: Extended Security Maintenance (ESM)
esm-infra yes   enabled   UA Infra: Extended Security Maintenance (ESM)
fips  yes   n/a   NIST-certified FIPS modules
fips-updates  yes   n/a   Uncertified security updates to FIPS modules
livepatch yes   n/a   Canonical Livepatch service

NOTICES
Operation in progress: ua attach

Enable services with: ua enable 

Account: 
   Subscription: UA Applications - Essential (Physical)
Valid until: 3999-12-31 00:00:00
Technical support level: essential
/etc/apt/apt.conf.d/20apt-esm-hook.conf
/usr/lib/ubuntu-advantage/apt-esm-hook
/usr/lib/ubuntu-advantage/apt-esm-json-hook
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  initramfs-tools initramfs-tools-bin initramfs-tools-core libgnutls30
  libnetplan0 libssl1.1 linux-base netplan.io open-vm-tools openssl
  python-apt-common python3-apt python3-software-properties secureboot-db
  snapd software-properties-common
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.4 MB of archives.
After this operation, 7994 kB

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-12 Thread Chad Smith
** Changed in: ubuntu-advantage-tools (Ubuntu Groovy)
   Status: New => Fix Committed

** Changed in: ubuntu-advantage-tools (Ubuntu Bionic)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-12 Thread Robie Basak
Hello Chad, or anyone else affected,

Accepted ubuntu-advantage-tools into hirsute-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/ubuntu-advantage-tools/27.0.2~21.04.1 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
hirsute to verification-done-hirsute. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-hirsute. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: ubuntu-advantage-tools (Ubuntu Hirsute)
   Status: New => Fix Committed

** Tags added: verification-needed verification-needed-hirsute

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-12 Thread Robie Basak
** Description changed:

  [Impact]
  
   * Local package build attempts on powerpc platform as well as cloud
  image builds for powerpc on Xenial were affected by inability to resolve
  correct golang dependencies. Allowing debian/control and package
  Makefiles to ignore building and packaging ubuntu-advantage-tools'
  golang hook binary allows for package builds to succeed with minimal
  impact to usability and user-messaging.
  
  [Test Plan]
  
  1. Run sbuild --resolve-alternatives --dist=xenial --arch=powerpc to confirm 
package build success and does not include golang dependencies or
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
  dpkg-deb -c *powerpc.deb | grep hook  # expect only apt-esm-hook
  
- 
- 2. Upload to ppa:ua-client/staging which is set to build both powerpc and 
riscv64 platforms by default and ensure no package build failures.
+ 2. Upload to ppa:ua-client/staging which is set to build both powerpc
+ and riscv64 platforms by default and ensure no package build failures.
  
  3. Ensure go APT hook is still built and included in binary package as
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
  dpkg-deb -c *amd64.deb | grep hook  # expect both apt-esm-hook & 
apt-esm-json-hook
- 
  
  4. Test functionality of go json hook on Xenial:
  
  4a. get token from ubuntu.com/advantage
  4b. ua attach 
  4c ua disable esm-infra
  4d apt upgrade  # check output for esm-infra package updates available.
  
  [Where problems could occur]
  
  * This is a low risk update as most problems will occur at package build
  time.
  
  * Accidental exclusion of /usr/lib/ubuntu-advantage/apt-esm-json-hook
  only results in the absence of a single informative message during `apt
  upgrade` or `apt dist-upgrade` which would describe detailed source for
  where package updates are originating:
  
  "1 standard security update, 1 esm-infra update and 2 esm-apps updates"
  
  * Without a packaged json hook, the message will be absent and no
  tracebacks or non-zero exits from APT
+ 
+  * [racb] Mutating the Build-Depends line could cause alternatives to be
+ resolved differently on the buildds, resulting in toolchain changes that
+ might result in different sets of build failures or different build
+ output causing functional issues.
  
  [Other Info]
  
  [Original Description]
  
   * Anything else you think is useful to include
   * Anticipate questions from users, SRU, +1 maintenance, security teams and 
the Technical Board
   * and address these questions in advance
  
  ubuntu-advantage-tools 27.0~16.04.1 fails to build from source in PPAs
  or locally via sbuild on powerpc platform due to golang package
  dependency issues:
  
  $ sbuild --resolve-alternatives --dist=xenial --arch=powerpc --arch-all 
../out/ubuntu-advantage-tools_27.0~16.04.1.dsc
  
  
  Merged Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  Filtered Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  dpkg-deb: building package 'sbuild-build-depends-main-dummy' in 
'/<>/apt_archive/sbuild-build-depends-main-dummy.deb'.
  Ign:1 copy:/<>/apt_archive ./ InRelease
  Get:2 copy:/<>/apt_archive ./ Release [957 B]
  Ign:3 copy:/<>/apt_archive ./ Release.gpg
  Get:4 copy:/<>/apt_archive ./ Sources [481 B]
  Get:5 copy:/<>/apt_archive ./ Packages [565 B]
  Fetched 2003 B in 0s (9192 B/s)
  Reading package lists...
  Reading package lists...
  
  Install main build dependencies (apt-based resolver)
  
  
  Installing build dependencies
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   sbuild-build-depends-main-dummy : Depends: golang but it is not going to be 
installed
  E: Unable to correct problems, you have held broken packages.
  apt-get failed.
  E: Package installation failed
  
  ...
     missing:
   pkg:
    package: golang:powerpc
    version: 2:1.6-1ubuntu4
    architecture: all
    essential: false
    unsat-dependency: golang-src:powerpc (>= 2:1.6-1ubuntu4)
   depchains:
    -
     depchain:
  -
   package: sbuild-build-depends-main-dummy:powerpc
    

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-11 Thread Christian Ehrhardt 
FYI:
an update on the latest set of MPs
X: 
https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/402510
B: 
https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/402508
F: 
https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/402513
G: 
https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/402505
H: 
https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/402502

^^ all of the above are just changelog stanza updates to the impish MP

I: https://code.launchpad.net/~chad.smith/ubuntu/+source/ubuntu-
advantage-tools/+git/ubuntu-advantage-tools/+merge/402459

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-10 Thread Chad Smith
** Description changed:

  [Impact]
  
   * Local package build attempts on powerpc platform as well as cloud
  image builds for powerpc on Xenial were affected by inability to resolve
  correct golang dependencies. Allowing debian/control and package
  Makefiles to ignore building and packaging ubuntu-advantage-tools'
  golang hook binary allows for package builds to succeed with minimal
  impact to usability and user-messaging.
  
  [Test Plan]
  
  1. Run sbuild --resolve-alternatives --dist=xenial --arch=powerpc to confirm 
package build success and does not include golang dependencies or
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
- grep Build-Depends *build
+ dpkg-deb -c *powerpc.deb | grep hook  # expect only apt-esm-hook
  
- 2. Upload to ppa:ua-client/staging which is set to build both powerpc
- and riscv64 platforms by default and ensure no package build failures.
+ 
+ 2. Upload to ppa:ua-client/staging which is set to build both powerpc and 
riscv64 platforms by default and ensure no package build failures.
  
  3. Ensure go APT hook is still built and included in binary package as
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
+ dpkg-deb -c *amd64.deb | grep hook  # expect both apt-esm-hook & 
apt-esm-json-hook
+ 
  
  4. Test functionality of go json hook on Xenial:
  
  4a. get token from ubuntu.com/advantage
  4b. ua attach 
  4c ua disable esm-infra
  4d apt upgrade  # check output for esm-infra package updates available.
  
  [Where problems could occur]
  
  * This is a low risk update as most problems will occur at package build
  time.
  
  * Accidental exclusion of /usr/lib/ubuntu-advantage/apt-esm-json-hook
  only results in the absence of a single informative message during `apt
  upgrade` or `apt dist-upgrade` which would describe detailed source for
  where package updates are originating:
  
  "1 standard security update, 1 esm-infra update and 2 esm-apps updates"
  
  * Without a packaged json hook, the message will be absent and no
  tracebacks or non-zero exits from APT
  
  [Other Info]
  
  [Original Description]
  
   * Anything else you think is useful to include
   * Anticipate questions from users, SRU, +1 maintenance, security teams and 
the Technical Board
   * and address these questions in advance
  
  ubuntu-advantage-tools 27.0~16.04.1 fails to build from source in PPAs
  or locally via sbuild on powerpc platform due to golang package
  dependency issues:
  
  $ sbuild --resolve-alternatives --dist=xenial --arch=powerpc --arch-all 
../out/ubuntu-advantage-tools_27.0~16.04.1.dsc
  
  
  Merged Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  Filtered Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  dpkg-deb: building package 'sbuild-build-depends-main-dummy' in 
'/<>/apt_archive/sbuild-build-depends-main-dummy.deb'.
  Ign:1 copy:/<>/apt_archive ./ InRelease
  Get:2 copy:/<>/apt_archive ./ Release [957 B]
  Ign:3 copy:/<>/apt_archive ./ Release.gpg
  Get:4 copy:/<>/apt_archive ./ Sources [481 B]
  Get:5 copy:/<>/apt_archive ./ Packages [565 B]
  Fetched 2003 B in 0s (9192 B/s)
  Reading package lists...
  Reading package lists...
  
  Install main build dependencies (apt-based resolver)
  
  
  Installing build dependencies
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   sbuild-build-depends-main-dummy : Depends: golang but it is not going to be 
installed
  E: Unable to correct problems, you have held broken packages.
  apt-get failed.
  E: Package installation failed
  
  ...
     missing:
   pkg:
    package: golang:powerpc
    version: 2:1.6-1ubuntu4
    architecture: all
    essential: false
    unsat-dependency: golang-src:powerpc (>= 2:1.6-1ubuntu4)
   depchains:
    -
     depchain:
  -
   package: sbuild-build-depends-main-dummy:powerpc
   version: 0.invalid.0
   architecture: powerpc
   essential: false
   depends: golang:powerpc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubu

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-10 Thread Chad Smith
** Description changed:

  [Impact]
  
-  * Local package build attempts on powerpc platform as well as cloud
+  * Local package build attempts on powerpc platform as well as cloud
  image builds for powerpc on Xenial were affected by inability to resolve
  correct golang dependencies. Allowing debian/control and package
  Makefiles to ignore building and packaging ubuntu-advantage-tools'
  golang hook binary allows for package builds to succeed with minimal
  impact to usability and user-messaging.
  
- 
  [Test Plan]
  
- 1. Run sbuild --resolve-alternatives --dist=xenial --arch=powerpc to confirm 
package build success and does not include 
+ 1. Run sbuild --resolve-alternatives --dist=xenial --arch=powerpc to confirm 
package build success and does not include golang dependencies or
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
+ grep Build-Depends *build
  
  2. Upload to ppa:ua-client/staging which is set to build both powerpc
  and riscv64 platforms by default and ensure no package build failures.
  
  3. Ensure go APT hook is still built and included in binary package as
  /usr/lib/ubuntu-advantage/apt-esm-json-hook
  
  4. Test functionality of go json hook on Xenial:
  
  4a. get token from ubuntu.com/advantage
  4b. ua attach 
  4c ua disable esm-infra
  4d apt upgrade  # check output for esm-infra package updates available.
- 
- 
  
  [Where problems could occur]
  
  * This is a low risk update as most problems will occur at package build
  time.
  
  * Accidental exclusion of /usr/lib/ubuntu-advantage/apt-esm-json-hook
  only results in the absence of a single informative message during `apt
  upgrade` or `apt dist-upgrade` which would describe detailed source for
  where package updates are originating:
  
  "1 standard security update, 1 esm-infra update and 2 esm-apps updates"
  
  * Without a packaged json hook, the message will be absent and no
  tracebacks or non-zero exits from APT
  
- 
  [Other Info]
  
  [Original Description]
-  
-  * Anything else you think is useful to include
-  * Anticipate questions from users, SRU, +1 maintenance, security teams and 
the Technical Board
-  * and address these questions in advance
+ 
+  * Anything else you think is useful to include
+  * Anticipate questions from users, SRU, +1 maintenance, security teams and 
the Technical Board
+  * and address these questions in advance
  
  ubuntu-advantage-tools 27.0~16.04.1 fails to build from source in PPAs
  or locally via sbuild on powerpc platform due to golang package
  dependency issues:
  
  $ sbuild --resolve-alternatives --dist=xenial --arch=powerpc --arch-all 
../out/ubuntu-advantage-tools_27.0~16.04.1.dsc
  
  
  Merged Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  Filtered Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  dpkg-deb: building package 'sbuild-build-depends-main-dummy' in 
'/<>/apt_archive/sbuild-build-depends-main-dummy.deb'.
  Ign:1 copy:/<>/apt_archive ./ InRelease
  Get:2 copy:/<>/apt_archive ./ Release [957 B]
  Ign:3 copy:/<>/apt_archive ./ Release.gpg
  Get:4 copy:/<>/apt_archive ./ Sources [481 B]
  Get:5 copy:/<>/apt_archive ./ Packages [565 B]
  Fetched 2003 B in 0s (9192 B/s)
  Reading package lists...
  Reading package lists...
  
  Install main build dependencies (apt-based resolver)
  
  
  Installing build dependencies
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   sbuild-build-depends-main-dummy : Depends: golang but it is not going to be 
installed
  E: Unable to correct problems, you have held broken packages.
  apt-get failed.
  E: Package installation failed
  
  ...
     missing:
   pkg:
    package: golang:powerpc
    version: 2:1.6-1ubuntu4
    architecture: all
    essential: false
    unsat-dependency: golang-src:powerpc (>= 2:1.6-1ubuntu4)
   depchains:
    -
     depchain:
  -
   package: sbuild-build-depends-main-dummy:powerpc
   version: 0.invalid.0
   architecture: powerpc
   essential: false
   depends: golang:powerpc

-- 
Y

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-10 Thread Chad Smith
** Description changed:

+ [Impact]
+ 
+  * Local package build attempts on powerpc platform as well as cloud
+ image builds for powerpc on Xenial were affected by inability to resolve
+ correct golang dependencies. Allowing debian/control and package
+ Makefiles to ignore building and packaging ubuntu-advantage-tools'
+ golang hook binary allows for package builds to succeed with minimal
+ impact to usability and user-messaging.
+ 
+ 
+ [Test Plan]
+ 
+ 1. Run sbuild --resolve-alternatives --dist=xenial --arch=powerpc to confirm 
package build success and does not include 
+ /usr/lib/ubuntu-advantage/apt-esm-json-hook
+ 
+ 2. Upload to ppa:ua-client/staging which is set to build both powerpc
+ and riscv64 platforms by default and ensure no package build failures.
+ 
+ 3. Ensure go APT hook is still built and included in binary package as
+ /usr/lib/ubuntu-advantage/apt-esm-json-hook
+ 
+ 4. Test functionality of go json hook on Xenial:
+ 
+ 4a. get token from ubuntu.com/advantage
+ 4b. ua attach 
+ 4c ua disable esm-infra
+ 4d apt upgrade  # check output for esm-infra package updates available.
+ 
+ 
+ 
+ [Where problems could occur]
+ 
+ * This is a low risk update as most problems will occur at package build
+ time.
+ 
+ * Accidental exclusion of /usr/lib/ubuntu-advantage/apt-esm-json-hook
+ only results in the absence of a single informative message during `apt
+ upgrade` or `apt dist-upgrade` which would describe detailed source for
+ where package updates are originating:
+ 
+ "1 standard security update, 1 esm-infra update and 2 esm-apps updates"
+ 
+ * Without a packaged json hook, the message will be absent and no
+ tracebacks or non-zero exits from APT
+ 
+ 
+ [Other Info]
+ 
+ [Original Description]
+  
+  * Anything else you think is useful to include
+  * Anticipate questions from users, SRU, +1 maintenance, security teams and 
the Technical Board
+  * and address these questions in advance
+ 
  ubuntu-advantage-tools 27.0~16.04.1 fails to build from source in PPAs
  or locally via sbuild on powerpc platform due to golang package
  dependency issues:
  
  $ sbuild --resolve-alternatives --dist=xenial --arch=powerpc --arch-all 
../out/ubuntu-advantage-tools_27.0~16.04.1.dsc
  
  
  Merged Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  Filtered Build-Depends: bash-completion, debhelper (>= 9), debianutils, 
dh-python, dh-systemd | debhelper (>= 13.3), gettext, git, golang, 
libapt-pkg-dev, po-debconf, python3 (>= 3.4), distro-info, python3-flake8, 
python3-mock, python3-pytest, python3-setuptools, python3-yaml, 
build-essential, fakeroot
  dpkg-deb: building package 'sbuild-build-depends-main-dummy' in 
'/<>/apt_archive/sbuild-build-depends-main-dummy.deb'.
  Ign:1 copy:/<>/apt_archive ./ InRelease
  Get:2 copy:/<>/apt_archive ./ Release [957 B]
  Ign:3 copy:/<>/apt_archive ./ Release.gpg
  Get:4 copy:/<>/apt_archive ./ Sources [481 B]
  Get:5 copy:/<>/apt_archive ./ Packages [565 B]
  Fetched 2003 B in 0s (9192 B/s)
  Reading package lists...
  Reading package lists...
  
  Install main build dependencies (apt-based resolver)
  
  
  Installing build dependencies
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   sbuild-build-depends-main-dummy : Depends: golang but it is not going to be 
installed
  E: Unable to correct problems, you have held broken packages.
  apt-get failed.
  E: Package installation failed
  
  ...
-missing:
-  pkg:
-   package: golang:powerpc
-   version: 2:1.6-1ubuntu4
-   architecture: all
-   essential: false
-   unsat-dependency: golang-src:powerpc (>= 2:1.6-1ubuntu4)
-  depchains:
-   -
-depchain:
- -
-  package: sbuild-build-depends-main-dummy:powerpc
-  version: 0.invalid.0
-  architecture: powerpc
-  essential: false
-  depends: golang:powerpc
+    missing:
+  pkg:
+   package: golang:powerpc
+   version: 2:1.6-1ubuntu4
+   architecture: all
+   essential: false
+   unsat-dependency: golang-src:powerpc (>= 2:1.6-1ubuntu4)
+  depchains:
+   -
+    depchain:
+ -
+  package: sbuild-build-depends-main-dummy:powerpc
+  version: 0.invalid.0
+  architecture: powerpc
+  essential: false
+  depends: golang:po

[Bug 1927886] Re: xenial powerpc build failures golang dependency issues

2021-05-10 Thread Chad Smith
** Also affects: ubuntu-advantage-tools (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Xenial)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Groovy)
   Importance: Undecided
   Status: New

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: New => Fix Committed

** Also affects: ubuntu-advantage-tools (Ubuntu Impish)
   Importance: Undecided
   Status: Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927886

Title:
  xenial powerpc build failures golang dependency issues

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1927886/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs