Merge lp:~l3on/ubuntu/precise/lusca/fix-ftbfs into lp:ubuntu/precise/lusca

Proposed by Leo Iannacone on 2012-03-02
Status: Work in progress
Proposed branch: lp:~l3on/ubuntu/precise/lusca/fix-ftbfs
Merge into: lp:ubuntu/precise/lusca
Diff against target: 89 lines (+32/-4)
7 files modified
debian/changelog (+9/-0)
debian/control (+2/-1)
debian/lusca-common.install (+1/-1)
debian/patches/missing-format-string.patch (+18/-0)
debian/patches/series (+1/-0)
debian/rules (+0/-1)
debian/source/format (+1/-1)
To merge this branch: bzr merge lp:~l3on/ubuntu/precise/lusca/fix-ftbfs
Reviewer Review Type Date Requested Status
Andreas Moog (community) Needs Fixing on 2012-03-02
Ubuntu branches 2012-03-02 Pending
Review via email: mp+95594@code.launchpad.net

Description of the Change

* Imported a patch from upstream to fix security warning and ftbfs.

 * Switched to 3.0 (quilt) format to simplify patch system

 * Fixed again ftbfs moving mime.conf from /usr/share to /etc (as default
   declared in the application configure script)

To post a comment you must log in.
Andreas Moog (ampelbein) wrote :

Thanks for your work, however there are a few issues:

1. The debian package used dpatch to manage patches, there is no need to diverge in Ubuntu.
2. In the dep3-headers you list yourself as the "Author", however this should list the person who created the patch in the first place.

Cheers,
  Andreas

review: Needs Fixing

Unmerged revisions

3. By Leo Iannacone on 2012-03-02

* Fix format not a string literal and no format argument causing
  FTBFS (LP: #935290, closes: #643437).
* Switch to debian format 3.0 (quilt).
* Install mime.conf for lusca-common in /etc/ instead in /usr/share.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-03-05 14:15:23 +0000
3+++ debian/changelog 2012-03-02 15:44:19 +0000
4@@ -1,3 +1,12 @@
5+lusca (0.1~svn14809-1ubuntu1) precise; urgency=low
6+
7+ * Fix format not a string literal and no format argument causing
8+ FTBFS (LP: #935290, closes: #643437).
9+ * Switch to debian format 3.0 (quilt).
10+ * Install mime.conf for lusca-common in /etc/ instead in /usr/share.
11+
12+ -- Leo Iannacone <l3on@ubuntu.com> Fri, 02 Mar 2012 16:08:22 +0100
13+
14 lusca (0.1~svn14809-1) unstable; urgency=low
15
16 * First attempt to package (Closes: #486224, #517734)
17
18=== modified file 'debian/control'
19--- debian/control 2011-03-05 14:15:23 +0000
20+++ debian/control 2012-03-02 15:44:19 +0000
21@@ -1,7 +1,8 @@
22 Source: lusca
23 Section: web
24 Priority: optional
25-Maintainer: Luigi Gangitano <luigi@debian.org>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: Luigi Gangitano <luigi@debian.org>
28 Homepage: http://www.lusca.org/
29 Standards-Version: 3.9.1
30 Build-Depends: sharutils, dpatch (>= 2.0.9), po-debconf, cdbs, debhelper (>=5), comerr-dev, libsasl2-dev, libdb-dev, libkrb5-dev, libldap2-dev, libpam0g-dev
31
32=== modified file 'debian/lusca-common.install'
33--- debian/lusca-common.install 2011-03-05 14:15:23 +0000
34+++ debian/lusca-common.install 2012-03-02 15:44:19 +0000
35@@ -1,5 +1,5 @@
36 usr/share/lusca/icons
37 usr/share/lusca/errors
38 usr/share/lusca/mib.txt
39-usr/share/lusca/mime.conf
40+etc/lusca/mime.conf
41 etc/lusca/squid.conf.default /usr/share/doc/lusca-common/squid.conf.documented
42
43=== added file 'debian/patches/missing-format-string.patch'
44--- debian/patches/missing-format-string.patch 1970-01-01 00:00:00 +0000
45+++ debian/patches/missing-format-string.patch 2012-03-02 15:44:19 +0000
46@@ -0,0 +1,18 @@
47+Description: Fixing FTBFS with -Werror=format-security
48+ Patch stolen from upstream:
49+ http://code.google.com/p/lusca-cache/source/detail?r=14941
50+Author: Leo Iannacone <l3on@ubuntu.com>
51+Bug-Ubuntu: https://bugs.launchpad.net/bugs/935290
52+Bug-Debian: http://bugs.debian.org/643437
53+
54+--- a/src/client_side_ranges.c
55++++ b/src/client_side_ranges.c
56+@@ -39,7 +39,7 @@
57+ httpHeaderClean(&hdr);
58+
59+ /* append <crlf> (we packed a header, not a reply) */
60+- memBufPrintf(mb, crlf);
61++ memBufPrintf(mb, "%s", crlf);
62+ }
63+
64+ /*
65
66=== added file 'debian/patches/series'
67--- debian/patches/series 1970-01-01 00:00:00 +0000
68+++ debian/patches/series 2012-03-02 15:44:19 +0000
69@@ -0,0 +1,1 @@
70+missing-format-string.patch
71
72=== modified file 'debian/rules'
73--- debian/rules 2011-03-05 14:15:23 +0000
74+++ debian/rules 2012-03-02 15:44:19 +0000
75@@ -4,7 +4,6 @@
76 #
77 include /usr/share/cdbs/1/rules/debhelper.mk
78 include /usr/share/cdbs/1/class/autotools.mk
79-include /usr/share/cdbs/1/rules/dpatch.mk
80
81 INSTALLDIR := $(CURDIR)/debian/tmp
82 datadir=/usr/share/lusca
83
84=== modified file 'debian/source/format'
85--- debian/source/format 2011-03-05 14:15:23 +0000
86+++ debian/source/format 2012-03-02 15:44:19 +0000
87@@ -1,1 +1,1 @@
88-1.0
89+3.0 (quilt)

Subscribers

People subscribed via source and target branches

to all changes: