-
-
Save not-chicken/7265343e1c0ea456f9e6b78f8bf40019 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: https://build.opensuse.org/package/view_file/openSUSE:Factory/mono-addins/fix-delay-sign.patch | |
Upstream: No | |
Reason: mono 5.0+ doesn't allow to install delay-signed dlls into GAC, so sign delay-signed dlls | |
before adding it to GAC. | |
--- Makefile.include 2016-07-27 01:26:26.000000000 +0300 | |
+++ Makefile.include 2017-05-03 02:49:41.690295653 +0300 | |
@@ -14,8 +14,14 @@ $(POLICY_ASSEMBLIES) : policy.%.$(ASSEMB | |
$(AL) -link:policy.$*.config -out:$@ -keyfile:$(top_srcdir)/mono-addins.snk | |
gac-install: $(POLICY_ASSEMBLIES) | |
+ sn -v '$(ASSEMBLY)' || if [[ $$? = 1 ]]; then \ | |
+ sn -R '$(ASSEMBLY)' ../mono-addins.snk; \ | |
+ fi | |
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; | |
@for p in $(POLICY_ASSEMBLIES); do \ | |
+ sn -v "$$p" || if [[ $$? = 1 ]]; then \ | |
+ sn -R "$$p" ../mono-addins.snk; \ | |
+ fi; \ | |
echo $(GACUTIL) /i $$p /f $(GACUTIL_POLICY_FLAGS) || exit 1; \ | |
$(GACUTIL) /i $$p /f $(GACUTIL_POLICY_FLAGS) || exit 1; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment