File: 0001_use_system_tl-parser.patch

package info (click to toggle)
telegram-cli 1.3.1+git20160323.6547c0b21-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,120 kB
  • sloc: ansic: 10,549; sh: 256; perl: 154; makefile: 75; python: 48
file content (19 lines) | stat: -rw-r--r-- 898 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Use system tl-parser
 The upstream embed tl-parser into tgl's build process. We separate it and
 will use the one provided by the system.
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Forwarded: not-needed
Last-Update: 2018-12-11

Index: telegram-cli-1.3.1+git20160323.6547c0b21/Makefile.tl-parser
===================================================================
--- telegram-cli-1.3.1+git20160323.6547c0b21.orig/Makefile.tl-parser
+++ telegram-cli-1.3.1+git20160323.6547c0b21/Makefile.tl-parser
@@ -3,5 +3,5 @@ TL_PARSER_OBJECTS=${OBJ}/tl-parser.o ${O
 ${TL_PARSER_OBJECTS}: ${OBJ}/%.o: ${srcdir}/tgl/tl-parser/%.c | create_dirs
 	${CC} ${INCLUDE} ${COMPILE_FLAGS} -iquote ${srcdir}/tgl/tl-parser -c -MP -MD -MF ${DEP}/$*.d -MQ ${OBJ}/$*.o -o $@ $<
 
-${EXE}/tl-parser: ${TL_PARSER_OBJECTS}
-	${CC} $^ ${LINK_FLAGS} -o $@
+${EXE}/tl-parser: /usr/bin/tl-parser
+	ln -s $^ $@