Merge lp:~cosme/ubuntu/oneiric/wayland/wayland into lp:ubuntu/oneiric/wayland

Proposed by Cosme Domínguez
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: not available
Proposed branch: lp:~cosme/ubuntu/oneiric/wayland/wayland
Merge into: lp:ubuntu/oneiric/wayland
Diff against target: 295 lines (+41/-134)
6 files modified
debian/README.source (+0/-3)
debian/changelog (+8/-0)
debian/compat (+1/-1)
debian/control (+12/-13)
debian/copyright (+1/-1)
debian/rules (+19/-116)
To merge this branch: bzr merge lp:~cosme/ubuntu/oneiric/wayland/wayland
Reviewer Review Type Date Requested Status
Bryce Harrington packaging Approve
Review via email: mp+61327@code.launchpad.net

Description of the change

  * Simplify debian/rules code
  * Fix almost all lintian complaints (LP: #724608)
  * Switch to dpkg-source 3.0 (quilt) format

To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, looks good.

review: Approve (packaging)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'debian/README.source'
2--- debian/README.source 2011-02-21 18:35:33 +0000
3+++ debian/README.source 1970-01-01 00:00:00 +0000
4@@ -1,3 +0,0 @@
5-See /usr/share/doc/quilt/README.source
6-
7- -- Bryce Harrington <bryce@ubuntu.com>, Wed, 24 Nov 2010 16:43:12 -0800
8
9=== modified file 'debian/changelog'
10--- debian/changelog 2011-02-23 18:13:23 +0000
11+++ debian/changelog 2011-05-17 22:28:16 +0000
12@@ -1,3 +1,11 @@
13+wayland (0.1~git20110214.e4762a6a-0ubuntu2) oneiric; urgency=low
14+
15+ * Simplify debian/rules code
16+ * Fix almost all lintian complaints (LP: #724608)
17+ * Switch to dpkg-source 3.0 (quilt) format
18+
19+ -- Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> Tue, 17 May 2011 21:54:23 +0000
20+
21 wayland (0.1~git20110214.e4762a6a-0ubuntu1) natty; urgency=low
22
23 * Update to new git snapshot from 2011-02-14 up to commit e4762a6a. (This
24
25=== modified file 'debian/compat'
26--- debian/compat 2011-02-21 18:35:33 +0000
27+++ debian/compat 2011-05-17 22:28:16 +0000
28@@ -1,1 +1,1 @@
29-5
30+8
31
32=== modified file 'debian/control'
33--- debian/control 2011-02-21 18:35:33 +0000
34+++ debian/control 2011-05-17 22:28:16 +0000
35@@ -4,12 +4,10 @@
36 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
37 Uploaders: Bryce Harrington <bryce@canonical.com>
38 Build-Depends:
39- debhelper (>= 5),
40+ debhelper (>= 8),
41 pkg-config,
42 dpkg-dev (>= 1.14.17),
43- automake,
44- libtool,
45- quilt,
46+ dh-autoreconf,
47 libcairo2-dev (>= 1.10.2-2),
48 libdrm-dev (>= 2.4.23) [!hurd-i386],
49 libegl1-mesa-dev (>= 7.10.1~git20110215.cc1636b6-0ubuntu2),
50@@ -25,6 +23,7 @@
51 libxcb-xfixes0-dev,
52 libxkbcommon-dev
53 Standards-Version: 3.9.1
54+Homepage: http://wayland.freedesktop.org
55
56 Package: wayland
57 Architecture: any
58@@ -37,7 +36,7 @@
59 libgles2-mesa,
60 libwayland-server0 (= ${binary:Version}),
61 libwayland-client0 (= ${binary:Version})
62-Description: display server -- A nano, non-X11 graphical display server
63+Description: nano, non-X11 graphical display server
64 The Wayland display server is a minimal graphics server which relies on
65 the kernel for modesetting, batchbuffer submission, and hardware
66 initialization. It leaves window management and most desktop policy to
67@@ -58,7 +57,7 @@
68 libdrm-dev,
69 wayland (= ${binary:Version})
70 Pre-Depends: x11-common (>= 1:7.0.0)
71-Description: display server -- A nano, non-X11 graphical display server
72+Description: nano, non-X11 graphical display server (development files)
73 The Wayland display server is a minimal graphics server which relies on
74 the kernel for modesetting, batchbuffer submission, and hardware
75 initialization. It leaves window management and most desktop policy to
76@@ -73,7 +72,7 @@
77 Depends: wayland (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
78 Section: debug
79 Priority: extra
80-Description: display server -- A nano, non-X11 graphical display server
81+Description: nano, non-X11 graphical display server (debugging symbols)
82 The Wayland display server is a minimal graphics server which relies on
83 the kernel for modesetting, batchbuffer submission, and hardware
84 initialization. It leaves window management and most desktop policy to
85@@ -87,7 +86,7 @@
86 Section: libs
87 Architecture: any
88 Depends: ${shlibs:Depends}, ${misc:Depends}
89-Description: display server -- A nano, non-X11 graphical display server
90+Description: nano, non-X11 graphical display server (client shared libs)
91 The Wayland display server is a minimal graphics server which relies on
92 the kernel for modesetting, batchbuffer submission, and hardware
93 initialization. It leaves window management and most desktop policy to
94@@ -97,10 +96,10 @@
95 This package provides shared libraries for use by clients.
96
97 Package: libwayland-server-dev
98-Section: libs
99+Section: libdevel
100 Architecture: any
101 Depends: ${shlibs:Depends}, ${misc:Depends}
102-Description: display server -- A nano, non-X11 graphical display server
103+Description: nano, non-X11 graphical display server (server dev files)
104 The Wayland display server is a minimal graphics server which relies on
105 the kernel for modesetting, batchbuffer submission, and hardware
106 initialization. It leaves window management and most desktop policy to
107@@ -113,7 +112,7 @@
108 Section: libs
109 Architecture: any
110 Depends: ${shlibs:Depends}, ${misc:Depends}
111-Description: display server -- A nano, non-X11 graphical display server
112+Description: nano, non-X11 graphical display server (server shared libs)
113 The Wayland display server is a minimal graphics server which relies on
114 the kernel for modesetting, batchbuffer submission, and hardware
115 initialization. It leaves window management and most desktop policy to
116@@ -123,10 +122,10 @@
117 This package provides shared server libraries.
118
119 Package: libwayland-client-dev
120-Section: libs
121+Section: libdevel
122 Architecture: any
123 Depends: ${shlibs:Depends}, ${misc:Depends}
124-Description: display server -- A nano, non-X11 graphical display server
125+Description: nano, non-X11 graphical display server (client dev files)
126 The Wayland display server is a minimal graphics server which relies on
127 the kernel for modesetting, batchbuffer submission, and hardware
128 initialization. It leaves window management and most desktop policy to
129
130=== modified file 'debian/copyright'
131--- debian/copyright 2011-02-23 18:13:23 +0000
132+++ debian/copyright 2011-05-17 22:28:16 +0000
133@@ -74,7 +74,7 @@
134 .
135 You should have received a copy of the GNU General Public License
136 along with this program; if not, write to the Free Software Foundation,
137- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
138+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
139
140
141 Files: data/*
142
143=== modified file 'debian/rules'
144--- debian/rules 2011-02-21 18:35:33 +0000
145+++ debian/rules 2011-05-17 22:28:16 +0000
146@@ -1,130 +1,33 @@
147 #!/usr/bin/make -f
148-# debian/rules for the Debian xserver-xorg-driver-ati package.
149-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
150-# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
151-# Copyright © 2005 David Nusinow <dnusinow@debian.org>
152-
153-# comment this to turn off verbose mode.
154-export DH_VERBOSE=1
155
156 include debian/xsfbs/xsfbs.mk
157
158-CFLAGS = -Wall -g -fvisibility=hidden
159-ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
160- CFLAGS += -O0
161-else
162- CFLAGS += -O2
163-endif
164+NUMJOBS = $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
165 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
166 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
167 MAKEFLAGS += -j$(NUMJOBS)
168-endif
169-
170-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
171-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
172-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
173-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
174- confflags += --build=$(DEB_HOST_GNU_TYPE)
175 else
176- confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
177+ DEB_BUILD_OPTIONS += parallel=$(NUMJOBS)
178+ export DEB_BUILD_OPTIONS
179 endif
180
181-configure: $(STAMP_DIR)/patch
182- dh_testdir
183- autoreconf -vfi
184-
185-build/config.status: configure
186- dh_testdir
187- test -d build || mkdir build
188- cd build && \
189- ../configure --prefix=/usr \
190+override_dh_auto_configure:
191+ dh_auto_configure -- --prefix=/usr \
192 --program-prefix="wayland-" \
193 --mandir=\$${prefix}/share/man \
194 --infodir=\$${prefix}/share/info \
195- --sysconfdir=\$${prefix}/etc \
196- $(confflags) \
197- CFLAGS="$(CFLAGS) -I$(CURDIR)/build/wayland"
198-
199-.PHONY: build
200-build: build-stamp
201-build-stamp: build/config.status
202- dh_testdir
203- cd build && $(MAKE)
204- >$@
205-
206-clean: clean-patched unpatch
207- rm -rf .pc
208- rm -r stampdir
209-clean-patched:
210- dh_testdir
211- dh_testroot
212- rm -f build-stamp
213-
214- rm -f config.cache config.log config.status
215- rm -f */config.cache */config.log */config.status
216- rm -f conftest* */conftest*
217- rm -rf autom4te.cache */autom4te.cache
218- rm -rf build
219- rm -f compile config.guess config.sub configure depcomp install-sh
220- rm -f ltmain.sh missing INSTALL aclocal.m4 config.h.in mkinstalldirs
221-
222- dh_clean
223-
224-install: build
225- dh_testdir
226- dh_testroot
227- dh_clean -k
228- dh_installdirs
229-
230- cp compositor/70-wayland.rules build/
231- cp data/*.png build/data/
232-
233- cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
234- test -d $(CURDIR)/debian/tmp/lib/udev/rules.d || mkdir -p $(CURDIR)/debian/tmp/lib/udev/rules.d
235- cp compositor/70-wayland.rules $(CURDIR)/debian/tmp/lib/udev/rules.d/
236-
237- #XXX probably better to patch source to install libs properly
238- test -d $(CURDIR)/debian/tmp/usr/lib/pkgconfig || mkdir -p $(CURDIR)/debian/tmp/usr/lib/pkgconfig
239- cp build/wayland/.libs/*.a $(CURDIR)/debian/tmp/usr/lib/
240- cp build/wayland/.libs/*.so $(CURDIR)/debian/tmp/usr/lib/
241- cp build/wayland/.libs/*.so.* $(CURDIR)/debian/tmp/usr/lib/
242- cp build/wayland/*.pc $(CURDIR)/debian/tmp/usr/lib/pkgconfig/
243-
244- #test -d $(CURDIR)/debian/tmp/usr/bin || mkdir -p $(CURDIR)/debian/tmp/usr/bin
245- cp build/clients/.libs/*.a $(CURDIR)/debian/tmp/usr/lib/
246-
247- #XXX probably better to patch source to install data in the Makefile
248- test -d $(CURDIR)/debian/tmp/usr/share/wayland || mkdir -p $(CURDIR)/debian/tmp/usr/share/wayland
249- cp build/data/*.png $(CURDIR)/debian/tmp/usr/share/wayland/
250-
251- test -d $(CURDIR)/debian/tmp/usr/bin || mkdir -p $(CURDIR)/debian/tmp/usr/bin
252- cp $(CURDIR)/debian/wstart $(CURDIR)/debian/tmp/usr/bin
253-
254-
255-# Build architecture-dependent files here.
256-binary-arch: DH_OPTIONS=-s
257-binary-arch: build install
258- dh_testdir
259- dh_testroot
260-
261- dh_installdocs
262- dh_installchangelogs ChangeLog
263- dh_install --sourcedir=debian/tmp --list-missing --exclude=.la --exclude=usr/share/man/man4
264- dh_installman
265- dh_installudev
266- dh_link
267+ --sysconfdir=\$${prefix}/etc
268+
269+override_dh_install:
270+ cp debian/wstart debian/tmp/usr/bin
271+ cp wayland/.libs/libwayland-util.a debian/tmp/usr/lib/
272+ test -d debian/tmp/lib/udev/rules.d || \
273+ mkdir -p debian/tmp/lib/udev/rules.d
274+ cp compositor/70-wayland.rules debian/tmp/lib/udev/rules.d/
275+ dh_install --list-missing --exclude=.la --exclude=usr/share/man/man4
276+
277+override_dh_strip:
278 dh_strip -pwayland --dbg-package=wayland-dbg
279- dh_compress
280- dh_fixperms
281- dh_installdeb
282- #dh_shlibdeps -- --warnings=6
283- dh_gencontrol
284- dh_md5sums
285- dh_builddeb
286-
287-# Build architecture-independent files here.
288-binary-indep: build install
289-# Nothing to do
290-
291-binary: binary-indep binary-arch
292-.PHONY: build clean binary-indep binary-arch binary install
293+
294+%:
295+ dh $@ --parallel --with autoreconf

Subscribers

People subscribed via source and target branches