Merge ~mitchdz/ubuntu/+source/ec2-hibinit-agent:fix-locale-and-quotes-mantic into ubuntu/+source/ec2-hibinit-agent:ubuntu/devel

Proposed by Mitchell Dzurick
Status: Merged
Merge reported by: Robie Basak
Merged at revision: ed847a1e624ca1cc262485041d4fc7ea17480cb5
Proposed branch: ~mitchdz/ubuntu/+source/ec2-hibinit-agent:fix-locale-and-quotes-mantic
Merge into: ubuntu/+source/ec2-hibinit-agent:ubuntu/devel
Diff against target: 78 lines (+50/-0)
4 files modified
debian/changelog (+11/-0)
debian/patches/lp2023924-remove-quotes-from-state-dir.patch (+19/-0)
debian/patches/lp2024505-fix-locale-issue.patch (+18/-0)
debian/patches/series (+2/-0)
Reviewer Review Type Date Requested Status
Utkarsh Gupta (community) Approve
Canonical Server Reporter Pending
Review via email: mp+445087@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hey, thanks for this! It looks good and I've uploaded to Mantic:

$ dput ubuntu ../ec2-hibinit-agent_1.0.0-0ubuntu15_source.changes
Checking signature on .changes
gpg: ../ec2-hibinit-agent_1.0.0-0ubuntu15_source.changes: Valid signature from 823E967606C34B96
Checking signature on .dsc
gpg: ../ec2-hibinit-agent_1.0.0-0ubuntu15.dsc: Valid signature from 823E967606C34B96
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ec2-hibinit-agent_1.0.0-0ubuntu15.dsc: done.
  Uploading ec2-hibinit-agent_1.0.0.orig.tar.gz: done.
  Uploading ec2-hibinit-agent_1.0.0-0ubuntu15.debian.tar.xz: done.
  Uploading ec2-hibinit-agent_1.0.0-0ubuntu15_source.buildinfo: done.
  Uploading ec2-hibinit-agent_1.0.0-0ubuntu15_source.changes: done.
Successfully uploaded packages.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index e3aaae8..0aa68c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
1ec2-hibinit-agent (1.0.0-0ubuntu15) mantic; urgency=medium
2
3 * debian/patches/lp2023924-remove-quotes-from-state-dir.patch: fixes
4 an issue where a weird directory would be created in root
5 (LP: #2023924)
6 * debian/patches/lp2024505-fix-locale-issue.patch: fixes an issue where
7 certain locales can cause an error when trying to decode the output of
8 `df -P` (LP: #2024505)
9
10 -- Mitchell Dzurick <mitchell.dzurick@canonical.com> Tue, 20 Jun 2023 17:01:17 -0700
11
1ec2-hibinit-agent (1.0.0-0ubuntu14) mantic; urgency=medium12ec2-hibinit-agent (1.0.0-0ubuntu14) mantic; urgency=medium
213
3 * d/p/lp1941785-Add-support-for-IMDSv2.patch: add IMDSv2 support14 * d/p/lp1941785-Add-support-for-IMDSv2.patch: add IMDSv2 support
diff --git a/debian/patches/lp2023924-remove-quotes-from-state-dir.patch b/debian/patches/lp2023924-remove-quotes-from-state-dir.patch
4new file mode 10064415new file mode 100644
index 0000000..d178d21
--- /dev/null
+++ b/debian/patches/lp2023924-remove-quotes-from-state-dir.patch
@@ -0,0 +1,19 @@
1Description: Remove quotes in config file for state_dir value
2It creates strange directory /"
3Author: Anchal Agarwal <anchalag@amazon.com>
4Origin: backport, https://github.com/aws/amazon-ec2-hibinit-agent/commit/d87d6365009f1663247fd8595b487c59d9b121f1
5Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/2023924
6Last-Update: 2023-06-20
7---
8This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9--- a/etc/hibinit-config.cfg
10+++ b/etc/hibinit-config.cfg
11@@ -12,7 +12,7 @@
12 touch-swap = False
13
14 # Location where to create any state files
15-state-dir = "/var/lib/hibinit-agent"
16+state-dir = /var/lib/hibinit-agent
17
18 [swap]
19 # If there's no swap then we create it to be equal to the specified
diff --git a/debian/patches/lp2024505-fix-locale-issue.patch b/debian/patches/lp2024505-fix-locale-issue.patch
0new file mode 10064420new file mode 100644
index 0000000..15a0a0d
--- /dev/null
+++ b/debian/patches/lp2024505-fix-locale-issue.patch
@@ -0,0 +1,18 @@
1Description: Change encoding to use the system locale instead of ascii.
2Author: einynot <111812541+einynot@users.noreply.github.com>
3Origin: backport, https://github.com/aws/amazon-ec2-hibinit-agent/commit/2392e860c7a75c2b61baef749bb90e79a2a3e81e
4Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/2024505
5Last-Update: 2023-06-20
6---
7This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8--- a/agent/hibinit-agent
9+++ b/agent/hibinit-agent
10@@ -145,7 +145,7 @@
11
12 def find_device_for_file(filename):
13 # Find the mount point for the swap file ('df -P /swap')
14- df_out = check_output(['df', '-P', filename]).decode('ascii')
15+ df_out = check_output(['df', '-P', filename]).decode(sys.getfilesystemencoding())
16 dev_str = df_out.split("\n")[1].split()[0]
17 return dev_str
18
diff --git a/debian/patches/series b/debian/patches/series
index 043841d..0dce030 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,5 @@ detect-hibernate-cmd-by-default.patch
10lp1968805-Swapon-with-maximum-priority-before-hibernation.patch10lp1968805-Swapon-with-maximum-priority-before-hibernation.patch
11fix-setuptools-package-discovery.patch11fix-setuptools-package-discovery.patch
12lp1941785-Add-support-for-IMDSv2.patch12lp1941785-Add-support-for-IMDSv2.patch
13lp2023924-remove-quotes-from-state-dir.patch
14lp2024505-fix-locale-issue.patch

Subscribers

People subscribed via source and target branches