fakeroot
seems to have problems with make install
make install
# calls
sh -c '. ./packaging/functions.sh; install_assemblies ...
# calls
dotnet publish -c Release -p:TargetPlatform=linux-x64 -p:CopyGenericLauncher=True -p:CopyCncDll=True -p:CopyD2kDll=True -r linux-x64 -p:PublishDir=build/openra-git/pkg/openra-git/usr/lib/openra --self-contained true
The dotnet publish
does not work in fakeroot
:
fakeroot sh -xc '. ./packaging/functions.sh; install_assemblies build/openra-git/src/openra-git build/openra-git/pkg/openra-git/usr/lib/openra linux-x64 True True True'
+ . ./packaging/functions.sh
...
+ dotnet publish -c Release -p:TargetPlatform=linux-x64 -p:CopyGenericLauncher=True -p:CopyCncDll=True -p:CopyD2kDll=True -r linux-x64 -p:PublishDir=build/openra-git/pkg/openra-git/usr/lib/openra --self-contained true
Restore failed in 4.2s
vs without fakeroot
sh -xc '. ./packaging/functions.sh; install_assemblies build/openra-git/src/openra-git build/openra-git/pkg/openra-git/usr/lib/openra linux-x64 True True True'
+ . ./packaging/functions.sh
...
+ dotnet publish -c Release -p:TargetPlatform=linux-x64 -p:CopyGenericLauncher=True -p:CopyCncDll=True -p:CopyD2kDll=True -r linux-x64 -p:PublishDir=build/openra-git/pkg/openra-git/usr/lib/openra --self-contained true
Restore complete (1.3s)
The solution is probably to move the dotnet publish
to the build()
function as it runs without fakeroot
?
Pinned Comments
EndlessEden commented on 2021-08-21 04:03 (UTC)
Major Update: PKGBUILD mostly rewritten, earlier references to D2/R2 mods removed. Dependencies updated/fixed alongside optional dependancies including all known Openra mods.
NOTE: PKGBUILD now packages a copy of the source code at the time of building into /usr/lib/openra/src/; This is for building mods against and it is /not/ a mistake. Mods are built against a client version and /only/ work with that version. So without it, you would need to rebuild openra-git and all mods built against it every time you want to install a new mod. - However, this means a increase in install/package size by about 40%.
EndlessEden commented on 2017-08-16 00:13 (UTC) (edited on 2020-07-30 06:05 (UTC) by EndlessEden)
Updated: Fixed the removal of "make dependencies" upstream;
will be removing old entries for RA2/D2 soon, as building against upstream is not possible as RA2/D2 are lagging behind too much in updating their engine compatibility.