Browse Source

Refresh patches

Christoph Biedl 2 months ago
parent
commit
3732d89a6a

+ 0 - 21
debian/patches/1690555105.FILE5_45-1-g218fdf81.deal-with-32-bit-time-t.patch

@@ -1,21 +0,0 @@
-Subject: Deal with 32 bit time_t
-Origin: FILE5_45-1-g218fdf81 <https://github.com/file/file/commit/FILE5_45-1-g218fdf81>
-Upstream-Author: Christos Zoulas <christos@zoulas.com>
-Date: Fri Jul 28 14:38:25 2023 +0000
-
---- a/src/file.h
-+++ b/src/file.h
-@@ -159,9 +159,11 @@
- /*
-  * Dec 31, 23:59:59 9999
-  * we need to make sure that we don't exceed 9999 because some libc
-- * implementations like muslc crash otherwise
-+ * implementations like muslc crash otherwise. If you are unlucky
-+ * to be running on a system with a 32 bit time_t, then it is even less.
-  */
--#define	MAX_CTIME	CAST(time_t, 0x3afff487cfULL)
-+#define	MAX_CTIME \
-+    CAST(time_t, sizeof(time_t) > 4 ? 0x3afff487cfULL : 0x7fffffffULL)
- 
- #define FILE_BADSIZE CAST(size_t, ~0ul)
- #define MAXDESC	64		/* max len of text description/MIME type */

+ 0 - 82
debian/patches/1706463645.FILE5_45-79-ged96f0ee.recognize-unified-diff-output-joerg-jenderek.patch

@@ -1,82 +0,0 @@
-Subject: Recognize unified diff output (Joerg Jenderek)
-Origin: FILE5_45-79-ged96f0ee <https://github.com/file/file/commit/FILE5_45-79-ged96f0ee>
-Upstream-Author: Christos Zoulas <christos@zoulas.com>
-Date: Sun Jan 28 17:40:45 2024 +0000
-Bug-Debian: https://bugs.debian.org/1063522
-
---- a/magic/Magdir/diff
-+++ b/magic/Magdir/diff
-@@ -9,25 +9,67 @@
- >&0	search/1024	\n---\040	context diff output text
- !:mime	text/x-diff
- 0	search/1	Only\040in\040 	diff output text
-+# diff output text output text (strength=38=38+0) after unified diff output (strength=131=38+93)
-+#!:strength +0
- !:mime	text/x-diff
-+#!:mime	text/x-patch
-+!:ext	diff
- 0	search/1	Common\040subdirectories:\040 	diff output text
- !:mime	text/x-diff
- 
-+# URL: 		https://en.wikipedia.org/wiki/Diff#Extensions
-+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/d/diff-rcs.trid.xml
-+# Note:		called "RCS/CVS diff output" by TrID
-+#		and "Differences between files" by shared MIME-info database from freedesktop.org
- 0	search/1	Index:		RCS/CVS diff output text
-+# RCS/CVS diff output text (strength=36=36+0) after unified diff output (strength=131=38+93)
-+#!:strength +0
- !:mime	text/x-diff
-+#!:mime	text/x-patch
-+!:ext	diff/patch
- 
- # bsdiff:  file(1) magic for bsdiff(1) output
- 0	string/b	BSDIFF40	bsdiff(1) patch file
- 
- 
- # unified diff
--0	search/4096	---\040
-->&0	search/1024 	\n
-->>&0	search/1 	+++\040
-->>>&0	search/1024 	\n
-->>>>&0	search/1	@@		unified diff output text
-+# URL:		http://fileformats.archiveteam.org/wiki/Unified_diff
-+#		https://en.wikipedia.org/wiki/Diff_utility#Unified_format
-+# Reference:	https://www.artima.com/weblogs/viewpost.jsp?thread=164293
-+#		http://mark0.net/download/triddefs_xml.7z/defs/d/diff-unified.trid.xml
-+# Note:		called "unified diff output" by TrID and
-+#		"Differences between files" by shared MIME-info database from freedesktop.org
-+# use b flag to forces the test to be done for binary files (non ASCII text like with Ctrl-D Ctrl-V Ctrl-Z)
-+0	search/4096/b	---\040
-+!:strength + 93
-+>0	use		diff-unified
-+# most samples are just pure ASCII text like: ShellR64.patch
-+0	search/11054	---\040
-+# unified diff (strength=131=38+93) before
-+# HTML document text (strength=170,90,71,53,52,51,49)	POSIX shell script (fix-qt5.6-build.patch strength=130 ./commands)
-+# JavaScript source (strength=112,84,81,80,79,78,72,69)	C++ source (strength=71,70,69,68,67,54),
-+# Python script (strength=69,67,63,60,58,57,56,54,52,37)LaTeX document text (strength=62,56,55,51,43)
-+# TeX document (strength=51,38)				C source (strength=41,39,37)
-+# exported SGML document (strength=39,28)		diff output text (strength=38=38+0)
-+# Pascal source (strength=37)				RCS/CVS diff (strength=36=36+0),
-+# Algol 68 source (strength=?)				CSV ASCII text (strength=?)
-+!:strength + 93
-+>0	use		diff-unified
-+#	check for 3 characteristic lines of unified diff
-+0	name			diff-unified
-+>0	search/11084 	+++\040
-+>>&0	search/1024 	\n
-+# at signs line sometimes other (with 2 space chars before) like: indent-header.patch
-+>>>&0	search/2	@@\040-	unified diff output text
- !:mime	text/x-diff
--!:strength + 90
-+#!:mime	text/x-patch
-+# https://file-extension.net/seeker/file_extension_dif file_extension_pch file_extension_rej
-+!:ext	diff/patch/dif/pch/rej
-+# GRR: mainly for debugging purpose for variants with text before real diff output
-+>>>>0	string	!---\040
-+>>>>>0	string		x	\b, 1st line "%s"
-+>>>>>>&1 string		x	\b, 2nd line "%s"
-+>>>>>>>&1 string	x	\b, 3rd line "%s"
- 
- # librsync -- the library for network deltas
- #

