.NETCore 3.0.0 preview doesnot contains "/BaseAddress" option for crossgen. (#81)
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 16 Jul 2019 10:30:21 +0000 (19:30 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 16 Jul 2019 10:30:21 +0000 (19:30 +0900)
So, disable base_addr_support related code with temporal flag.
This flag will be removed after merging .NETCore 3.0.0 Release Candidate.

And remove change smack command for SYSTEM_BASE_ADDR_FILE
The base_addr_file is generated after first ni file generation.
So, smack change command is not necessary.

packaging/dotnet-launcher.spec

index 7cfc1c9..40a7c5e 100644 (file)
@@ -116,9 +116,11 @@ cmake \
 %if 0%{?use_default_base_addr}
        -DUSE_DEFAULT_BASE_ADDR="" \
 %endif
+%if 0%{?enable_base_addr_support}
        -DUNIQUE_DEFAULT_BASE_ADDR_SUPPORT="" \
        -DSYSTEM_BASE_FILE=%{_system_base_addr_file} \
        -DDEFAULT_BASE_ADDR_START=%{_default_base_addr_start} \
+%endif
        NativeLauncher
 
 make %{?jobs:-j%jobs} VERBOSE=1
@@ -140,7 +142,6 @@ install -m 0644 %{name}.conf %{buildroot}/etc/tmpfiles.d/%{name}.conf
 %post
 mkdir -p /opt/etc/skel/.dotnet
 chsmack -t -a User::App::Shared /opt/etc/skel/.dotnet
-chsmack -a _ %{_system_base_addr_file}
 %{_bindir}/dotnettool --ni-dll %{_runtime_dir}/System.Private.CoreLib.dll
 
 %files