MSYS2-packages/patch/msys2-patch-manifest.patch
2015-03-10 08:27:07 +03:00

50 lines
1.6 KiB
Diff

--- /dev/null 2013-07-12 17:17:55.297805948 +0400
+++ src/patch-2.7.1/src/patch.manifest 2013-07-27 08:49:36.000000000 +0400
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0"
+ processorArchitecture="@ARCH@"
+ name="GNU.patch.patch"
+ type="win32"/>
+
+ <!-- Identify the application security requirements. -->
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
--- /dev/null 2013-07-12 17:17:55.297805948 +0400
+++ src/patch-2.7.1/src/patch.rc 2013-07-27 08:50:20.000000000 +0400
@@ -0,0 +1 @@
+1 24 patch.manifest
--- src/patch-2.7.1/src/Makefile.am.orig 2012-09-14 13:15:41.000000000 +0400
+++ src/patch-2.7.1/src/Makefile.am 2013-07-27 08:58:34.000000000 +0400
@@ -17,6 +17,7 @@
## Process this file with automake to produce Makefile.in.
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+WINDRES = windres
bin_PROGRAMS = patch
patch_SOURCES = \
@@ -34,9 +35,14 @@
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
patch_LDADD = $(LDADD) $(top_builddir)/lib/libpatch.a $(LIB_CLOCK_GETTIME) \
- $(LIB_XATTR) $(LIB_EACCESS)
+ $(LIB_XATTR) $(LIB_EACCESS) patch.res
if ENABLE_MERGE
patch_SOURCES += merge.c
AM_CPPFLAGS += -DENABLE_MERGE
endif
+
+patch.res: patch.rc patch.manifest
+ $(WINDRES) --input $< --output $@ --output-format=coff
+
+patch_DEPENDENCIES = patch.res