Package Details: motogt 20110505-5

Git Clone URL: https://aur.archlinux.org/motogt.git (read-only, click to copy)
Package Base: motogt
Description: 2D top-viewed game where you drive a MotoGP bike
Upstream URL: http://motogt.sourceforge.net/
Licenses: GPL2
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 1
Popularity: 0.000000
First Submitted: 2016-01-18 11:53
Last Updated: 2021-07-17 11:38

Latest Comments

jose1711 commented on 2021-07-17 11:38

@ArnaudNux I've fixed the path to patch in the latest revision and managed to build it in a clean chroot - please try that.

ArnaudNux commented on 2021-07-11 22:00

@jose1711:

$ makepkg

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/libsfml-graphics-1.6.so: undefined reference to __glewCreateShaderObjectARB' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/libsfml-graphics-1.6.so: undefined reference to__glewAttachObjectARB' collect2: error: ld returned 1 exit status make[1]: [Makefile.lnx:15: ../MotoGT.bin] Error 1 make[1]: Leaving directory '/home/tempo/motogt12072021/motogt/src/MotoGT/src' make: [Makefile:2: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

jose1711 commented on 2021-07-01 16:52

testcase:

curl -s https://aur.archlinux.org/cgit/aur.git/snapshot/motogt.tar.gz | tar xzf -
cd motogt
sed -i -e 's/patch.gz/patch/' -e 's/gunzip -c/cat/' PKGBUILD
gunzip cumulative.patch.gz
updpkgsums
makepkg
# this should work fine

git init
git add motogt cumulative.patch MotoGT.desktop MotoGT.png PKGBUILD .SRCINFO
# warning: CRLF will be replaced by LF in cumulative.patch.
# The file will have its original line endings in your working directory

mkdir /tmp/testrepo
pushd /tmp/testrepo; git init --bare; popd

git remote add origin /tmp/testrepo
git commit -m 'Initial commit'
git push --set-upstream origin master

cd $(mktemp -d)
git clone /tmp/testrepo
cd testrepo
makepkg
# receive error about md5sum not matching
updpkgsums
makepkg
# 2 out of 13 hunks failed - build failed

actionless commented on 2021-07-01 16:11

@jose1711

please provide the exact steps to reproduce the problem, so i can try to reproduce it with a local repo first

(as far as i remember you could force such settings per filepath/pattern)

jose1711 commented on 2021-07-01 10:03

@actionless

I only resort to compressed tarballs when there's an issue with CRLF - git is stripping those and then the patching breaks. I was trying to sort this out using git options but ultimately failed. If you feel like you can fix it yourself I will gladly add as a co-maintainer.

actionless commented on 2021-07-01 09:48

it's very bad idea using tarballs inside version control, and also makes an extra step when reviewing package changes prior to build

please get back to plain .patch files as before

kleintux commented on 2021-06-25 10:35

The package failed to build

BikeSelection.cpp:284:30: error: reference to ‘data’ is ambiguous 284 | string s=string("<")+data->bikes[i].name+">"; | ^~~~ In file included from /usr/include/c++/11.1.0/string:54, from /usr/include/c++/11.1.0/bits/locale_classes.h:40, from /usr/include/c++/11.1.0/bits/ios_base.h:41, from /usr/include/c++/11.1.0/streambuf:41, from /usr/include/c++/11.1.0/bits/streambuf_iterator.h:3 , from /usr/include/c++/11.1.0/iterator:66, from /usr/include/sfml-1.6/SFML/System/Unicode.hpp:32, from /usr/include/sfml-1.6/SFML/System.hpp:39, from /usr/include/sfml-1.6/SFML/Window.hpp:32, from /usr/include/sfml-1.6/SFML/Graphics.hpp:32, from global.h:4, from BikeSelection.cpp:1: /usr/include/c++/11.1.0/bits/range_access.h:319:5: note: candidates are: template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’ 319 | data(initializer_list<_Tp> __il) noexcept | ^~~~ /usr/include/c++/11.1.0/bits/range_access.h:310:5: note: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’ 310 | data(_Tp (&__array)[_Nm]) noexcept | ^~~~ /usr/include/c++/11.1.0/bits/range_access.h:300:5: note: template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’ 300 | data(const _Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ /usr/include/c++/11.1.0/bits/range_access.h:290:5: note: template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’ 290 | data(_Container& __cont) noexcept(noexcept(__cont.data())) | ^~~~ In file included from global.h:95, from BikeSelection.cpp:1: Data.h:87:14: note: ‘Data* data’ 87 | extern Data *data; | ^~~~ make[1]: *** [Makefile.common:4: ../tmp-lnx/BikeSelection.o] Error 1 make[1]: Leaving directory '/home/xxx/.cache/paru/clone/motogt/src/MotoGT/src' make: *** [Makefile:2: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'motogt-20110505-3':