Merge ~nacc/ubuntu/+source/openipmi:merge into ~usd-import-team/ubuntu/+source/openipmi:debian/sid

Proposed by Nish Aravamudan on 2016-06-16
Status: Needs review
Proposed branch: ~nacc/ubuntu/+source/openipmi:merge
Merge into: ~usd-import-team/ubuntu/+source/openipmi:debian/sid
Diff against target: 372 lines (+225/-9)
7 files modified
debian/changelog (+189/-2)
debian/control (+2/-1)
debian/dirs (+1/-0)
debian/openipmi.init (+11/-6)
debian/patches/fix_pthread_pkg_config.patch (+19/-0)
debian/patches/series (+1/-0)
debian/rules (+2/-0)
Reviewer Review Type Date Requested Status
Robie Basak 2016-06-16 Needs Information on 2016-06-21
Review via email: mp+297709@code.launchpad.net
To post a comment you must log in.
Robie Basak (racb) wrote :

Good job with a complex, messy merge. Minor nitpicks inline. This is substantially correct though. I especially like the amount of Ubuntu delta we're able to drop.

review: Needs Information
Nish Aravamudan (nacc) wrote :
Download full text (3.8 KiB)

On 21.06.2016 [13:27:00 -0000], Robie Basak wrote:
> Review: Needs Information
>
> Good job with a complex, messy merge. Minor nitpicks inline. This is
> substantially correct though. I especially like the amount of Ubuntu
> delta we're able to drop.

Yep, that seemed like a net-positive :)

