Package Details: openra-ra2-git 1104.git.e655ada-1

Git Clone URL: https://aur.archlinux.org/openra-ra2-git.git (read-only, click to copy)
Package Base: openra-ra2-git
Description: An OpenRA mod inspired by Command & Conquer: Red Alert 2
Upstream URL: https://github.com/OpenRA/ra2
Licenses: GPL3
Provides: openra-ra2
Submitter: fusion809
Maintainer: EndlessEden
Last Packager: EndlessEden
Votes: 2
Popularity: 0.000000
First Submitted: 2019-03-23 11:27 (UTC)
Last Updated: 2022-08-14 04:33 (UTC)

Latest Comments

weltio commented on 2024-08-01 09:11 (UTC) (edited on 2024-08-01 09:12 (UTC) by weltio)

build works, but starting does not

Loading mod: ra2
Exception of type `System.IO.FileNotFoundException`: Assembly `^BinDir|OpenRA.Mods.RA2.dll` not found.
  at OpenRA.ObjectCreator..ctor (OpenRA.Manifest manifest, OpenRA.InstalledMods mods) [0x00081] in <1ef93464c6994827ba309db024bb4aa7>:0 
  at OpenRA.ModData..ctor (OpenRA.Manifest mod, OpenRA.InstalledMods mods, System.Boolean useLoadScreen) [0x00028] in <1ef93464c6994827ba309db024bb4aa7>:0 
  at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) [0x00158] in <1ef93464c6994827ba309db024bb4aa7>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00475] in <1ef93464c6994827ba309db024bb4aa7>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00006] in <1ef93464c6994827ba309db024bb4aa7>:0 
  at OpenRA.Launcher.Program.Main (System.String[] args) [0x00046] in <645fb6fca4d6479f9a9ca5f442c3a27e>:0 

Aperculum commented on 2023-10-27 05:09 (UTC)

Package is broken. Asking for a working pkgbuild :)

fusion809 commented on 2023-01-10 11:19 (UTC) (edited on 2023-01-10 11:20 (UTC) by fusion809)

Package crashes on startup for me with the error:

Platform is Linux
Engine version is {DEV_VERSION}
Runtime: Mono 6.12.0 (makepkg/ed0788bf61f Sun Apr 24 04:25:18 PM UTC 2022) CLR 4.0.30319.42000
Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 1920x1080
Using resolution: 958x1040
Using window scale 1.00
OpenGL renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL version: 3.2.0 NVIDIA 525.78.01
Using default sound device
Internal mods:
    d2k: Dune 2000 ({DEV_VERSION})
    ra: Red Alert ({DEV_VERSION})
    modcontent: Mod Content Manager ({DEV_VERSION})
    ra2: Red Alert 2 ({DEV_VERSION})
    cnc: Tiberian Dawn ({DEV_VERSION})
External mods:
    ra-28140.git.2a26ddc: Red Alert (28140.git.2a26ddc)
    ra-28861.git.1339faa: Red Alert (28861.git.1339faa)
    ra-28826.git.145f6ab: Red Alert (28826.git.145f6ab)
    ra-28766.git.aa14c9c: Red Alert (28766.git.aa14c9c)
    hv-20210321: OpenHV (20210321)
    ra-28948.git.f612d82: Red Alert (28948.git.f612d82)
    openkrush_gen1-476.git.dc2a6c3: OpenKrush (476.git.dc2a6c3)
    ra-{DEV_VERSION}: Red Alert ({DEV_VERSION})
    ra-playtest-20221203: Red Alert (playtest-20221203)
    ura-431.git.128dc53: Red Alert: Unplugged (431.git.128dc53)
    ss-aa84e01: Sole Survivor (aa84e01)
    ra-28693.git.1969ae3: Red Alert (28693.git.1969ae3)
    ca-2473.git.7fb6d71: Combined Arms (2473.git.7fb6d71)
    rv-3959: Red Alert 2: Romanov's Vengeance (3959)
    rv-3959.git.66c9a08: Red Alert 2: Romanov's Vengeance (3959.git.66c9a08)
    rv-{DEV_VERSION}: Red Alert 2: Romanov's Vengeance ({DEV_VERSION})
    ura-v0.34 Alpha: Red Alert: Unplugged (v0.34 Alpha)
    radot5-178.git.fac9662: Red Alert .5 (178.git.fac9662)
    sp-843.git.0708243: Shattered Paradise (843.git.0708243)
    ra-release-20210321: Red Alert (release-20210321)
    ra2-1110.git.6bfd2da: Red Alert 2 (1110.git.6bfd2da)
    ra2-{DEV_VERSION}: Red Alert 2 ({DEV_VERSION})
