Merge ~ahasenack/ubuntu/+source/freeipmi:eoan-freeipmi-merge-1.6 into ubuntu/+source/freeipmi:debian/sid
- Git
- lp:~ahasenack/ubuntu/+source/freeipmi
- eoan-freeipmi-merge-1.6
- Merge into debian/sid
Status: | Merged |
---|---|
Approved by: | Andreas Hasenack |
Approved revision: | 03aba25301ee734eecf409caeb6105efe0a0198a |
Merge reported by: | Andreas Hasenack |
Merged at revision: | 03aba25301ee734eecf409caeb6105efe0a0198a |
Proposed branch: | ~ahasenack/ubuntu/+source/freeipmi:eoan-freeipmi-merge-1.6 |
Merge into: | ubuntu/+source/freeipmi:debian/sid |
Diff against target: |
412 lines (+227/-91) 8 files modified
debian/NEWS (+26/-0) debian/changelog (+170/-0) debian/control (+3/-1) debian/freeipmi-ipmidetect.maintscript (+1/-0) debian/patches/dso-linking.patch (+23/-0) debian/patches/series (+1/-0) debian/rules (+3/-1) dev/null (+0/-89) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Ehrhardt (community) | Approve | ||
Canonical Server | Pending | ||
Bryce Harrington | Pending | ||
Review via email: mp+368338@code.launchpad.net |
Commit message
Description of the change
This is the merge of freeipmi 1.6 from debian into ubuntu.
There is one tricky thing with this merge.
A huge patch that ubuntu has been carrying since zesty was finally merged upstream, but with a small change: two symbols that were plural, became singular:
ipmi_cmd_
And
tmpl_cmd_
This happened during review, and Ubuntu decided to apply the patch before it was fully merged upstream.
To make things a bit worse, the soname didn't change between freeipmi 1.5 (current version in eoan) and this new 1.6 one.
The MP as it stands here re-introduces the plural forms, but untested. I would rather not do that, but I kept it in the MP to facilitate review.
Here is what I checked regarding these two symbols:
- google search: only hit is the ubuntu patch
- debian code search (https:/
- reverse build-depends in ubuntu: conman (universe), ipmitool (universe), ipmiutil (universe), nut (main), slurm-llnl (universe): no hits for either form
- maas, who was the main driver behind this ipv6 delta, confirmed that they only use the freeipmi command line tool, and not the library:
<andreas> roaksoax: maas uses the command line only?
<roaksoax> andreas: of freeipmi ? yes
Based on the above, it feels like the only remaining risk is for some third party app having linked to our version of freeipmi and used the plural form of those symbols. That would break the moment it tried to run with this package installed with the singular form only, specially since the soname didn't change.
So, looking for opinions here. Add back the plural form of the symbols, and do some testing, or drop it and assume it won't cause a problem, but if it will, the fix is simple, as long as the source code for the affected app is available?
Andreas Hasenack (ahasenack) wrote : | # |
Andreas Hasenack (ahasenack) wrote : | # |
This is a ppa without the extra plural symbols: https:/
This one is with the symbols, representing this branch: https:/
Andreas Hasenack (ahasenack) wrote : | # |
I investigated the /etc/default/* situation. It's the usual moved-from-
- there were two such files: /etc/default/
- /etc/default/
- /etc/default/
When systemd happened, the RUN= setting of both files started to be ignored, leading to bugs where the service would attempt to start while unconfigured. In fact, if you install freeipmi-ipmidetect right now in eoan, it will fail.
Version 1.6.3-1.1 is an NMU to fix this failure. It basically removes the RUN= variable from the default files, and uses dh_installinit in d/rules to install the ipmidetectd and bmc-watchdog services with --no-enable and --no-start. This has the same effect as having set RUN=no when sysv was used.
Since /etc/default/
/etc/default/
So I will add a maintainer script to rm_conffile /etc/default/
Andreas Hasenack (ahasenack) wrote : | # |
I'm not sure why the rm_conffile maintscript isn't kicking in. After upgrading from 1.5.7 to 1.6.3-1.
The documentation says that if the conf file wasn't changed, postinst would remove <file>.dpkg-remove. Did I use the wrong version in the maintscript, or is this just a side effect of doing the test with ~ppaN builds?
Bryce Harrington (bryce) wrote : | # |
Regarding the pluralized symbols, it looks like these have shipped in cosmic and disco, but not bionic. That's a fair amount of time for people to start using the symbols. However, it doesn't seem practical to carry these symbols indefinitely, certainly not into the next LTS, and if they're dropped now then that reduces the chance of others using them and increases the time available for folks to notice breakage and migrate.
Perhaps toss the eoan packages of conman (universe), ipmitool (universe), ipmiutil (universe), nut (main), and slurm-llnl (universe) into your PPA and verify they all build fine. After this lands in main, would it be worth doing no-change rebuilds of those packages in the archive just to make sure they're on the right ABI?
Andreas Hasenack (ahasenack) wrote : | # |
> Regarding the pluralized symbols, it looks like these have shipped in cosmic
> and disco, but not bionic. That's a fair amount of time for people to start
> using the symbols. However, it doesn't seem practical to carry these symbols
> indefinitely, certainly not into the next LTS, and if they're dropped now then
> that reduces the chance of others using them and increases the time available
> for folks to notice breakage and migrate.
It's since zesty at least:
freeipmi (1.4.11-1.1ubuntu3) zesty; urgency=medium
* Add ipv6 ipmi-discovery. LP: #1645912. See also:
https:/
-- LaMont Jones <email address hidden> Tue, 24 Jan 2017 16:22:05 -0700
bionic has it, for example, in 1.4.11-1.1ubuntu4. It was just never rebuilt for bionic, that 1.1ubuntu4 build is from artful. Just cosmic got a new merge finally.
Not carrying these symbols into the next LTS is a good point, meaning now would be a good time to drop them and see what happens.
> Perhaps toss the eoan packages of conman (universe), ipmitool (universe),
> ipmiutil (universe), nut (main), and slurm-llnl (universe) into your PPA and
> verify they all build fine. After this lands in main, would it be worth doing
> no-change rebuilds of those packages in the archive just to make sure they're
> on the right ABI?
I can do that.
Andreas Hasenack (ahasenack) wrote : | # |
> Regarding the pluralized symbols, it looks like these have shipped in cosmic
> and disco, but not bionic. That's a fair amount of time for people to start
> using the symbols. However, it doesn't seem practical to carry these symbols
> indefinitely, certainly not into the next LTS, and if they're dropped now then
> that reduces the chance of others using them and increases the time available
> for folks to notice breakage and migrate.
It's since zesty at least:
freeipmi (1.4.11-1.1ubuntu3) zesty; urgency=medium
* Add ipv6 ipmi-discovery. LP: #1645912. See also:
https:/
-- LaMont Jones <email address hidden> Tue, 24 Jan 2017 16:22:05 -0700
bionic has it, for example, in 1.4.11-1.1ubuntu4. It was just never rebuilt for bionic, that 1.1ubuntu4 build is from artful. Just cosmic got a new merge finally.
Not carrying these symbols into the next LTS is a good point, meaning now would be a good time to drop them and see what happens.
> Perhaps toss the eoan packages of conman (universe), ipmitool (universe),
> ipmiutil (universe), nut (main), and slurm-llnl (universe) into your PPA and
> verify they all build fine. After this lands in main, would it be worth doing
> no-change rebuilds of those packages in the archive just to make sure they're
> on the right ABI?
I can do that.
Andreas Hasenack (ahasenack) wrote : | # |
> Perhaps toss the eoan packages of conman (universe), ipmitool (universe),
> ipmiutil (universe), nut (main), and slurm-llnl (universe) into your PPA and
> verify they all build fine. After this lands in main, would it be worth doing
> no-change rebuilds of those packages in the archive just to make sure they're
> on the right ABI?
I uploaded no-change-rebuilds of these packages to the no-plural-symbols ppa:
https:/
freeipmi in that ppa is the same branch as this one here, but reverting:
e446f494cafefff
008b27d6e63870c
Andreas Hasenack (ahasenack) wrote : | # |
I could copy all these to a bileto ppa and let it chew through the dep8 tests that exist.
Andreas Hasenack (ahasenack) wrote : | # |
Bileto is useless I'm afraid, it's not recording the tests properly: https:/
All are "in progress" and "always failed" and link to http://
Christian Ehrhardt (paelzer) wrote : | # |
That is what I had in the past
maybe a chance to try https:/
Andreas Hasenack (ahasenack) wrote : | # |
Took some learning, but the good news is that the test runs almost immediately with that manager.
I ran dep8 tests for nut and slurm-llnl using this freeipmi without plural symbols, and they passed.
I'll get the non-plural-symbols branch in shape for an upload.
- 6bb5d61... by Andreas Hasenack
-
merge-changelogs
- 7c4b686... by Andreas Hasenack
-
reconstruct-
changelog - 38b115c... by Andreas Hasenack
-
update-maintainer
- 354ca25... by Andreas Hasenack
-
* Added:
- d/NEWS: explain the removal of RUN= settings in /etc/default
configuration files. - c01e427... by Andreas Hasenack
-
- d/freeipmi-
ipmidetect. maintscript: handle removal of obsolete
/etc/default/ ipmidetectd configuration file
Andreas Hasenack (ahasenack) wrote : | # |
I deleted the https:/
- 9559a63... by Andreas Hasenack
-
- d/NEWS: add section about the dropping of the plural symbols
- 03aba25... by Andreas Hasenack
-
d/changelog update for added delta
Andreas Hasenack (ahasenack) wrote : | # |
I pushed all of this to the PPA at https:/
Christian Ehrhardt (paelzer) wrote : | # |
I added some bikeshedding feedback which you are free(ipmi) to implement or not.
Functionally you have my +1, the rest is up to you.
Andreas Hasenack (ahasenack) wrote : | # |
Thanks for the review, replied inline.
Andreas Hasenack (ahasenack) wrote : | # |
Christian and I talked and agreed this is a simple way forward, and it's not worth it complicating this issue further.
Andreas Hasenack (ahasenack) wrote : | # |
Ok, I figured out why the removal of the conf file wasn't working correctly for freeipmi-
https:/
To verify, I installed 1.5.7-2u1, got the expected failure, edited its postinst and commented the bit that tries to start the service. Ran apt -f install, all was fine, and then I upgraded to 1.6.3, which removed the ipmitedectd config file as expected.
Andreas Hasenack (ahasenack) wrote : | # |
Tagged and uploaded
$ git push pkg upload/
Enumerating objects: 63, done.
Counting objects: 100% (63/63), done.
Delta compression using up to 2 threads
Compressing objects: 100% (55/55), done.
Writing objects: 100% (56/56), 9.39 KiB | 1.88 MiB/s, done.
Total 56 (delta 38), reused 0 (delta 0)
To ssh://git.
* [new tag] upload/
$ dput ubuntu ../freeipmi_
Checking signature on .changes
gpg: ../freeipmi_
Checking signature on .dsc
gpg: ../freeipmi_
Uploading to ubuntu (via ftp to upload.ubuntu.com):
Uploading freeipmi_
Uploading freeipmi_
Uploading freeipmi_
Uploading freeipmi_
Uploading freeipmi_
Successfully uploaded packages.
Andreas Hasenack (ahasenack) wrote : | # |
This migrated already, not sure why the MP wasn't auto-closed/merged.
Preview Diff
1 | diff --git a/debian/NEWS b/debian/NEWS |
2 | index a2e236f..ed8ed29 100644 |
3 | --- a/debian/NEWS |
4 | +++ b/debian/NEWS |
5 | @@ -1,3 +1,29 @@ |
6 | +freeipmi (1.6.3-1.1ubuntu1) eoan; urgency=low |
7 | + |
8 | + The use of RUN=yes|no in /etc/default configuration files is deprecated. |
9 | + Speficically, this setting was removed from /etc/default/bmc-watchdog and, |
10 | + since it was the only setting in /etc/default/ipmidetectd, that file was |
11 | + removed entirely. |
12 | + Please use systemctl enable|disable to control whether each service should |
13 | + start or not. |
14 | + . |
15 | + Since 1.4.11-1.1ubuntu2 and 1.4.11-1.1ubuntu3, Ubuntu has been carrying two |
16 | + patches to enable IPv6 in IPMI discovery and IPMI power. These patches were |
17 | + eventually accepted upstream, and released in the 1.6.x series, but with two |
18 | + symbols renamed to a singular form: |
19 | + - ipmi_cmd_get_lan_configuration_parameters_ipv6_dynamic_addresses became |
20 | + ipmi_cmd_get_lan_configuration_parameters_ipv6_dynamic_address |
21 | + - tmpl_cmd_get_lan_configuration_parameters_ipv6_dynamic_addresses_rs became |
22 | + tmpl_cmd_get_lan_configuration_parameters_ipv6_dynamic_address_rs |
23 | + Ubuntu has now dropped the patches, which means the plural form of these |
24 | + symbols are no longer available. We checked as best as we could and it looks |
25 | + like nothing in the archive ever used them. |
26 | + If, after this update, you get errors regarding these symbols, please open |
27 | + a bug on the freeipmi package at the following address: |
28 | + https://bugs.launchpad.net/ubuntu/+source/freeipmi/+filebug |
29 | + |
30 | + -- Andreas Hasenack <andreas@canonical.com> Thu, 04 Jun 2019 20:14:33 +0000 |
31 | + |
32 | freeipmi (1.1.5-1) unstable; urgency=low |
33 | |
34 | * Config files were moved under /etc/freeipmi. Legacy location (under |
35 | diff --git a/debian/changelog b/debian/changelog |
36 | index 78cfd35..169fc19 100644 |
37 | --- a/debian/changelog |
38 | +++ b/debian/changelog |
39 | @@ -1,3 +1,40 @@ |
40 | +freeipmi (1.6.3-1.1ubuntu1) eoan; urgency=medium |
41 | + |
42 | + * Merge with Debian unstable. Remaining changes: |
43 | + - debian/rules: Build with "-pie,-bindnow" |
44 | + - Use dh-autoreconf to update libtool for ppc64el. |
45 | + - Fix dso linking on the convenience library. |
46 | + - d/p/0001-Fix-Wformat-security-warnings.patch: remove patch file that |
47 | + was not being applied since 1.1.6-1 |
48 | + [previously undocumented in 1.5.7-2ubuntu1] |
49 | + * Dropped: |
50 | + - Add ipv6 ipmi-discovery. |
51 | + [Fixed upstream in 1.6.x] |
52 | + - Add IPv6 support to ipmipower. |
53 | + [Fixed upstream in 1.6.x] |
54 | + - Cherry-pick patches from upstream that add support to ipmi-locate |
55 | + for parsing ACPI/SPMI tables out of sysfs (LP #1784926): |
56 | + + 0001-Fix-acpi-spmi-searching-corner-case.patch |
57 | + [Fixed upstream in 1.6.x] |
58 | + + 0002-Don-t-try-to-separate-the-header-from-the-ACPI-table.patch |
59 | + [Fixed upstream in 1.6.x] |
60 | + + 0003-Split-RSDT-XSDT-parsing-into-new-function.patch |
61 | + [Fixed upstream in 1.6.x] |
62 | + + 0004-Add-support-for-parsing-SPMI-tables-exposed-via-sysf.patch |
63 | + [Fixed upstream in 1.6.x] |
64 | + + 0005-Allow-sysfs-SPMI-parsing-on-ARM-platforms.patch |
65 | + [Fixed upstream in 1.6.x] |
66 | + + 0006-Correct-order-of-bytes-in-specification_revision-fie.patch |
67 | + [Fixed upstream in 1.6.x] |
68 | + * Added: |
69 | + - d/NEWS: explain the removal of RUN= settings in /etc/default |
70 | + configuration files. |
71 | + - d/NEWS: add section about the dropping of the plural symbols |
72 | + - d/freeipmi-ipmidetect.maintscript: handle removal of obsolete |
73 | + /etc/default/ipmidetectd configuration file |
74 | + |
75 | + -- Andreas Hasenack <andreas@canonical.com> Fri, 14 Jun 2019 16:47:40 -0300 |
76 | + |
77 | freeipmi (1.6.3-1.1) unstable; urgency=high |
78 | |
79 | * Non-maintainer upload. |
80 | @@ -46,6 +83,28 @@ freeipmi (1.5.7-2.1) unstable; urgency=low |
81 | |
82 | -- Andreas Metzler <ametzler@debian.org> Sat, 27 Oct 2018 09:47:18 +0200 |
83 | |
84 | +freeipmi (1.5.7-2ubuntu1) cosmic; urgency=medium |
85 | + |
86 | + * Merge from Debian unstable. Remaining changes: |
87 | + - debian/rules: Build with "-pie,-bindnow" |
88 | + - Use dh-autoreconf to update libtool for ppc64el. |
89 | + - Fix dso linking on the convenience library. |
90 | + - Add IPv6 support to ipmipower. |
91 | + - Add ipv6 ipmi-discovery. |
92 | + * Dropped changes, included upstream: |
93 | + - Use kernel DMI table interface, when available, instead of trolling |
94 | + /dev/mem to avoid a crash on ARM. LP: #1699933. |
95 | + * Cherry-pick patches from upstream that add support to ipmi-locate |
96 | + for parsing ACPI/SPMI tables out of sysfs (LP: #1784926): |
97 | + - 0001-Fix-acpi-spmi-searching-corner-case.patch |
98 | + - 0002-Don-t-try-to-separate-the-header-from-the-ACPI-table.patch |
99 | + - 0003-Split-RSDT-XSDT-parsing-into-new-function.patch |
100 | + - 0004-Add-support-for-parsing-SPMI-tables-exposed-via-sysf.patch |
101 | + - 0005-Allow-sysfs-SPMI-parsing-on-ARM-platforms.patch |
102 | + - 0006-Correct-order-of-bytes-in-specification_revision-fie.patch |
103 | + |
104 | + -- dann frazier <dann.frazier@canonical.com> Thu, 02 Aug 2018 15:13:57 -0600 |
105 | + |
106 | freeipmi (1.5.7-2) unstable; urgency=medium |
107 | |
108 | * upload to unstable |
109 | @@ -69,6 +128,62 @@ freeipmi (1.5.7-1) experimental; urgency=medium |
110 | |
111 | -- Bernd Zeimetz <bzed@debian.org> Thu, 26 Oct 2017 12:37:18 +0200 |
112 | |
113 | +freeipmi (1.4.11-1.1ubuntu4) artful; urgency=medium |
114 | + |
115 | + * Use kernel DMI table interface, when available, instead of trolling |
116 | + /dev/mem to avoid a crash on ARM. LP: #1699933. |
117 | + |
118 | + -- dann frazier <dann.frazier@canonical.com> Wed, 28 Jun 2017 13:26:09 -0600 |
119 | + |
120 | +freeipmi (1.4.11-1.1ubuntu3) zesty; urgency=medium |
121 | + |
122 | + * Add ipv6 ipmi-discovery. LP: #1645912. See also: |
123 | + https://github.com/chu11/freeipmi-mirror/pull/12/commits/32721f88cd37aa4ca1564c243669f96628089986 |
124 | + |
125 | + -- LaMont Jones <lamont@canonical.com> Tue, 24 Jan 2017 16:22:05 -0700 |
126 | + |
127 | +freeipmi (1.4.11-1.1ubuntu2) zesty; urgency=medium |
128 | + |
129 | + * Add IPv6 support to ipmipower. This partially addresses lp bug 1618543. |
130 | + |
131 | + -- LaMont Jones <lamont@canonical.com> Wed, 23 Nov 2016 08:17:27 -0700 |
132 | + |
133 | +freeipmi (1.4.11-1.1ubuntu1) zesty; urgency=low |
134 | + |
135 | + * Merge from Debian unstable. Remaining changes: |
136 | + - debian/rules: Build with "-pie,-bindnow" |
137 | + - Use dh-autoreconf to update libtool for ppc64el. |
138 | + - Fix dso linking on the convenience library. |
139 | + |
140 | + -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 20 Oct 2016 23:07:23 -0700 |
141 | + |
142 | +freeipmi (1.4.11-1.1) unstable; urgency=medium |
143 | + |
144 | + * Non-maintainer upload. |
145 | + * Fix "not binNMU safe" (Closes: #829085) by making freeipmi-common |
146 | + arch:any instead of arch:all. A better fix can be found later if required. |
147 | + |
148 | + -- Vincent Danjean <vdanjean@debian.org> Mon, 05 Sep 2016 09:55:48 +0200 |
149 | + |
150 | +freeipmi (1.4.11-1ubuntu1) xenial; urgency=low |
151 | + |
152 | + * Merge from Debian unstable (LP: #1527685). Remaining changes: |
153 | + - debian/rules: Build with "-pie,-bindnow" |
154 | + - Use dh-autoreconf to update libtool for ppc64el. |
155 | + - Fix dso linking on the convenience library. |
156 | + * Dropped changes, included upstream: |
157 | + - debian/patches/0002_excel_when_opening_tmp.patch: Open files with |
158 | + O_EXCL. |
159 | + - debian/patches/fix-Wunused-result.patch: Resolve -Wunused-result's |
160 | + warnings, by checking for non-0 return. |
161 | + - debian/patches/Retry-ssif-reads-as-needed.patch: Retry SSIF reads |
162 | + as needed |
163 | + - debian/patches/freeipmi-uefi.patch: Fix ipmi-locate on non ia64 |
164 | + architectures. |
165 | + - Don't probe the legacy SMBIOS address in /dev/mem on ARM platforms. |
166 | + |
167 | + -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 24 Dec 2015 22:17:36 -0600 |
168 | + |
169 | freeipmi (1.4.11-1) unstable; urgency=medium |
170 | |
171 | * [186d83b] Merge tag 'upstream/1.4.11' |
172 | @@ -173,6 +288,60 @@ freeipmi (1.1.5-4) experimental; urgency=low |
173 | |
174 | -- Yaroslav Halchenko <debian@onerussian.com> Wed, 11 Jul 2012 13:34:54 -0400 |
175 | |
176 | +freeipmi (1.1.5-3ubuntu7) wily; urgency=medium |
177 | + |
178 | + * Don't probe the legacy SMBIOS address in /dev/mem on ARM platforms. |
179 | + (LP: #1499838) |
180 | + |
181 | + -- dann frazier <dann.frazier@canonical.com> Thu, 08 Oct 2015 15:31:28 -0600 |
182 | + |
183 | +freeipmi (1.1.5-3ubuntu6) vivid; urgency=medium |
184 | + |
185 | + * No-change rebuild for the libgcrypt20 transition. |
186 | + |
187 | + -- Adam Conrad <adconrad@ubuntu.com> Fri, 27 Mar 2015 06:16:15 -0600 |
188 | + |
189 | +freeipmi (1.1.5-3ubuntu5) utopic; urgency=medium |
190 | + |
191 | + * debian/patches/freeipmi-uefi.patch: Fix ipmi-locate on non ia64 |
192 | + architectures. (LP: #1359285) |
193 | + |
194 | + -- Chuck Short <zulcss@ubuntu.com> Wed, 20 Aug 2014 12:43:55 -0400 |
195 | + |
196 | +freeipmi (1.1.5-3ubuntu4) utopic; urgency=medium |
197 | + |
198 | + * debian/patches/Retry-ssif-reads-as-needed.patch: Retry SSIF reads |
199 | + as needed, LP: #1324992 |
200 | + |
201 | + -- dann frazier <dann.frazier@canonical.com> Fri, 30 May 2014 15:53:06 -0600 |
202 | + |
203 | +freeipmi (1.1.5-3ubuntu3) trusty; urgency=medium |
204 | + |
205 | + * Use dh-autoreconf to update libtool for ppc64el. |
206 | + * Fix dso linking on the convenience library. |
207 | + |
208 | + -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 24 Dec 2013 20:06:43 +0000 |
209 | + |
210 | +freeipmi (1.1.5-3ubuntu2) quantal; urgency=low |
211 | + |
212 | + * No change rebuild to resolve publication issue. |
213 | + |
214 | + -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Tue, 09 Oct 2012 15:03:20 +0100 |
215 | + |
216 | +freeipmi (1.1.5-3ubuntu1) quantal; urgency=low |
217 | + |
218 | + * Resolve outstanding MIR issues, LP: #1052056 |
219 | + |
220 | + [ Andres Rodriguez ] |
221 | + * debian/rules: Build with "-pie,-bindnow" |
222 | + * debian/patches/0002_excel_when_opening_tmp.patch: Open files with O_EXCL. |
223 | + |
224 | + [ Dave Walker (Daviey) ] |
225 | + * debian/patches/fix-Wunused-result.patch: Resolve -Wunused-result's |
226 | + warnings, by checking for non-0 return. |
227 | + |
228 | + -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Sun, 07 Oct 2012 22:22:20 +0100 |
229 | + |
230 | freeipmi (1.1.5-3) unstable; urgency=low |
231 | |
232 | * Move into packages forgotten: |
233 | @@ -345,3 +514,4 @@ freeipmi (0.5.1-1) UNRELEASED; urgency=low |
234 | * Rewritten as per upstream's preferred package split |
235 | |
236 | -- Matthew Johnson <mjj29@debian.org> Sat, 12 Jul 2008 19:39:25 +0100 |
237 | + |
238 | diff --git a/debian/control b/debian/control |
239 | index e0127d5..848eab4 100644 |
240 | --- a/debian/control |
241 | +++ b/debian/control |
242 | @@ -1,11 +1,13 @@ |
243 | Source: freeipmi |
244 | Section: admin |
245 | Priority: extra |
246 | -Maintainer: Bernd Zeimetz <bzed@debian.org> |
247 | +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
248 | +XSBC-Original-Maintainer: Bernd Zeimetz <bzed@debian.org> |
249 | Uploaders: Yaroslav Halchenko <debian@onerussian.com> |
250 | Build-Depends: debhelper (>= 9), |
251 | autotools-dev (>= 20100122.1~), |
252 | libgcrypt20-dev, |
253 | + dh-autoreconf, |
254 | chrpath |
255 | Standards-Version: 3.9.3 |
256 | Homepage: http://www.gnu.org/software/freeipmi/ |
257 | diff --git a/debian/freeipmi-ipmidetect.maintscript b/debian/freeipmi-ipmidetect.maintscript |
258 | new file mode 100644 |
259 | index 0000000..d35db94 |
260 | --- /dev/null |
261 | +++ b/debian/freeipmi-ipmidetect.maintscript |
262 | @@ -0,0 +1 @@ |
263 | +rm_conffile /etc/default/ipmidetectd 1.6.3-1.1ubuntu1~ freeipmi-ipmidetect |
264 | diff --git a/debian/patches/0001-Fix-Wformat-security-warnings.patch b/debian/patches/0001-Fix-Wformat-security-warnings.patch |
265 | deleted file mode 100644 |
266 | index 55484c1..0000000 |
267 | --- a/debian/patches/0001-Fix-Wformat-security-warnings.patch |
268 | +++ /dev/null |
269 | @@ -1,89 +0,0 @@ |
270 | -From: Albert Chu <chu11@llnl.gov> |
271 | -Date: Tue, 5 Jun 2012 20:59:40 +0000 |
272 | -Subject: [PATCH] Fix -Wformat-security warnings |
273 | - |
274 | -Origin: upstream svn |
275 | -Last-Update: 2012-06-05 |
276 | - |
277 | -git-svn-id: svn://svn.savannah.gnu.org/freeipmi/trunk@9160 f7bdd6f0-feb3-4745-876d-a5d75e847258 |
278 | ---- |
279 | - ChangeLog | 8 ++++++++ |
280 | - common/miscutil/conffile.c | 8 ++++---- |
281 | - libfreeipmi/util/ipmi-device-types-util.c | 2 +- |
282 | - .../util/ipmi-sensor-and-event-code-tables-util.c | 2 +- |
283 | - libfreeipmi/util/ipmi-sensor-util.c | 2 +- |
284 | - 5 files changed, 15 insertions(+), 7 deletions(-) |
285 | - |
286 | -diff --git a/common/miscutil/conffile.c b/common/miscutil/conffile.c |
287 | -index 0d9fcfd..04b368e 100644 |
288 | ---- a/common/miscutil/conffile.c |
289 | -+++ b/common/miscutil/conffile.c |
290 | -@@ -149,14 +149,14 @@ conffile_errmsg(conffile_t cf, char *buf, int buflen) |
291 | - |
292 | - if (cf == NULL) |
293 | - rv = snprintf(errbuf, CONFFILE_MAX_ERRMSGLEN, |
294 | -- _errmsg[CONFFILE_ERR_NULLHANDLE]); |
295 | -+ "%s", _errmsg[CONFFILE_ERR_NULLHANDLE]); |
296 | - else if (cf->magic != CONFFILE_MAGIC) |
297 | - rv = snprintf(errbuf, CONFFILE_MAX_ERRMSGLEN, |
298 | -- _errmsg[CONFFILE_ERR_MAGIC]); |
299 | -+ "%s", _errmsg[CONFFILE_ERR_MAGIC]); |
300 | - else if (cf->errnum < CONFFILE_ERR_SUCCESS |
301 | - || cf->errnum > CONFFILE_ERR_ERRNUMRANGE) |
302 | - rv = snprintf(errbuf, CONFFILE_MAX_ERRMSGLEN, |
303 | -- _errmsg[CONFFILE_ERR_ERRNUMRANGE]); |
304 | -+ "%s", _errmsg[CONFFILE_ERR_ERRNUMRANGE]); |
305 | - else if (cf->errnum == CONFFILE_ERR_PARSE_OPTION_UNKNOWN |
306 | - || cf->errnum == CONFFILE_ERR_PARSE_ARG_MISSING |
307 | - || cf->errnum == CONFFILE_ERR_PARSE_ARG_TOOMANY |
308 | -@@ -176,7 +176,7 @@ conffile_errmsg(conffile_t cf, char *buf, int buflen) |
309 | - _errmsg[cf->errnum], cf->line_num); |
310 | - else |
311 | - rv = snprintf(errbuf, CONFFILE_MAX_ERRMSGLEN, |
312 | -- _errmsg[cf->errnum]); |
313 | -+ "%s", _errmsg[cf->errnum]); |
314 | - |
315 | - if (rv >= buflen) |
316 | - return -1; |
317 | -diff --git a/libfreeipmi/util/ipmi-device-types-util.c b/libfreeipmi/util/ipmi-device-types-util.c |
318 | -index 899dbcf..187987b 100644 |
319 | ---- a/libfreeipmi/util/ipmi-device-types-util.c |
320 | -+++ b/libfreeipmi/util/ipmi-device-types-util.c |
321 | -@@ -55,7 +55,7 @@ _get_message (unsigned int offset, |
322 | - return (-1); |
323 | - } |
324 | - |
325 | -- return (snprintf (buf, buflen, string_array[offset])); |
326 | -+ return (snprintf (buf, buflen, "%s", string_array[offset])); |
327 | - } |
328 | - |
329 | - int |
330 | -diff --git a/libfreeipmi/util/ipmi-sensor-and-event-code-tables-util.c b/libfreeipmi/util/ipmi-sensor-and-event-code-tables-util.c |
331 | -index 9e07bc7..3dc6e76 100644 |
332 | ---- a/libfreeipmi/util/ipmi-sensor-and-event-code-tables-util.c |
333 | -+++ b/libfreeipmi/util/ipmi-sensor-and-event-code-tables-util.c |
334 | -@@ -1108,7 +1108,7 @@ _get_event_message (unsigned int offset, |
335 | - return (-1); |
336 | - } |
337 | - |
338 | -- return (snprintf (buf, buflen, string_array[offset])); |
339 | -+ return (snprintf (buf, buflen, "%s", string_array[offset])); |
340 | - } |
341 | - |
342 | - int |
343 | -diff --git a/libfreeipmi/util/ipmi-sensor-util.c b/libfreeipmi/util/ipmi-sensor-util.c |
344 | -index 0afeb34..943ffbb 100644 |
345 | ---- a/libfreeipmi/util/ipmi-sensor-util.c |
346 | -+++ b/libfreeipmi/util/ipmi-sensor-util.c |
347 | -@@ -64,7 +64,7 @@ ipmi_get_threshold_message (uint8_t offset, char *buf, unsigned int buflen) |
348 | - return (-1); |
349 | - } |
350 | - |
351 | -- return (snprintf (buf, buflen, threshold_comparison_status_desc[offset])); |
352 | -+ return (snprintf (buf, buflen, "%s", threshold_comparison_status_desc[offset])); |
353 | - } |
354 | - |
355 | - const char * |
356 | --- |
357 | -1.7.9.1 |
358 | - |
359 | diff --git a/debian/patches/dso-linking.patch b/debian/patches/dso-linking.patch |
360 | new file mode 100644 |
361 | index 0000000..e767806 |
362 | --- /dev/null |
363 | +++ b/debian/patches/dso-linking.patch |
364 | @@ -0,0 +1,23 @@ |
365 | +Description: link convenience library against the main one. |
366 | +Author: Dimitri John Ledkov <xnox@ubuntu.com> |
367 | + |
368 | +--- a/common/toolcommon/Makefile.am |
369 | ++++ b/common/toolcommon/Makefile.am |
370 | +@@ -37,3 +37,5 @@ |
371 | + tool-sensor-common.h \ |
372 | + tool-util-common.c \ |
373 | + tool-util-common.h |
374 | ++ |
375 | ++libtoolcommon_la_LIBADD = $(top_builddir)/libfreeipmi/libfreeipmi.la |
376 | +--- a/Makefile.am |
377 | ++++ b/Makefile.am |
378 | +@@ -5,8 +5,8 @@ |
379 | + SUBDIRS = \ |
380 | + doc \ |
381 | + etc \ |
382 | +- common \ |
383 | + libfreeipmi \ |
384 | ++ common \ |
385 | + libipmiconsole \ |
386 | + libipmimonitoring \ |
387 | + libipmidetect \ |
388 | diff --git a/debian/patches/series b/debian/patches/series |
389 | new file mode 100644 |
390 | index 0000000..cba5e70 |
391 | --- /dev/null |
392 | +++ b/debian/patches/series |
393 | @@ -0,0 +1 @@ |
394 | +dso-linking.patch |
395 | diff --git a/debian/rules b/debian/rules |
396 | index cb9c2ae..b7f8459 100755 |
397 | --- a/debian/rules |
398 | +++ b/debian/rules |
399 | @@ -1,10 +1,12 @@ |
400 | #!/usr/bin/make -f |
401 | # -*- makefile -*- |
402 | |
403 | +export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow |
404 | + |
405 | # --fail-missing for dh_install |
406 | # --link-doc for dh_installdocs |
407 | %: |
408 | - dh $@ --with autotools_dev --fail-missing --link-doc=freeipmi-common |
409 | + dh $@ --with autoreconf --fail-missing --link-doc=freeipmi-common |
410 | |
411 | override_dh_auto_configure: |
412 | : # suppress multiarch support for now |
Oh, I think I still need to handle this bit: "Handle debian's removal of the /etc/default config file with maintainerscripts" I was so focused on the changed symbols that I forgot about the above. But the symbols change can be reviewed in parallel.