> Diff comments:
>
> > diff --git a/debian/changelog b/debian/changelog
> > index 8ade0c3..4b0450b 100644
> > --- a/debian/changelog
> > +++ b/debian/changelog
> > @@ -1,3 +1,44 @@
> > +openipmi (2.0.21-1.2ubuntu1) yakkety; urgency=medium
> > +
> > + * Merge with Debian unstable (LP: #1593461). Remaining changes:
> > + - debian/openipmi.init: Change lockfile path. '/var/log/subsys' does
> > + not exists in Debian. (LP #722770)
> > + - Fix up packaging to install and use /etc/default/openipmi.
> > + (LP #473332) Thanks to Serge Hallyn.
> > + - Patch libtool macro support in for ppc64el shared libaries.
> > + - Detect that a module is built into the kernel.
> > + + LP #1309860
> > + - debian/openipmi.init: Do not unload all modules if some configured
> > + HW modules are not successfully loaded (LP #1318317).
> > + * Drop:
> > + - debian/rules, debian/openipmi.init:
> > + + added init script
> > + [ Fixed in Debian ]
> > + - Do not explicitly depend on pthread.
> > + [ previously documented ]
> > + - Only use SIGPWR if defined.
> > + [ Previously undocumented ]
> > + - Delete copyright.
> > + [ previously documented ]
>
> Presumably this should be "undocumented"?

Correct, will fix.

> > + - Add usr/sbin to debian/dirs
> > + [ previously undocumented ]
> > + - d/watch: update for new location
> > + [ previously documented ]
> > + - swig/pythong/openipmigui/Makefile: new file
> > + [ previously undocumented ]
> > + - New upstream version.
> > + [ Debian has moved past ]
> > + - Revert local changes to config.guess/config.sub; instead, use
> > + autotools-dev's debhelper integration to update these files for
> > + each build.
> > + [ Fixed in Debian ]
> > + - Enabling openssl support as it is causing
> > + problems running third party applications. (closes #775847)
> > + (LP #1546735)
> > + [ Fixed in 2.0.21-1 ]
> > +
> > + -- Nishanth Aravamudan <email address hidden> Thu, 16 Jun 2016 15:35:42 -0700
> > +
> > openipmi (2.0.21-1.2) unstable; urgency=medium
> >
> > * Re-add accidentally deleted debian/*.files. Sorry! Closes: #819105
> > diff --git a/debian/dirs b/debian/dirs
> > index e772481..d54f2ca 100644
> > --- a/debian/dirs
> > +++ b/debian/dirs
> > @@ -1 +1,4 @@
> > usr/bin
> > +usr/sbin
> > +usr/sbin
>
> Duplicate entry from c298c94. The logical breakdown (d0d32b8) didn't
> have usr/sbin here at all, so is it needed?

Erp, will reverify and fix/drop as appropriate.

> > +etc/default
> > diff --git a/debian/patches/ppc64_le_support b/debian/patches/ppc64_le_support
> > new file mode 100644
> > index 0000000..c2d55db
> > --- /dev/null
> > +++ b/debian/patches/ppc64_le_support
> > @@ -0,0 +1,55 @@
> > +Description: Patch libtool macro support in for ppc64el shared libraries
> > +Author: Nishanth...

Read more...

Nish Aravamudan (nacc) wrote :

git log merge.v1..
commit be646c5b7d7320b42e76f51c20ed2e3c2c3f3ce8 (HEAD -> merge)
Author: Nishanth Aravamudan <email address hidden>
Date: Tue Jun 21 10:15:50 2016 -0700

    Drop ppc64_le patch after MR review

    tested at https://launchpad.net/~nacc/+archive/ubuntu/lp1593461

commit bd1c01d30bb5e573aaf2e79f7e8c8a5a4bfea2bd
Author: Nishanth Aravamudan <email address hidden>
Date: Tue Jun 21 10:08:10 2016 -0700

    d/dirs update after MR review (usr/sbin dropped)

commit ac62ed0d0c766b22465fa5b4ea43f58ca6c09b6d
Author: Nishanth Aravamudan <email address hidden>
Date: Tue Jun 21 09:59:38 2016 -0700

    d/changelog entry update after MR review (documented -> undocumented)

Nish Aravamudan (nacc) wrote :

Hi Robie,

Thank you for an excellent review of this complicated MR. After further consideration and consultation with other developers, I'm submitting our delta to Debian directly. I believe it consists solely of bugs/issues also present in Debian, and we can sync if they pick it up.

I've updated the corresponding LP bug accordingly as well.

-Nish

Nish Aravamudan (nacc) wrote :

Robie,

Given lack of response from Debian in the past few days, how would you like to proceed? If you're amenable to just doing this merge now and syncing in the future, I'd like to push the bugfix for LP: #1596474 on top of my current branch so we can SRU it.

Nish Aravamudan (nacc) wrote :

I went ahead and pushed, as you can always ask me to drop them, but it makes for a simpler review now. Old merge head tagged as merge.v2.

~nacc/ubuntu/+source/openipmi:merge updated on 2016-09-21
8e1afb7... by Nish Aravamudan on 2016-09-21

  * debian/openipmi.init: add Default-Start and Default-Stop values
    (LP: #1596474).

f846ad7... by Nish Aravamudan on 2016-09-21

  * Drop: - debian/rules, debian/openipmi.init: + added init script [ Fixed in Debian ]

8ad0689... by Nish Aravamudan on 2016-09-21

  * Drop: Do not explicitly depend on pthread. [ previously documented ]

74cc8de... by Nish Aravamudan on 2016-09-21

  * Drop: Only use SIGPWR if defined. [ Previously undocumented ]

7e336d4... by Nish Aravamudan on 2016-09-21

  * Drop: Delete copyright. [ previously documented ]

6666d86... by Nish Aravamudan on 2016-09-21

  * Drop: Add usr/sbin to debian/dirs [ previously undocumented ]

6a7e3c9... by Nish Aravamudan on 2016-09-21

  * Drop: d/watch: update for new location [ previously documented ]

fd0c1f3... by Nish Aravamudan on 2016-09-21

  * Drop: b682971 * swig/pythong/openipmigui/Makefile: new file [ previously undocumented ]

400ffec... by Nish Aravamudan on 2016-09-21

  * Drop: New upstream version.

7fb3e61... by Nish Aravamudan on 2016-09-21

  * Drop: - Revert local changes to config.guess/config.sub; instead, use autotools-dev's debhelper integration to update these files for each build.

cb540fe... by Nish Aravamudan on 2016-09-21

  * debian/patches/fix_pthread_pkg_config.patch: fix pkg-config files:
    pthread.pc does not exist in Ubuntu. Thanks to Simon McVittie
    <email address hidden>. Closes: #474087, LP: #1311888.

fa1f184... by Nish Aravamudan on 2016-09-21

Update changelog after 2.0.18-0ubuntu12 update in yakkety

Nish Aravamudan (nacc) wrote :

Hi Robie,

Ok, updated the tree with a fresh merge against current debian, I'm submitting the FFe request right now as well, but if you could take a look.

I've updated the new/debian, old/ubuntu tags, as well as provided new {deconstruct,reconstruct,logical}/2.0.18-0ubuntu12. merge.v3 is also an updated tag, and merge.v2 represents the old merge.

Let me know what you think.

Unmerged commits

fa1f184... by Nish Aravamudan on 2016-09-21

Update changelog after 2.0.18-0ubuntu12 update in yakkety

cb540fe... by Nish Aravamudan on 2016-09-21

  * debian/patches/fix_pthread_pkg_config.patch: fix pkg-config files:
    pthread.pc does not exist in Ubuntu. Thanks to Simon McVittie
    <email address hidden>. Closes: #474087, LP: #1311888.

8e1afb7... by Nish Aravamudan on 2016-09-21

  * debian/openipmi.init: add Default-Start and Default-Stop values
    (LP: #1596474).

6a6dc78... by Nish Aravamudan on 2016-06-21

Drop ppc64_le patch after MR review

tested at https://launchpad.net/~nacc/+archive/ubuntu/lp1593461

8af7ec4... by Nish Aravamudan on 2016-06-21

d/dirs update after MR review (usr/sbin dropped)

c7c8e76... by Nish Aravamudan on 2016-06-21

d/changelog entry update after MR review (documented -> undocumented)

9e3ea5c... by Nish Aravamudan on 2016-06-16

update-metadata

c07bfea... by Nish Aravamudan on 2016-06-16

reconstruct-changelog

a6d0e38... by Nish Aravamudan on 2016-06-16

merge-changelogs

849b531... by Nish Aravamudan on 2016-06-16

  * debian/openipmi.init: Do not unload all modules if some configured
    HW modules are not successfully loaded (LP: #1318317).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 55510cc..8788d58 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,50 @@
6+openipmi (2.0.22-1ubuntu1) yakkety; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1593461). Remaining changes:
9+ - debian/openipmi.init: Change lockfile path. '/var/log/subsys' does
10+ not exists in Debian. (LP #722770)
11+ - Fix up packaging to install and use /etc/default/openipmi.
12+ (LP #473332) Thanks to Serge Hallyn.
13+ - Detect that a module is built into the kernel.
14+ + LP #1309860
15+ - debian/openipmi.init: Do not unload all modules if some configured
16+ HW modules are not successfully loaded (LP #1318317).
17+ - debian/openipmi.init: add Default-Start and Default-Stop values
18+ (LP #1596474).
19+ - debian/patches/fix_pthread_pkg_config.patch: fix pkg-config files:
20+ pthread.pc does not exist in Ubuntu. Thanks to Simon McVittie
21+ <smcv@debian.org>. Closes #474087, LP #1311888.
22+ * Drop:
23+ - debian/rules, debian/openipmi.init:
24+ + added init script
25+ [ Fixed in Debian ]
26+ - Do not explicitly depend on pthread.
27+ [ previously documented ]
28+ - Only use SIGPWR if defined.
29+ [ Previously undocumented ]
30+ - Delete copyright.
31+ [ previously undocumented ]
32+ - Add usr/sbin to debian/dirs
33+ [ previously undocumented ]
34+ - d/watch: update for new location
35+ [ previously undocumented ]
36+ - swig/pythong/openipmigui/Makefile: new file
37+ [ previously undocumented ]
38+ - New upstream version.
39+ [ Debian has moved past ]
40+ - Revert local changes to config.guess/config.sub; instead, use
41+ autotools-dev's debhelper integration to update these files for
42+ each build.
43+ [ Fixed in Debian ]
44+ - Enabling openssl support as it is causing
45+ problems running third party applications. (closes #775847)
46+ (LP #1546735)
47+ [ Fixed in 2.0.21-1 ]
48+ - Patch libtool macro support in for ppc64el shared libaries.
49+ [ Fixed in 2.0.16-1.4 by moving to autotools-dev ]
50+
51+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Wed, 21 Sep 2016 14:30:47 -0700
52+
53 openipmi (2.0.22-1) unstable; urgency=medium
54
55 * new upstream release from 2016-06-01
56@@ -37,6 +84,80 @@ openipmi (2.0.21-1) unstable; urgency=medium
57
58 -- Noël Köthe <noel@debian.org> Thu, 25 Feb 2016 12:06:21 +0100
59
60+openipmi (2.0.18-0ubuntu11) xenial; urgency=medium
61+
62+ * debian/openipmi.init: Do not unload all modules if some configured
63+ HW modules are not successfully loaded (LP: #1318317).
64+
65+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Thu, 03 Mar 2016 16:55:22 -0800
66+
67+openipmi (2.0.18-0ubuntu10) xenial; urgency=medium
68+
69+ * Enabling openssl support as it is causing
70+ problems running third party applications. (closes: #775847)
71+ (LP: #1546735)
72+
73+ -- Eric Desrochers <slashd@ubuntu.com> Fri, 04 Mar 2016 17:28:50 +0000
74+
75+openipmi (2.0.18-0ubuntu9) xenial; urgency=medium
76+
77+ * No-change rebuild for ncurses6 transition.
78+
79+ -- Matthias Klose <doko@ubuntu.com> Sun, 07 Feb 2016 09:44:35 +0000
80+
81+openipmi (2.0.18-0ubuntu8) utopic; urgency=medium
82+
83+ * Detect that a module is built into the kernel.
84+ -LP: #1309860
85+
86+ -- Tim Gardner <tim.gardner@canonical.com> Tue, 20 May 2014 11:15:44 -0700
87+
88+openipmi (2.0.18-0ubuntu7) trusty; urgency=medium
89+
90+ * Patch libtool macro support in for ppc64el shared libraries.
91+
92+ -- Adam Conrad <adconrad@ubuntu.com> Tue, 18 Mar 2014 22:40:54 -0600
93+
94+openipmi (2.0.18-0ubuntu6) saucy; urgency=low
95+
96+ * Revert local changes to config.guess/config.sub; instead, use
97+ autotools-dev's debhelper integration to update these files for each
98+ build.
99+
100+ -- Colin Watson <cjwatson@ubuntu.com> Tue, 08 Oct 2013 23:06:03 +0100
101+
102+openipmi (2.0.18-0ubuntu5) saucy; urgency=low
103+
104+ * Rebuild for libsnmp30.
105+
106+ -- Colin Watson <cjwatson@ubuntu.com> Mon, 20 May 2013 11:05:34 +0100
107+
108+openipmi (2.0.18-0ubuntu4) quantal; urgency=low
109+
110+ * Rebuild for new armel compiler default of ARMv5t.
111+
112+ -- Colin Watson <cjwatson@ubuntu.com> Mon, 08 Oct 2012 08:36:00 +0100
113+
114+openipmi (2.0.18-0ubuntu3) natty; urgency=low
115+
116+ * Fix up packaging to install and use /etc/default/openipmi.
117+ (LP: #473332) Thanks to Serge Hallyn.
118+
119+ -- Chuck Short <zulcss@ubuntu.com> Fri, 04 Mar 2011 10:38:42 -0500
120+
121+openipmi (2.0.18-0ubuntu2) natty; urgency=low
122+
123+ * debian/openipmi.init: Change lockfile path. '/var/log/subsys' does not
124+ exists in Debian. (LP: #722770)
125+
126+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 24 Feb 2011 11:34:04 -0500
127+
128+openipmi (2.0.18-0ubuntu1) maverick; urgency=low
129+
130+ * New upstream version.
131+
132+ -- Chuck Short <zulcss@ubuntu.com> Wed, 26 May 2010 14:58:52 -0400
133+
134 openipmi (2.0.16-1.4) unstable; urgency=medium
135
136 * Non-maintainer upload.
137@@ -78,10 +199,20 @@ openipmi (2.0.16-1.1) unstable; urgency=low
138
139 -- Micah Anderson <micah@debian.org> Sat, 30 Jan 2010 19:17:13 -0500
140
141+openipmi (2.0.16-1ubuntu1) lucid; urgency=low
142+
143+ * Sync with debian.
144+ * debian/control:
145+ - changed maintainer to match DebianMaintainerField spec.
146+ * debian/rules, debian/openipmi.init:
147+ - added init script
148+
149+ -- Chuck Short <zulcss@ubuntu.com> Thu, 05 Nov 2009 12:52:52 -0500
150+
151 openipmi (2.0.16-1) unstable; urgency=low
152
153- * new upstream release from 2009-03-16
154- * debian/compat debian/control raised to debhelper 5
155+ * new upstream release from 2009-03-16
156+ * debian/compat, debian/control, raised to debhelper 5
157 * debian/control removed URL in description new we
158 have the Homepage: field
159 * debian/control updated Standards-Version: (no changes needed)
160@@ -89,6 +220,20 @@ openipmi (2.0.16-1) unstable; urgency=low
161
162 -- Noèl Köthe <noel@debian.org> Tue, 28 Jul 2009 10:17:23 +0200
163
164+openipmi (2.0.14-2ubuntu2) karmic; urgency=low
165+
166+ * No-change upload to (hopefully) fix FTBFS.
167+
168+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Oct 2009 10:11:04 +0200
169+
170+openipmi (2.0.14-2ubuntu1) jaunty; urgency=low
171+
172+ * Merge from debian unstable, remaining changes:
173+ - debian/control: changed maintainer to match DebianMaintainerField spec.
174+ - debian/rules: debian/openipmi.init: added init-script.
175+
176+ -- Chuck Short <zulcss@ubuntu.com> Wed, 05 Nov 2008 03:00:14 +0000
177+
178 openipmi (2.0.14-2) unstable; urgency=low
179
180 * added GNU/kFreeBSD patch from Petr. Thanks
181@@ -96,6 +241,14 @@ openipmi (2.0.14-2) unstable; urgency=low
182
183 -- Noèl Köthe <noel@debian.org> Sun, 19 Oct 2008 15:58:15 +0200
184
185+openipmi (2.0.14-1ubuntu1) intrepid; urgency=low
186+
187+ * Merge from debian unstable, remaining changes:
188+ - debian/control: changed maintainer to match DebianMaintainerField spec.
189+ - debian/rules: debian/openipmi.init: added init-script.
190+
191+ -- Chuck Short <zulcss@ubuntu.com> Sun, 20 Jul 2008 13:51:04 +0100
192+
193 openipmi (2.0.14-1) unstable; urgency=medium
194
195 * new upstream release
196@@ -104,6 +257,15 @@ openipmi (2.0.14-1) unstable; urgency=medium
197
198 -- Noèl Köthe <noel@debian.org> Sat, 19 Jul 2008 20:30:39 +0200
199
200+openipmi (2.0.13-1ubuntu1) intrepid; urgency=low
201+
202+ * Merge from Debian unstable (LP: #242632), remaining changes:
203+ - debian/control: remove unecessary cdbs build-dep
204+ - debian/rules, debian/openipmi.init: added init script
205+ - debian/control: changed Maintainer to match DebianMaintinaerField spec.
206+
207+ -- Thierry Carrez <thierry.carrez@ubuntu.com> Tue, 24 Jun 2008 14:24:49 +0200
208+
209 openipmi (2.0.13-1) unstable; urgency=low
210
211 * new upstream release
212@@ -114,6 +276,31 @@ openipmi (2.0.13-1) unstable; urgency=low
213
214 -- Noèl Köthe <noel@debian.org> Mon, 25 Feb 2008 20:07:00 +0100
215
216+openipmi (2.0.13-0ubuntu3) hardy; urgency=low
217+
218+ * Make the init script more lsb specific.
219+
220+ -- Chuck Short <zulcss@ubuntu.com> Wed, 13 Feb 2008 14:03:38 -0500
221+
222+openipmi (2.0.13-0ubuntu2) hardy; urgency=low
223+
224+ * Added init script.
225+
226+ -- Chuck Short <zulcss@ubuntu.com> Tue, 12 Feb 2008 19:24:00 -0500
227+
228+openipmi (2.0.13-0ubuntu1) hardy; urgency=low
229+
230+ * New upstream release.
231+ * Cleaned up debian/control.
232+
233+ -- Chuck Short <zulcss@ubuntu.com> Tue, 12 Feb 2008 12:49:05 -0500
234+
235+openipmi (2.0.11-2build1) hardy; urgency=low
236+
237+ * Rebuild for libsnmp10 -> libsnmp15 transition.
238+
239+ -- Steve Kowalik <stevenk@ubuntu.com> Mon, 10 Dec 2007 20:32:47 +1100
240+
241 openipmi (2.0.11-2) unstable; urgency=low
242
243 * correcting build dependency libsnmp10-dev -> libsnmp-dev
244diff --git a/debian/control b/debian/control
245index 1a66c59..8f2b1e0 100644
246--- a/debian/control
247+++ b/debian/control
248@@ -1,7 +1,8 @@
249 Source: openipmi
250 Section: admin
251 Priority: optional
252-Maintainer: Noël Köthe <noel@debian.org>
253+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
254+XSBC-Original-Maintainer: Noël Köthe <noel@debian.org>
255 Build-Depends: debhelper (>> 9.0.0), libsnmp-dev, libpopt-dev, libncurses5-dev,
256 chrpath, autotools-dev, libssl-dev, dh-autoreconf
257 Standards-Version: 3.9.8
258diff --git a/debian/dirs b/debian/dirs
259index e772481..526c3a7 100644
260--- a/debian/dirs
261+++ b/debian/dirs
262@@ -1 +1,2 @@
263 usr/bin
264+etc/default
265diff --git a/debian/openipmi.init b/debian/openipmi.init
266index 36c044b..bc7f8b6 100644
267--- a/debian/openipmi.init
268+++ b/debian/openipmi.init
269@@ -13,8 +13,8 @@
270 # Provides: ipmidrv
271 # Required-Start: $local_fs $remote_fs $syslog
272 # Required-Stop: $local_fs $remote_fs $syslog
273-# Default-Start:
274-# Default-Stop:
275+# Default-Start: 2 3 4 5
276+# Default-Stop: 0 1 6
277 # Short-Description: OpenIPMI Driver init script
278 # Description: OpenIPMI Driver init script
279 ### END INIT INFO
280@@ -32,7 +32,7 @@
281 #############################################################################
282 . /lib/lsb/init-functions
283
284-CONFIGFILE=/etc/sysconfig/ipmi
285+CONFIGFILE=/etc/default/openipmi
286 # source config info
287 [ -r ${CONFIGFILE} ] && . ${CONFIGFILE}
288
289@@ -66,7 +66,7 @@ MODULES_BASE="ipmi_msghandler"
290 MODULES="${MODULES_INTERFACES} ${MODULES_FEATURES} ${MODULES_HW} ${MODULES_BASE}"
291
292 RETVAL=0
293-LOCKFILE=/var/lock/subsys/ipmi
294+LOCKFILE=/var/lock/ipmi
295 DEV_IPMI_TIMEOUT=15
296
297 UDEV_EXISTS=0
298@@ -90,6 +90,9 @@ modules_loaded_verbose()
299 if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
300 echo "$m module loaded."
301 OnePlusLoaded=1
302+ elif [ -d "/sys/module/$m" ]; then
303+ echo "$m module in kernel."
304+ OnePlusLoaded=1
305 else
306 echo "$m module not loaded."
307 OnePlusUnloaded=1
308@@ -104,6 +107,8 @@ modules_loaded()
309 for m in $@; do
310 if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
311 OnePlusLoaded=1
312+ elif [ -d "/sys/module/$m" ]; then
313+ OnePlusLoaded=1
314 else
315 OnePlusUnloaded=1
316 fi
317@@ -323,9 +328,9 @@ load_ipmi_modules ()
318 local locdelay
319 modprobe ipmi_msghandler > /dev/null 2>&1
320 modules_loaded ipmi_msghandler
321- [ ${OnePlusLoaded} -ne 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return
322+ [ ${OnePlusLoaded} -ne 1 ] && RETVAL=$((RETVAL | 1)) && return
323 load_hw_modules
324- [ $((RETVAL & 1)) -eq 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return
325+ [ $((RETVAL & 1)) -eq 1 ] && return
326
327 if [ "${DEV_IPMI}" = "yes" ]; then
328 modprobe ipmi_devintf > /dev/null 2>&1
329diff --git a/debian/patches/fix_pthread_pkg_config.patch b/debian/patches/fix_pthread_pkg_config.patch
330new file mode 100644
331index 0000000..345f5bb
332--- /dev/null
333+++ b/debian/patches/fix_pthread_pkg_config.patch
334@@ -0,0 +1,19 @@
335+Description: fix pkg-config files: pthread.pc does not exist in Ubuntu
336+ Forward-ported from 2.10.16-1.1, as it seems to have been dropped in
337+ Debian.
338+Author: Simon McVittie <smcv@debian.org>
339+Bug-Debian: https://bugs.debian.org/474087
340+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1311888
341+
342+--- openipmi-2.0.22.orig/OpenIPMIpthread.pc.in
343++++ openipmi-2.0.22/OpenIPMIpthread.pc.in
344+@@ -6,6 +6,6 @@ includedir=@includedir@
345+ Name: OpenIPMIpthread
346+ Description: Pthread OS handler for OpenIPMI
347+ Version: @VERSION@
348+-Requires: OpenIPMI pthread
349+-Libs: -L${libdir} -lOpenIPMIutils -lOpenIPMIpthread
350+-Cflags: -I${includedir}
351++Requires: OpenIPMI
352++Libs: -L${libdir} -lOpenIPMIutils -lOpenIPMIpthread -pthread
353++Cflags: -I${includedir} -pthread
354diff --git a/debian/patches/series b/debian/patches/series
355index e69de29..84a0c30 100644
356--- a/debian/patches/series
357+++ b/debian/patches/series
358@@ -0,0 +1 @@
359+fix_pthread_pkg_config.patch
360diff --git a/debian/rules b/debian/rules
361index 4af8204..5af87d0 100755
362--- a/debian/rules
363+++ b/debian/rules
364@@ -87,6 +87,8 @@ binary-common:
365 dh_installdocs
366 dh_installexamples
367 dh_installinit -p openipmi --name openipmi --no-start -- defaults 21 20
368+ mv ipmi.sysconf openipmi
369+ dh_install openipmi etc/default
370 dh_installman
371 dh_link
372 dh_strip

Subscribers

People subscribed via source and target branches