You are not logged in.

#1 2015-03-29 09:08:32

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

[Solved] redeclipse 1.5

Solved 2015-04-06

All issues (for me at least) are now resolved; the AUR package can now be built, installed and run 'as-is' without any difficulties.

----

Red Eclipse has been updated to 1.5. The redeclipse AUR package is flagged as out-of-date; pending maintainer action, I had an interest in getting this to work on my computer, and was able to do so after some trial-and-error.

Update 2015-04-05: The redeclipse AUR package has been updated by the new maintainer (and upstream has tagged v1.5.1, so it is updated to that); however, I still had some issues with it locally, so have updated this thread to document them rather than clutter up the AUR comments.

I note below the changes I made locally, for the benefit of anyone interested. It is likely that some of these should be reported upstream as well. Feedback on either of these points is most welcome!

(1) Patch system-install.mk

Created the file system-install.diff with the following contents (revised 2015-04-05 to match state of the file at upstream commit 38ba0f8 [2015-04-04 13:30 UTC]):

--- src/system-install.mk	2015-04-03 06:00:37.000000000 +0000
+++ src/system-install.mk	2015-04-04 13:30:00.000000000 +0000
@@ -55,6 +55,7 @@
 system-install-client: client
 	$(MKDIR) $(libexecdir)/$(appname)
 	$(MKDIR) $(gamesbindir)
+	$(MKDIR) $(datadir)/$(appname)
 	install -m755 $(appclient) $(libexecdir)/$(appname)/$(appname)
 	install -m755 install/nix/$(appsrcname).am \
 		$(gamesbindir)/$(appname)
@@ -89,14 +90,17 @@
 	g,@APPNAME@,\
 	s,@APPNAME@,$(appname),g\n\
 	w\n" | ed -s $(gamesbindir)/$(appname)-server
-	install -m644 ../config/version.cfg \
-		$(datadir)/$(appname)/version.cfg
-	ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/version.cfg \
-		$(libexecdir)/$(appname)/version.cfg
+
+system-install-common:
+	$(MKDIR) $(libexecdir)/$(appname)
+	$(MKDIR) $(datadir)/$(appname)
+	cp -r ../config $(datadir)/$(appname)/config
+	ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/config \
+		$(libexecdir)/$(appname)/config
 
 system-install-data:
+	$(MKDIR) $(datadir)/$(appname)
 	cp -r ../data $(datadir)/$(appname)/data
-	rm -f $(datadir)/$(appname)/data/misc/largeandincharge.png
 
 system-install-docs: $(MANPAGES)
 	$(MKDIR) $(mandir)/man6
@@ -154,12 +158,15 @@
 	gzip -9 -n -c < ../doc/man/cube2font.1 \
 		> $(mandir)/man1/cube2font.1.gz
 
-system-install: system-install-client system-install-server system-install-data system-install-docs system-install-menus
+system-install: system-install-client system-install-server system-install-common system-install-data system-install-docs system-install-menus
+
+system-uninstall-common:
+	rm -rf $(datadir)/$(appname)/config
+	@rm -fv $(libexecdir)/$(appname)/config
 
 system-uninstall-client:
 	@rm -fv $(libexecdir)/$(appname)/$(appname)
 	@rm -fv $(libexecdir)/$(appname)/data
-	@rm -fv	$(libexecdir)/$(appname)/version.cfg
 	@rm -fv $(gamesbindir)/$(appname)
 
 system-uninstall-server:
@@ -168,7 +175,6 @@
 
 system-uninstall-data:
 	rm -rf $(datadir)/$(appname)/data
-	rm -fv $(datadir)/$(appname)/version.cfg
 
 system-uninstall-docs:
 	@rm -rfv $(docdir)/$(appname)/examples
@@ -185,7 +191,7 @@
 	@rm -fv $(icondir)/128x128/apps/$(appname).png
 	@rm -fv $(pixmapdir)/$(appname).xpm
 
-system-uninstall: system-uninstall-client system-uninstall-server system-uninstall-data system-uninstall-docs system-uninstall-menus
+system-uninstall: system-uninstall-client system-uninstall-server system-uninstall-common system-uninstall-data system-uninstall-docs system-uninstall-menus
 	-@rmdir -v $(libexecdir)/$(appname)
 	-@rmdir -v $(datadir)/$(appname)
 	-@rmdir -v $(docdir)/$(appname)
(2) Update PKGBUILD

Updated the PKGBUILD to be equivalent to the following (revised 2015-04-05):

pkgname="redeclipse"
pkgver="1.5.1"
pkgrel="1"
pkgdesc="free, casual arena shooter"
arch=("i686" "x86_64")
url="http://redeclipse.net"
license=("custom" "CC0" "CCPL:by" "CCPL:by-sa" "ZLIB" "MIT")
makedepends=("ed")
depends=("sdl_image"  "libgl" "sdl_mixer" "hicolor-icon-theme" "glu")
install="redeclipse.install"
source=("base-${pkgver}.tar.gz::https://github.com/red-eclipse/base/archive/v${pkgver}.tar.gz"
        "data-${pkgver}.tar.gz::https://github.com/red-eclipse/data/archive/v${pkgver}.tar.gz"
        "system-install.diff")
