summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-10-28 21:20:14 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2012-10-28 23:15:22 +0100
commit8865b7f013bcd9b4ce41dd98be28ba28aeb22e66 (patch)
tree904c2637d1427abbb8cae22d4542f89c859c0898
parent0cc05a8f1db4c289dff0e95de6161cf3f3af58e6 (diff)
fdo#55290: use the right native library name
It turns out that the native library cannot be renamed after creation. The right name must be used from the beginning, otherwise publishing is failing with the follow error (gacutil -i): "Failure adding assembly to the cache: Invalid file or assembly name. The name of the file must be the name of the assembly plus .dll or .exe." To rectify that create the native lib as cli_cppuhelper.dll, rename the signed assembly to assembly/cli_cppuhelper.dll and teach scp2 to pick up the right one: assembly/cli_cppuhelper.dll (and not cli_cppuhelper.dll). Change-Id: I2073b617cd440865ae4ab838bb801329f2b07194
-rwxr-xr-x[-rw-r--r--]Repository.mk2
-rwxr-xr-x[-rw-r--r--]cli_ure/CliNativeLibrary_cli_cppuhelper.mk12
-rwxr-xr-x[-rw-r--r--]cli_ure/Library_cli_cppuhelper_native.mk20
-rwxr-xr-x[-rw-r--r--]scp2/source/ooo/ure.scp2
4 files changed, 18 insertions, 18 deletions
diff --git a/Repository.mk b/Repository.mk
index ed4a0fbae869..f01ee7395e0a 100644..100755
--- a/Repository.mk
+++ b/Repository.mk
@@ -408,7 +408,7 @@ endif
408 408
409$(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \ 409$(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \
410 affine_uno \ 410 affine_uno \
411 cli_cppuhelper_native \ 411 cli_cppuhelper \
412 cli_uno \ 412 cli_uno \
413 gcc3_uno \ 413 gcc3_uno \
414 java_uno \ 414 java_uno \
diff --git a/cli_ure/CliNativeLibrary_cli_cppuhelper.mk b/cli_ure/CliNativeLibrary_cli_cppuhelper.mk
index dfc52baf33ce..f9889dccbca1 100644..100755
--- a/cli_ure/CliNativeLibrary_cli_cppuhelper.mk
+++ b/cli_ure/CliNativeLibrary_cli_cppuhelper.mk
@@ -9,17 +9,17 @@
9 9
10include $(SRCDIR)/cli_ure/version/version.txt 10include $(SRCDIR)/cli_ure/version/version.txt
11 11
12$(eval $(call gb_CliNativeLibrary_CliNativeLibrary,cli_cppuhelper)) 12$(eval $(call gb_CliNativeLibrary_CliNativeLibrary,assembly/cli_cppuhelper))
13 13
14$(eval $(call gb_CliNativeLibrary_wrap_library,cli_cppuhelper,cli_cppuhelper_native)) 14$(eval $(call gb_CliNativeLibrary_wrap_library,assembly/cli_cppuhelper,cli_cppuhelper))
15 15
16$(eval $(call gb_CliNativeLibrary_set_configfile,cli_cppuhelper,cli_ure/source/native/cli_cppuhelper_config)) 16$(eval $(call gb_CliNativeLibrary_set_configfile,assembly/cli_cppuhelper,cli_ure/source/native/cli_cppuhelper_config))
17 17
18$(eval $(call gb_CliNativeLibrary_set_keyfile,cli_cppuhelper,$(SRCDIR)/cli_ure/source/cliuno.snk)) 18$(eval $(call gb_CliNativeLibrary_set_keyfile,assembly/cli_cppuhelper,$(SRCDIR)/cli_ure/source/cliuno.snk))
19 19
20$(eval $(call gb_CliNativeLibrary_set_policy,cli_cppuhelper,$(CLI_CPPUHELPER_POLICY_ASSEMBLY),$(CLI_CPPUHELPER_POLICY_VERSION))) 20$(eval $(call gb_CliNativeLibrary_set_policy,assembly/cli_cppuhelper,$(CLI_CPPUHELPER_POLICY_ASSEMBLY),$(CLI_CPPUHELPER_POLICY_VERSION)))
21 21
22$(eval $(call gb_CliNativeLibrary_use_assemblies,cli_cppuhelper,\ 22$(eval $(call gb_CliNativeLibrary_use_assemblies,assembly/cli_cppuhelper,\
23 cli_ure \ 23 cli_ure \
24 cli_uretypes \ 24 cli_uretypes \
25)) 25))
diff --git a/cli_ure/Library_cli_cppuhelper_native.mk b/cli_ure/Library_cli_cppuhelper_native.mk
index 72ddeb1fc593..f757fa39b528 100644..100755
--- a/cli_ure/Library_cli_cppuhelper_native.mk
+++ b/cli_ure/Library_cli_cppuhelper_native.mk
@@ -9,43 +9,43 @@
9 9
10include $(SRCDIR)/cli_ure/version/version.txt 10include $(SRCDIR)/cli_ure/version/version.txt
11 11
12$(eval $(call gb_Library_Assembly,cli_cppuhelper_native)) 12$(eval $(call gb_Library_Assembly,cli_cppuhelper))
13 13
14# When compiling for CLR, disable "warning C4339: use of undefined type detected 14# When compiling for CLR, disable "warning C4339: use of undefined type detected
15# in CLR meta-data - use of this type may lead to a runtime exception": 15# in CLR meta-data - use of this type may lead to a runtime exception":
16$(eval $(call gb_Library_add_cxxflags,cli_cppuhelper_native,\ 16$(eval $(call gb_Library_add_cxxflags,cli_cppuhelper,\
17 -AI $(gb_Helper_OUTDIRLIBDIR) \ 17 -AI $(gb_Helper_OUTDIRLIBDIR) \
18 -clr \ 18 -clr \
19 -wd4339 \ 19 -wd4339 \
20)) 20))
21 21
22$(eval $(call gb_Library_add_ldflags,cli_cppuhelper_native,\ 22$(eval $(call gb_Library_add_ldflags,cli_cppuhelper,\
23 -ignore:4248 \ 23 -ignore:4248 \
24 -keyfile:$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk) \ 24 -keyfile:$(call gb_Helper_windows_path,$(SRCDIR)/cli_ure/source/cliuno.snk) \
25)) 25))
26 26
27# TODO do not encode filenames here 27# TODO do not encode filenames here
28$(eval $(call gb_Library_add_ldflags,cli_cppuhelper_native,\ 28$(eval $(call gb_Library_add_ldflags,cli_cppuhelper,\
29 -delayload:cppuhelper3MSC.dll \ 29 -delayload:cppuhelper3MSC.dll \
30 -delayload:cppu3.dll \ 30 -delayload:cppu3.dll \
31 -delayload:sal3.dll \ 31 -delayload:sal3.dll \
32)) 32))
33 33
34$(eval $(call gb_Library_use_internal_bootstrap_api,cli_cppuhelper_native,\ 34$(eval $(call gb_Library_use_internal_bootstrap_api,cli_cppuhelper,\
35 udkapi \ 35 udkapi \
36)) 36))
37 37
38$(eval $(call gb_Library_use_packages,cli_cppuhelper_native,\ 38$(eval $(call gb_Library_use_packages,cli_cppuhelper,\
39 cli_ure_cliuno \ 39 cli_ure_cliuno \
40)) 40))
41 41
42$(eval $(call gb_Library_use_libraries,cli_cppuhelper_native,\ 42$(eval $(call gb_Library_use_libraries,cli_cppuhelper,\
43 cppu \ 43 cppu \
44 cppuhelper \ 44 cppuhelper \
45 sal \ 45 sal \
46)) 46))
47 47
48$(eval $(call gb_Library_use_system_win32_libs,cli_cppuhelper_native,\ 48$(eval $(call gb_Library_use_system_win32_libs,cli_cppuhelper,\
49 advapi32 \ 49 advapi32 \
50 delayimp \ 50 delayimp \
51 mscoree \ 51 mscoree \
@@ -55,12 +55,12 @@ $(eval $(call gb_Library_use_system_win32_libs,cli_cppuhelper_native,\
55 ) \ 55 ) \
56)) 56))
57 57
58$(eval $(call gb_Library_add_exception_objects,cli_cppuhelper_native,\ 58$(eval $(call gb_Library_add_exception_objects,cli_cppuhelper,\
59 cli_ure/source/native/native_bootstrap \ 59 cli_ure/source/native/native_bootstrap \
60 cli_ure/source/native/path \ 60 cli_ure/source/native/path \
61)) 61))
62 62
63$(eval $(call gb_Library_add_generated_exception_objects,cli_cppuhelper_native,\ 63$(eval $(call gb_Library_add_generated_exception_objects,cli_cppuhelper,\
64 CustomTarget/cli_ure/source/native/assembly \ 64 CustomTarget/cli_ure/source/native/assembly \
65)) 65))
66 66
diff --git a/scp2/source/ooo/ure.scp b/scp2/source/ooo/ure.scp
index be2c52f4d78f..a53ddcb6abb6 100644..100755
--- a/scp2/source/ooo/ure.scp
+++ b/scp2/source/ooo/ure.scp
@@ -592,7 +592,7 @@ End
592File gid_File_Lib_Cli_Cppuhelper_Assembly 592File gid_File_Lib_Cli_Cppuhelper_Assembly
593 TXT_FILE_BODY; 593 TXT_FILE_BODY;
594 Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH); 594 Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
595 Name = "cli_cppuhelper.dll"; 595 Name = "assembly/cli_cppuhelper.dll";
596 Dir = SCP2_URE_DL_DIR; 596 Dir = SCP2_URE_DL_DIR;
597 Assemblyname = "cli_cppuhelper"; 597 Assemblyname = "cli_cppuhelper";
598 PublicKeyToken = "ce2cb7e279207b9e"; 598 PublicKeyToken = "ce2cb7e279207b9e";