Package Details: oolite 1.90-4

Git Clone URL: https://aur.archlinux.org/oolite.git (read-only, click to copy)
Package Base: oolite
Description: A space-sim based on the classic Elite
Upstream URL: http://oolite.space/
Keywords: elite game role-playing space trading
Licenses: GPL2
Submitter: Barthalion
Maintainer: SanskritFritz
Last Packager: SanskritFritz
Votes: 16
Popularity: 1.01
First Submitted: 2018-01-16 18:40 (UTC)
Last Updated: 2023-04-03 16:26 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

GalaxyLJGD commented on 2023-04-05 21:44 (UTC)

I had that same error with wyrmsun package some time ago, I think this should solve it (I've not tested it yet):

diff --git a/PKGBUILD b/PKGBUILD
index ef61f64..fa9cde6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,6 +25,7 @@ prepare() {
 }

 build() {
+  CFLAGS+=' -Werror=format-security'
   cd "oolite-source-$pkgver"
   source /usr/share/GNUstep/Makefiles/GNUstep.sh
   make -f Makefile release

SanskritFritz commented on 2023-04-05 12:50 (UTC)

I'll update my archlinux first and then fix this package. I don't know why it builds here, but I haven't updated my system in a while and haven't tried to build in clean chroot.

VorpalWay commented on 2023-04-05 10:49 (UTC) (edited on 2023-04-05 10:51 (UTC) by VorpalWay)

I'm getting the same errors on standard Arch as @ipochto. No changes to my CFLAGS, but I am building in a clean chroot (using aurutils/devtools) and I am using distcc.

EDIT: Same issue if I disable distcc.

I don't see how this could work for anyone with -Werror=format-security set (which is set by default).

SanskritFritz commented on 2023-04-04 10:48 (UTC)

Same here https://github.com/archlinux/svntogit-packages/blob/packages/pacman/trunk/makepkg.conf

ipochto commented on 2023-04-04 08:12 (UTC)

@SanskritFritz

Did you set any compiler flags in /etc/makepkg.conf ?

Nope, it's default. And it has -Werror=format-security inside:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"

Oh, wait a minute - I'm on Manjaro, maybe they added it.

power_frontier commented on 2023-04-03 19:17 (UTC)

@SanskritFritz I'm having the same problem here, but the solution of ipochto worked for me. @ipochto Thanks!!

SanskritFritz commented on 2023-04-03 16:28 (UTC)

Did you set any compiler flags in /etc/makepkg.conf ?

SanskritFritz commented on 2023-04-03 16:26 (UTC)

Hmm it compiles here just fine.

ipochto commented on 2023-04-03 14:59 (UTC) (edited on 2023-04-03 15:18 (UTC) by ipochto)

Hi there. Get this while compiling.

src/SDL/MyOpenGLView.m: In function ‘-[MyOpenGLView init]’:
src/SDL/MyOpenGLView.m:327:9: error: format not a string literal and no format arguments [-Werror=format-security]
  327 |         OOLog(@"display.initGL", @"Achieved color / depth buffer sizes (bits):");
      |         ^
 Compiling file src/Core/OOCocoa.m ...
cc1obj: some warnings being treated as errors
make[4]: *** [/usr/share/GNUstep/Makefiles/rules.make:521: obj.spk/oolite.obj/MyOpenGLView.m.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/share/GNUstep/Makefiles/Instance/objc.make:64: internal-objc_program-all_] Error 2
make[2]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: oolite.all.objc-program.variables] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/objc.make:36: internal-all] Error 2
make[1]: Leaving directory '/home/alyokhin/.cache/yay/oolite/src/oolite-source-1.90'
make: *** [Makefile:78: release] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: oolite

fixed by added OBJCFLAGS="-fobjc-exceptions -Wno-format-security" -j$(nproc) at the end of

make -f Makefile release

in the PKGBUILD

simona commented on 2022-04-04 09:53 (UTC)

oolite depends on espeak (obsolete) instead of espeak-ng...