sha256sums=('2982c4337f4b344c6d77def6b2baec3a2b99b70a88752137475845f95c4d5193'
            'eba632f57b4fa76d6701950907231b354398883613da36c17dbc062c1758dd37'
            '226ab99b5a567cac7e8a941f864e990250522a44c64a31561ee3e4386360af7d')

prepare() {
    cd "${srcdir}/base-${pkgver}"
    rmdir data
    mv "${srcdir}/data-${pkgver}" data
}

build() {
    cd "${srcdir}/base-${pkgver}"
    make -C src/ client server
}

package() {
    cd "${srcdir}/base-${pkgver}"
    patch src/system-install.mk ../../system-install.diff
    make -C src/ DESTDIR="${pkgdir}" prefix=/usr system-install
    install -Dm 0644 "${srcdir}/base-${pkgver}/doc/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
    install -Dm 0644 "${srcdir}/base-${pkgver}/doc/all-licenses.txt" "${pkgdir}/usr/share/licenses/${pkgname}/all-licenses.txt"
}

You will need to update the "<!--redacted-->" part in the source array, since I'm not sure I got a suitable server in the rotation to add here. You can determine a more suitable one from the AUR package comments, or from upstream's download page; the md5sum is the one published by upstream.

Update 2015-04-03: Resolved by the new maintainer using source archives straight from GitHub.

(3) Compile, package, install and run successfully.

All other files in the package remained untouched.

The changes made above accomplish two things:

  1. Prevent the 'make system-install' command from failing, either due to a missing directory (the patch file), missing makedepend (it requires ed now), or not finding the "_linux" suffix that now appears on the binaries after compilation.

  2. Prevent Red Eclipse from erroring on launch with "could not find config directory"; the directory in question is included in the source, but is outside of the "src/" directory and is not installed/linked to by 'make system-install' directly for some reason.

Update 2015-04-05: Most issues no longer occur per PKGBUILD and upstream updates.

I hope this is useful to someone; as before, any feedback is welcome.

Last edited by aexoxea (2015-05-13 13:35:39)

Offline

#2 2015-03-29 09:41:28

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [Solved] redeclipse 1.5

Yes, there was a small oops in there smile; fixed now (and verified with a build and install from scratch).

Offline

#3 2015-04-03 03:43:27

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [Solved] redeclipse 1.5

My thanks to @carl.george for picking up maintainership of this package smile.

Unfortunately, I still had some issues locally with the now-updated PKGBUILD, and have updated the original post to again reflect those changes made to get it working locally. I also wanted to illustrate the exact errors seen here that prompted these changes originally.

I will of course live with it if no-one else sees these (i.e. if they turn out to be peculiarities of the setup here).

(1) Without 'ed' as a makedepend...

('ed' is not part of either the 'base' or 'base-devel' groups.)

<!--redacted-->

Update 2015-04-04: No longer an issue per PKGBUILD update.

(2) Without system-install.diff...

(redeclipse builds and installs OK, but then exits immediately at launch.)

% redeclipse
could not find config directory
[Exit code 1]
(3) Without the APPCLIENT and APPSERVER parameters on the 'make system-install' line...
<!--redacted-->

Update 2015-04-05: No longer an issue per upstream changes.

(4) Without copy and link of config directory...

(redeclipse builds and installs OK, but then exits immediately at launch.)

<!--redacted-->

Update 2015-04-05: Now irrelevant as this is the subject of an upstream patch.

Last edited by aexoxea (2015-04-05 15:03:47)

Offline

#4 2015-04-03 07:39:28

ctown.myth
Member
Registered: 2010-02-10
Posts: 169

Re: [Solved] redeclipse 1.5

Thanks! Your fixes seem to have worked for me.


AKA MyCookie!

Offline

#5 2015-04-04 01:38:03

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [Solved] redeclipse 1.5

ctown.myth wrote:

Thanks! Your fixes seem to have worked for me.

You're welcome smile, though they're more workarounds than fixes.

As of today, all of them bar one -- the 'config' directory -- are dealt with in the AUR package courtesy of the new maintainer, so it's just those extra lines under package() now that are needed.

Offline

#6 2015-04-06 06:41:09

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [Solved] redeclipse 1.5

A huge thank-you again to the new maintainer; as of today, the last issue I was experiencing has been resolved, with the relevant patch being included in the AUR package. I have successfully built, installed and run redeclipse using that AUR package with no changes, and so am marking this thread as 'solved'.

Offline

Board footer

Powered by FluxBB