Package Details: openra-d2-git 167.git.f213467-1

Git Clone URL: https://aur.archlinux.org/openra-d2-git.git (read-only)
Package Base: openra-d2-git
Description: A Dune II-inspired mod of OpenRA
Upstream URL: https://github.com/OpenRA/d2
Licenses: GPL3
Provides: openra-d2
Submitter: fusion809
Maintainer: fusion809
Last Packager: fusion809
Votes: 1
Popularity: 0.415095
First Submitted: 2019-03-23 11:23
Last Updated: 2019-09-27 06:42

Latest Comments

1 2 Next › Last »

fusion809 commented on 2019-09-28 06:06

@Mr.Smith1974 have you tried the latest commit I just pushed? It uses a new upstream commit that was designed to fix this error.

fusion809 commented on 2019-09-02 17:31

I've reported this issue upstream at the OpenRA/d2 GitHub repo, https://github.com/OpenRA/d2/issues/145, as one of the lead developers of OpenRA told me in the #openra IRC channel that this is possibly due to an imprudent choice of game engine version.

fusion809 commented on 2019-09-02 16:28

Does this PKGBUILD work:

# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>

pkgname=openra-d2-git
_pkgname=openra-d2
pkgver=166.git.0a74333
pkgrel=1
pkgdesc="A Dune II-inspired mod of OpenRA"
arch=('any')
url="https://github.com/OpenRA/d2"
license=('GPL3')
install=openra-d2.install
depends=('mono>=5.4' 'ttf-dejavu' 'openal' 'libgl' 'freetype2' 'sdl2' 'lua51' 'hicolor-icon-theme' 'gtk-update-icon-cache'
         'desktop-file-utils' 'xdg-utils' 'zenity')
makedepends=('dos2unix' 'git' 'unzip')
provides=('openra-d2')
options=(!strip)
source=("git+${url}.git"
"openra-d2"
"openra-d2.appdata.xml"
"openra-d2.desktop")
md5sums=('SKIP'
         'f883c23d492f8c930aca5ad2c3624cc2'
         'e6c82533bf669122fd26f2d60ed97a6f'
         'ad2adc9f6f5f756492371b38c996d44c')

pkgver() {
    cd $srcdir/d2
    no=$(git rev-list --count HEAD)
    hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
    printf "${no}.git.${hash}"
}

prepare() {
    cd $srcdir/d2
    dos2unix *.md
    chmod +x *.sh
}

build() {
    cd $srcdir/d2
    make version VERSION="${pkgver}"
    ENGINE_VERSION=$(cat mod.config | grep ^ENGINE_VERSION | cut -d '"' -f 2)
    wget -c $(cat mod.config | grep AUTOMATIC_ENGINE_SOURCE | cut -d '"' -f 2 | sed "s/\${ENGINE_VERSION}/${ENGINE_VERSION}/g")
    unzip ${ENGINE_VERSION}.zip
    mv OpenRA-${ENGINE_VERSION}* engine
    make
}

package() {
    cd $srcdir/d2
    mkdir -p $pkgdir/usr/{lib/${_pkgname}/mods,bin,share/pixmaps,share/doc/packages/openra-d2,share/applications,share/appdata}
    install -dm775 $pkgdir/var/games/openra-d2
    cp -r engine/{glsl,lua,AUTHORS,COPYING,*.dll*,GeoLite2-Country.mmdb.gz,'global mix database.dat',launch-dedicated.sh,launch-game.sh,OpenRA.Game.exe,OpenRA.Server.exe,OpenRA.Utility.exe,VERSION} $pkgdir/usr/lib/openra-d2
    cp -r mods/d2 $pkgdir/usr/lib/${_pkgname}/mods
    cp -r engine/mods/{common,modcontent,d2k,cnc,ra} $pkgdir/usr/lib/${_pkgname}/mods
    install -Dm755 $srcdir/openra-d2 $pkgdir/usr/bin/openra-d2
    cp -r $srcdir/openra-d2.appdata.xml $pkgdir/usr/share/appdata/openra-d2.appdata.xml
    cp -r README.md $pkgdir/usr/share/doc/packages/${_pkgname}/README.md
    ln -sf /usr/lib/${_pkgname}/mods/d2/icon.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
    install -Dm644 $srcdir/openra-d2.desktop $pkgdir/usr/share/applications/openra-d2.desktop
#    mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,134x134,256x256}/apps
#    for size in 16 32 48 64 134 256; do
#      size="${size}x${size}"
#      cp packaging/linux/mod_${size}.png "$pkgdir/usr/share/icons/hicolor/${size}/apps/openra-d2.png"
#    done
    rm $pkgdir/usr/lib/${_pkgname}/*.sh
}

?

Mr.Smith1974 commented on 2019-09-02 16:16

I figured out what the problem is: he does not have time to download the engine file.zip and continue installation without it. I don't know whether the problem is PKGBUILD, or yay or script fetch-engine.sh. But you need to add a check if this file is fully downloaded.

fusion809 commented on 2019-09-02 14:56

Well, I'm stuck for ideas. I'm not a C# programmer, so I must admit the error is nonsense to me. Here is my build log, as I just installed it with yay: https://gist.github.com/39c445667f4d5c8dac99035096a0bdc5. As you can see, the output is quite different.

Mr.Smith1974 commented on 2019-09-02 14:49

yes. It was clean attempt. The complete output of the build with an error like this: https://pastebin.com/ENUHKgkr

fusion809 commented on 2019-09-02 14:30

Was your build attempt a clean attempt? That is, did you run makepkg -C to clean the build root, to ensure there were no build artefacts left over from the last build attempt that could stuff up the attempted rebuild? If not, please do so now.

Mr.Smith1974 commented on 2019-09-02 14:27

I installed msbuild-bin from aur. It helped. But now I get a fatal build error:

/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.Test/OpenRA.Test.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file "/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.Test/OpenRA.Test.csproj.metaproj" /home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.PostProcess/OpenRA.PostProcess.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file "/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.PostProcess/OpenRA.PostProcess.csproj.metaproj" make[1]: [Makefile:152: core] Error 1 make[1]: Leaving directory '/home/admin/.cache/yay/openra-d2-git/src/d2/engine' make: [Makefile:110: engine] Error 2 Fetching NUnit from NuGet Fetching NUnit.Console from NuGet Fetching Open.Nat from NuGet Fetching FuzzyLogicLibrary from NuGet. Fetching SDL2-CS from GitHub. Fetching OpenAL-CS from GitHub. Fetching Eluant from GitHub. Fetching rix0rrr.BeaconLib from NuGet. /home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.sln.metaproj : error MSB4057: The target "restore" does not exist in the project. [/home/admin/.cache/yay/openra-d2-git/src/d2/engine/OpenRA.sln] make[1]: [Makefile:171: cli-dependencies] Error 1 make[1]: Leaving directory '/home/admin/.cache/yay/openra-d2-git/src/d2/engine' make: [Makefile:106: engine-dependencies] Error 2 ==> ERROR: A failure occurred in build().

fusion809 commented on 2019-09-02 14:20

Well, I don't get this error, so I'm not sure what the problem is. Do you have msbuild installed? If not, try installing it and then attempt a rebuild of this package. If it works, I'll add msbuild to the make deps.

Mr.Smith1974 commented on 2019-09-02 14:18

@fusion809, Of course, I'm using the official version of 'mono' from the repository. And I still have this error.