+ 1 - 1
debian/patches/local.don-t-include-libs-in-build.patch

@@ -6,7 +6,7 @@ Last-Update: 2016-06-27
 
 --- a/src/Makefile.in
 +++ b/src/Makefile.in
-@@ -502,7 +502,7 @@
+@@ -503,7 +503,7 @@
  
  file$(EXEEXT): $(file_OBJECTS) $(file_DEPENDENCIES) $(EXTRA_file_DEPENDENCIES) 
  	@rm -f file$(EXEEXT)

+ 2 - 2
debian/patches/local.support-local-definitions-in-etc-magic.patch

@@ -31,7 +31,7 @@ Last-Update: 2016-06-27
  	if (map == NULL) {
 -		if (ms->flags & MAGIC_CHECK)
 +		if (ms->flags & MAGIC_CHECK && strcmp("/etc/magic", fn) != 0)
- 			file_magwarn(NULL, "using regular magic file `%s'", fn);
+ 			file_magwarn(ms, "using regular magic file `%s'", fn);
  		map = apprentice_load(ms, fn, action);
  		if (map == NULL)
 --- a/src/Makefile.am
@@ -47,7 +47,7 @@ Last-Update: 2016-06-27
  libmagic_la_SOURCES = buffer.c magic.c apprentice.c softmagic.c ascmagic.c \
 --- a/src/Makefile.in
 +++ b/src/Makefile.in
-@@ -361,7 +361,7 @@
+@@ -362,7 +362,7 @@
  MAGIC = $(pkgdatadir)/magic
  lib_LTLIBRARIES = libmagic.la
  nodist_include_HEADERS = magic.h

+ 0 - 2
debian/patches/series

@@ -1,8 +1,6 @@
 # reverted upstream commits
 
 # cherry-picked commits. Keep in upstream's chronological order
-1690555105.FILE5_45-1-g218fdf81.deal-with-32-bit-time-t.patch
-1706463645.FILE5_45-79-ged96f0ee.recognize-unified-diff-output-joerg-jenderek.patch
 
 # patches that should go upstream
 upstream.disable.att3b.patch