File: old-way-compiler-flags.patch

package info (click to toggle)
rtfilter 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, trixie, wheezy
  • size: 1,792 kB
  • ctags: 544
  • sloc: sh: 11,062; ansic: 2,317; makefile: 115
file content (77 lines) | stat: -rw-r--r-- 2,468 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Description: Old way to specify compiler flags and disable multiarch
 Use the former way of specifying compiler flags in debian/rules, i.e.
 do not use dpkg-buildflags. Undo also the changes of multiarch.
Forwarded: Not needed
Author: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>

--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+7
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: extra
 Maintainer: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), dh-autoreconf
+Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf
 Standards-Version: 3.9.3
 Vcs-Git: git://anonscm.debian.org/pkg-exppsy/rtfilter.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-exppsy/rtfilter.git
@@ -10,8 +10,6 @@
 
 Package: librtfilter1
 Architecture: any
-Multi-Arch: same
-Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: realtime digital filtering library
  rtfilter is a library that provides a set of routines implementing realtime
@@ -28,7 +26,6 @@
 Package: librtfilter1-dbg
 Section: debug
 Architecture: any
-Multi-Arch: same
 Depends: librtfilter1 (= ${binary:Version}), ${misc:Depends}
 Description: realtime digital filtering library (debugging symbols)
  rtfilter is a library that provides a set of routines implementing realtime
@@ -47,7 +44,6 @@
 Package: librtfilter-dev
 Section: libdevel
 Architecture: any
-Multi-Arch: same
 Depends: librtfilter1 (= ${binary:Version}), ${misc:Depends}
 Description: realtime digital filtering library (development files)
  rtfilter is a library that provides a set of routines implementing realtime
--- a/debian/librtfilter-dev.install
+++ b/debian/librtfilter-dev.install
@@ -1,4 +1,4 @@
 usr/include/*
-usr/lib/*/librtfilter.so
-usr/lib/*/pkgconfig/*
+usr/lib/librtfilter.so
+usr/lib/pkgconfig/*
 usr/share/man/man3/*
--- a/debian/librtfilter1.install
+++ b/debian/librtfilter1.install
@@ -1 +1 @@
-/usr/lib/*/librtfilter.so.*
+/usr/lib/librtfilter.so.*
--- a/debian/rules
+++ b/debian/rules
@@ -5,12 +5,8 @@
 #export DH_VERBOSE=1
 
 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	export DEB_CFLAGS_MAINT_APPEND = -O3 -Wall -Wextra
-else
-	export DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra
+	CFLAGS += -O3 -Wall -Wextra
 endif
-export DEB_LDFLAGS_MAINT_APPEND=-Wl,-Bsymbolic-functions
-export DEB_BUILD_MAINT_OPTIONS=hardening=-all,+format,+relro,+bindnow
 
 %:
 	dh  $@ --with autoreconf