File: old-unique.patch

package info (click to toggle)
cachefilesd 0.10.10-0.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228 kB
  • sloc: ansic: 1,121; sh: 233; makefile: 68
file content (40 lines) | stat: -rw-r--r-- 1,129 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
--- a/Makefile
+++ b/Makefile
@@ -20,28 +20,13 @@
 
 ###############################################################################
 #
-# Guess at the appropriate word size
-#
-###############################################################################
-BUILDFOR	:= $(shell file /usr/bin/make | sed -e 's!.*ELF \(32\|64\)-bit.*!\1!')-bit
-
-ifeq ($(BUILDFOR),32-bit)
-CFLAGS		+= -m32
-else
-ifeq ($(BUILDFOR),64-bit)
-CFLAGS		+= -m64
-endif
-endif
-
-###############################################################################
-#
 # Build stuff
 #
 ###############################################################################
 all: cachefilesd
 
 cachefilesd: cachefilesd.c Makefile
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
 
 ###############################################################################
 #
--- a/cachefilesd.conf
+++ b/cachefilesd.conf
@@ -21,4 +21,4 @@
 
 # Assuming you're using SELinux with the default security policy included in
 # this package
-secctx system_u:system_r:cachefiles_kernel_t:s0
+# secctx system_u:system_r:cachefiles_kernel_t:s0