Loading mod: ra2
Exception of type `System.Reflection.ReflectionTypeLoadException`: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:OpenRA.Traits.IPositionableInfo member:(null)
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:OpenRA.IOrderGenerator member:(null)
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:OpenRA.IOrderGenerator member:(null)
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000c9 from typeref (expected class 'OpenRA.Traits.IPositionable' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000e1 from typeref (expected class 'OpenRA.Orders.UnitOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000c9 from typeref (expected class 'OpenRA.Traits.IPositionable' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000c9 from typeref (expected class 'OpenRA.Traits.IPositionable' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000c9 from typeref (expected class 'OpenRA.Traits.IPositionable' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000b9 from typeref (expected class 'OpenRA.Traits.IPositionableInfo' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 0100019d from typeref (expected class 'OpenRA.ICacheStorage`1' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010000e1 from typeref (expected class 'OpenRA.Orders.UnitOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010001a3 from typeref (expected class 'OpenRA.Orders.GenericSelectTarget' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 010001b6 from typeref (expected class 'OpenRA.Graphics.ITintableRenderable' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
Could not resolve type with token 01000138 from typeref (expected class 'OpenRA.IOrderGenerator' in assembly 'OpenRA.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /build/mono/src/mono/mcs/class/corlib/System.Reflection/Assembly.cs:243 
  at OpenRA.Exts.GetNamespaces (System.Reflection.Assembly a) [0x00000] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.ObjectCreator+<>c.<.ctor>b__4_0 (System.Reflection.Assembly asm) [0x0000d] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in /build/mono/src/mono/external/corefx/src/System.Linq/src/System/Linq/SelectMany.cs:232 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0000e] in /build/mono/src/mono/external/corefx/src/System.Linq/src/System/Linq/ToCollection.cs:18 
  at OpenRA.ObjectCreator..ctor (OpenRA.Manifest manifest, OpenRA.InstalledMods mods) [0x000d6] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.ModData..ctor (OpenRA.Manifest mod, OpenRA.InstalledMods mods, System.Boolean useLoadScreen) [0x00028] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) [0x00158] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x004d5] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00006] in <24f0e3619f554a5f933da10fad880cd7>:0 
  at OpenRA.Launcher.Program.Main (System.String[] args) [0x00046] in <5d4b89d2b334460bb9bcbee58d04e4ba>:0 

AL lib: FreeContext: (0x55c850831c00) Deleting 32 Source(s)

I have a PKGBUILD that builds to produce a working version of this package:

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

pkgname=openra-ra2-git
_pkgname=${pkgname/-git}
pkgver=1110.git.6bfd2da
pkgrel=1
pkgdesc="An OpenRA mod inspired by Command & Conquer: Red Alert 2 "
arch=(x86_64)
url="https://github.com/OpenRA/ra2"
license=('GPL3')
install=openra-ra2.install
depends=('mono' 'ttf-dejavu' 'openal' 'libgl' 'freetype2' 'sdl2' 'lua51' 'hicolor-icon-theme' 'gtk-update-icon-cache'
         'desktop-file-utils' 'xdg-utils' 'zenity')
makedepends=('dos2unix' 'git' 'unzip' 'msbuild')
provides=('openra-ra2')
options=(!strip)
source=("git+${url}.git"
"openra-ra2"
"openra-ra2.appdata.xml"
"openra-ra2.desktop")
md5sums=('SKIP'
         '9279e5ffeac6428d256e816f2a6dce07'
         '5f9d4e39293302ff69f7a701c870e635'
         '882b9d629dde1ecbcd2098a2e0b96b1b')

pkgver() {
    cd $srcdir/ra2
    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/ra2
    dos2unix *.md
    chmod +x *.sh
}

build() {
    cd $srcdir/ra2
    make
    make version VERSION="${pkgver}"
}

package() {
    cd $srcdir/ra2
    mkdir -p $pkgdir/usr/{lib/${_pkgname}/mods,bin,share/pixmaps,share/doc/packages/openra-ra2,share/applications,share/appdata}
    cp -r engine/{glsl,lua,AUTHORS,COPYING,bin/*.{dll,so,exe}*,'global mix database.dat',VERSION} $pkgdir/usr/lib/openra-ra2
    cp -r mods/ra2 $pkgdir/usr/lib/${_pkgname}/mods
    cp -r engine/mods/{common,modcontent} $pkgdir/usr/lib/${_pkgname}/mods
    install -Dm755 $srcdir/openra-ra2 $pkgdir/usr/bin/openra-ra2
    cp -r $srcdir/../openra-ra2.appdata.xml $pkgdir/usr/share/appdata/openra-ra2.appdata.xml
    cp -r README.md $pkgdir/usr/share/doc/packages/${_pkgname}/README.md
    ln -sf /usr/share/icons/hicolor/512x512/apps/${_pkgname}.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
    install -Dm644 $srcdir/openra-ra2.desktop $pkgdir/usr/share/applications/openra-ra2.desktop
    for length in 16 32 48 64 128 256 512; do
      size="${length}x${length}"
      mkdir -p "$pkgdir/usr/share/icons/hicolor/${size}/apps"
      cp packaging/artwork/icon_${size}.png "$pkgdir/usr/share/icons/hicolor/${size}/apps/${_pkgname}.png"
    done
}

EndlessEden commented on 2021-11-21 20:33 (UTC)

@Mischa85 - it needs significant changes. It's why I took it over and it's on my to-do list.

I have a few packages ahead of this one and refactoring alot of this to use openra-git instead of internal libs to make it compliant will take some time.

I'm also working on openra-kang, a fork with ra2/d2 embedded. However that as well needs some significant code changes on the repo side (that I myself am hosting) to bring it up to date with upstream sources.

Mischa85 commented on 2021-11-21 18:02 (UTC)

This package is now totally disfunctional. Needs several fixes.

EndlessEden commented on 2021-08-21 03:44 (UTC) (edited on 2021-08-21 03:44 (UTC) by EndlessEden)

@fusion809 - I updated openra-git, overhauling my ancient pkgbuild, and adding the source to /usr/lib/openra/src/ to build against.

Please add checks in your pkgbuilds to build against this for smooth package installs that are compatible with installed openra versions. ~ Thanks.

fusion809 commented on 2019-07-16 11:10 (UTC) (edited on 2019-07-16 11:30 (UTC) by fusion809)

Thanks for the feedback, but I don't get this error. From your output it seems like you're using an unusual method of building it (doesn't look like you're using yay, as I've just used yay to build this package and haven't received this output, in fact it built without a problem). I have built this manually by git cloning and running makepkg -sifC --noconfirm and it built and installed problem-free. Likewise, I've tried running yay -S openra-ra2-git and it built and installed fine too. So if you're getting this issue I suggest it's because of whatever software you're using to build it, or you have an intermittent network issue (as it seems like dependency download is failing).

libook commented on 2019-07-16 11:01 (UTC) (edited on 2019-07-16 11:02 (UTC) by libook)

openra-ra2-git-906.git.b9668d9-1
Linux LiBuild 5.2.0-arch2-1-ARCH #1 SMP PREEMPT Mon Jul 8 18:18:54 UTC 2019 x86_64 GNU/Linux
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu

:: Parsing SRCINFO (1/1): openra-ra2-git
==> Making package: openra-ra2-git 906.git.b9668d9-1 (Tue 16 Jul 2019 06:48:40 PM CST)
==> Retrieving sources...
  -> Updating ra2 git repo...
Fetching origin

  -> Found openra-ra2
  -> Found openra-ra2.appdata.xml
  -> Found openra-ra2.desktop
==> Validating source files with md5sums...
    ra2 ... Skipped
    openra-ra2 ... Passed
    openra-ra2.appdata.xml ... Passed
    openra-ra2.desktop ... Passed
==> Cleaning up...
==> Making package: openra-ra2-git 906.git.b9668d9-1 (Tue 16 Jul 2019 06:48:43 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ra2 git repo...
Fetching origin
  -> Found openra-ra2
  -> Found openra-ra2.appdata.xml
  -> Found openra-ra2.desktop
==> Validating source files with md5sums...
    ra2 ... Skipped
    openra-ra2 ... Passed
    openra-ra2.appdata.xml ... Passed
    openra-ra2.desktop ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of ra2 git repo...
Cloning into 'ra2'...
done.
==> Starting prepare()...
dos2unix: converting file CODE_OF_CONDUCT.md to Unix format...
dos2unix: converting file CONTRIBUTING.md to Unix format...
dos2unix: converting file README.md to Unix format...
==> Starting pkgver()...
==> Sources are ready.
==> Making package: openra-ra2-git 906.git.b9668d9-1 (Tue 16 Jul 2019 06:48:49 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
Version changed to 906.git.b9668d9.
OpenRA engine version release-20190314 is required.
Downloading engine...
Compiling engine...
make[1]: Entering directory '/home/my_home/.cache/yay/openra-ra2-git/src/ra2/engine'
make[1]: Leaving directory '/home/my_home/.cache/yay/openra-ra2-git/src/ra2/engine'
make[1]: Entering directory '/home/my_home/.cache/yay/openra-ra2-git/src/ra2/engine'
Fetching StyleCopPlus from NuGet
Fetching StyleCop files from NuGet
Fetching ICSharpCode.SharpZipLib from NuGet
Fetching MaxMind.Db from NuGet
Fetching SharpFont from NuGet
Fetching NUnit from NuGet
Fetching NUnit.Console from NuGet
Fetching Open.Nat from NuGet
Fetching FuzzyLogicLibrary from NuGet.
Fetching SDL2-CS from GitHub.
make[1]: *** [Makefile:299: cli-dependencies] Error 7
make[1]: Leaving directory '/home/my_home/.cache/yay/openra-ra2-git/src/ra2/engine'
make: *** [Makefile:75: engine] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: openra-ra2-git