Author Topic: Gentoo ebuilds  (Read 94126 times)

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
Re: Gentoo ebuilds
« Reply #150 on: August 10, 2008, 08:26:02 am »
hi there,
i just release ebuild :

2008-08-10 release planeshift-0.4.01-r2040 (to get art use psupdater.sh CheckIntegrity)

see you
loux

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
Re: Gentoo ebuilds
« Reply #151 on: August 18, 2008, 08:46:23 pm »
hi all folks,

update of planeshift :

2008-08-18 release planeshift-0.4.01-r2081

see you
loux

PS : i'm thinking of making and planeshift-svn-0.9.99 ebuild what do you think ?

loux

  • Hydlaa Citizen
  • *
  • Posts: 222
    • View Profile
Re: Gentoo ebuilds
« Reply #152 on: August 28, 2008, 07:21:30 am »
hi there,

2008-08-30 release planeshift-0.4.02-r2135

2008-08-28 release crystalspace-ps-1.4-r30956

see you
loux
« Last Edit: August 30, 2008, 08:42:45 am by loux »

Aiwendil

  • Guest
Re: Gentoo ebuilds
« Reply #153 on: September 08, 2008, 01:44:31 pm »
I had a problem with compiling cal3d-0.12-r493. In the loader.cpp file my compiler complained that auto_ptr could not found in the std:: namespace. I guess I broke this ebuild by upgrading my gcc to 4.3.1-r1 (unstable). Just in case anyone else runs in this problem here is my solution.

I did this all as root, but depending on your configuration you maybe can do it as a user in the portage group too. And you maybe have to change the /usr/local/portage directory, depending where you installed loux ebuilds.

Code: [Select]
cat > /usr/local/portage/media-libs/cal3d/files/auto_ptr_loader.patch << EOF
--- loader.cpp.orig     2008-09-08 09:33:46.000000000 +0000
+++ loader.cpp  2008-09-08 09:34:27.000000000 +0000
@@ -34,6 +34,8 @@
 #include "cal3d/streamsource.h"
 #include "cal3d/buffersource.h"

+#include <memory> // added for auto_ptr
+
 using namespace cal3d;

 int CalLoader::loadingMode;
EOF

cat > /usr/local/portage/media-libs/cal3d/files/strcasecmp_cal3d_converter.patch << EOF
--- cal3d_converter.cpp.orig    2008-09-08 09:37:06.000000000 +0000
+++ cal3d_converter.cpp 2008-09-08 09:38:45.000000000 +0000
@@ -11,6 +11,8 @@

 #include "cal3d/cal3d.h"

+#include <string.h> // added for strcasecmp
+
 #define SKELETON 0
 #define MESH 1
 #define ANIMATION 2
EOF

cat > /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.patch << EOF
--- cal3d-0.12-r493.ebuild.orig 2008-09-08 09:42:49.000000000 +0000
+++ cal3d-0.12-r493.ebuild      2008-09-08 10:09:17.000000000 +0000
@@ -14,6 +14,8 @@

 DEPEND=""

+inherit eutils
+
 src_compile() {
        cd cal3d
        autoreconf --install --force
@@ -28,3 +30,11 @@
        cd cal3d
        einstall || die
 }
+
+src_unpack() {
+       unpack \${A}
+       cd "cal3d/src"
+       epatch "\${FILESDIR}"/strcasecmp_cal3d_converter.patch
+       cd "cal3d"
+       epatch "\${FILESDIR}"/auto_ptr_loader.patch
+}
EOF

cp /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.ebuild /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.ebuild.orig

patch -i /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.patch /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.ebuild

ebuild /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.ebuild digest

This fix mainly creates two patch files. One for cal3d_converter.cpp that adds a #include <memory> to the code. With this auto_ptr will be available again. The second patch adds a #include <string.h> to cal3d_converter.cpp. This is needed for the strcasecmp function. The last patch I create is a patch for loux ebuild. With this patch the ebuild will make use of the two other patches. Ah, and if anyone else runs in this problem, please send me a short PM. I just want to know if it is a general problem, or something only I experience because I messed up my system ;). Ah, and this is the first ebuild modification I did, so if you notice something I did wrong please correct me. ;)

Maybe someone wants to adjust the user and group of the files created. You can do so with

Code: [Select]
chown root:portage /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.ebuild
chown root:portage /usr/local/portage/media-libs/cal3d/files/*.patch

And you can remove the temporary file
Code: [Select]
rm /usr/local/portage/media-libs/cal3d/cal3d-0.12-r493.patch

EDIT: typos, error in code snipet, added group adjustment and remove of temp file
 
« Last Edit: September 08, 2008, 02:47:48 pm by Aiwendil »

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #154 on: September 08, 2008, 02:01:24 pm »
Hi Aiwendil,

do you have run revdep-rebuild after you have upgraded your gcc?
and don't forget atfter gcc update to make "emerge -e system && emerge -e world"...
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

Aiwendil

  • Guest
Re: Gentoo ebuilds
« Reply #155 on: September 08, 2008, 02:04:49 pm »
thx for the hints Tyrania.
 Yes, I did a revdep-rebuild.

And I got the error when I try to emerge -e ;)

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #156 on: September 08, 2008, 02:15:43 pm »
can you post some code from the exact error?
(also when the emerge process abort)
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

Aiwendil

  • Guest
Re: Gentoo ebuilds
« Reply #157 on: September 08, 2008, 02:27:52 pm »
sure....

http://pastebin.com/m3bb9a51

and after fixing that first error....

http://pastebin.com/m16eefff4
http://pastebin.com/m10324e72 <- english
 
I don't see a big deal here. My guess is that some header files dependencies changed and one now have to include <memory> and <string.h> manually and before it they were included in some other header files of the std-lib. But of course just a guess ;)

EDIT: Oops, sorry, forgot the LC_ALL=C in the second log...Hope the german error messages aren't too confusing, added a pastebin with english error messages
« Last Edit: September 08, 2008, 03:00:45 pm by Aiwendil »

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #158 on: September 08, 2008, 02:36:03 pm »
Quote
loader.cpp: In static member function 'static CalCoreBone* CalLoader::loadCoreBones(CalDataSource&)':
loader.cpp:851: error: 'auto_ptr' is not a member of 'std'
loader.cpp:851: error: expected primary-expression before '>' token
loader.cpp:851: error: 'pCoreBone' was not declared in this scope
loader.cpp: In static member function 'static CalCoreSubmesh* CalLoader::loadCoreSubmesh(CalDataSource&)':
loader.cpp:1084: error: 'auto_ptr' is not a member of 'std'
loader.cpp:1084: error: expected primary-expression before '>' token
loader.cpp:1084: error: 'pCoreSubmesh' was not declared in this scope
loader.cpp: In static member function 'static CalCoreTrack* CalLoader::loadCoreTrack(CalDataSource&, CalCoreSkeleton*, float, int)':
loader.cpp:1354: error: 'auto_ptr' is not a member of 'std'
loader.cpp:1354: error: expected primary-expression before '>' token
loader.cpp:1354: error: 'pCoreTrack' was not declared in this scope
loader.cpp: In static member function 'static CalCoreMeshPtr CalLoader::loadXmlCoreMesh(cal3d::TiXmlDocument&)':
loader.cpp:2088: error: 'auto_ptr' is not a member of 'std'
loader.cpp:2088: error: expected primary-expression before '>' token
loader.cpp:2088: error: 'pCoreSubmesh' was not declared in this scope
loader.cpp: In static member function 'static CalCoreSkeletonPtr CalLoader::loadXmlCoreSkeleton(cal3d::TiXmlDocument&)':
loader.cpp:2629: error: 'auto_ptr' is not a member of 'std'
loader.cpp:2629: error: expected primary-expression before '>' token
loader.cpp:2629: error: 'pCoreBone' was not declared in this scope
make[3]: *** [loader.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/coremodel.Tpo .deps/coremodel.Plo
mv -f .deps/matrix.Tpo .deps/matrix.Plo
mv -f .deps/coresubmesh.Tpo .deps/coresubmesh.Plo
mv -f .deps/hardwaremodel.Tpo .deps/hardwaremodel.Plo
make[3]: Leaving directory `/var/tmp/portage/media-libs/cal3d-0.12-r493/work/cal3d/src/cal3d'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/cal3d-0.12-r493/work/cal3d/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/cal3d-0.12-r493/work/cal3d'
make: *** [all] Error 2
*
* ERROR: media-libs/cal3d-0.12-r493 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line  166:  Called die
* The specific snippet of code:
*       emake || die
*  The die message:
*   (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-libs/cal3d-0.12-r493/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/cal3d-0.12-r493/temp/environment'.
* This ebuild is from an overlay: '/usr/local/portage/'

i think the "loader.cpp" has a big problem...

is this the same version, you had used before? or is this a newer one?


hmm... i update my ps client in this evening, when i have enought time, for testings.

have you changed anything else on your system?


EDIT

omg.. ya...  ???
« Last Edit: September 08, 2008, 02:38:14 pm by Tyrania »
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

Aiwendil

  • Guest
Re: Gentoo ebuilds
« Reply #159 on: September 08, 2008, 02:43:52 pm »
That's the problem. I changed a lot....I upgraded gcc and glibc and some other packages (But mainly things like KDE and blender. That's why I think it was the gcc or glibc update). And yes, I used this version of cal3d already before. I was even able to compile PS after the update. (But only because cal3d wasn't updated then). But now I do a emerge -e and was stuck with reinstalling cal3d.

Anyway I want to thank for trying to help ;)

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #160 on: September 08, 2008, 02:45:34 pm »
ya... so i will test it on my machine at home and report if i get the same error. :)
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #161 on: September 09, 2008, 07:28:58 pm »
erhm.. ja..

i updated the overlay files and then this...

Quote
dragonslair ~ # emerge -NupvD world
WARNING: repository at /usr/local/portage is missing a repo_name entry

These are the packages that would be merged, in order:

Calculating dependencies / * A file is not listed in the Manifest: '/usr/local/portage/games-rpg/planeshift/planeshift-0.4.00-r1.ebuild'
 \ * A file is not listed in the Manifest: '/usr/local/portage/dev-games/crystalspace-ps/crystalspace-ps-1.1-r26889.ebuild'
 * A file is not listed in the Manifest: '/usr/local/portage/dev-games/cel-ps/cel-ps-1.2-r3019.ebuild'
... done!

Total: 0 packages, Size of downloads: 0 kB

hm.. ^^''
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

Aiwendil

  • Guest
Re: Gentoo ebuilds
« Reply #162 on: September 09, 2008, 07:48:47 pm »
Using the latest ebuilds and I don't have that issue. Anyway, I think a "ebuild /usr/local/portage/games-rpg/planeshift/planeshift-0.4.00-r1.ebuild digest" and for the other ebuilds maybe helps (But please make a backup before ;)). At least I think I had that when I changed the ebuild of cal3d...

Tyrania

  • Hydlaa Resident
  • *
  • Posts: 53
  • Fenki
    • View Profile
Re: Gentoo ebuilds
« Reply #163 on: September 09, 2008, 08:04:25 pm »
nja...

all what i've done was this:

dragonslair portage # tar xvjpf portage.tar.bz2
dragonslair portage # ls
dev-games  games-rpg  media-gfx  media-libs  portage.tar.bz2
dragonslair portage # rm portage.tar.bz2
dragonslair portage # cd
dragonslair ~ # emerge -NupvD world

and this way was in the paste the right way.. maybe something has been changed since i updated ps  ???
I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
Linus Torvalds

UberLord

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Re: Gentoo ebuilds
« Reply #164 on: October 16, 2008, 09:42:46 pm »
Quote
loader.cpp: In static member function 'static CalCoreBone* CalLoader::loadCoreBones(CalDataSource&)':
loader.cpp:851: error: 'auto_ptr' is not a member of 'std'
loader.cpp:851: error: expected primary-expression before '>' token
loader.cpp:851: error: 'pCoreBone' was not declared in this scope

gcc-4.3 forces strict header inclusions.
I couldn't see where cal3d includes this foo so I just wanged the right headers in the files that complained
This patch fixes :)

Code: [Select]
diff -ur cal3d.orig/src/cal3d/loader.cpp cal3d/src/cal3d/loader.cpp
--- cal3d.orig/src/cal3d/loader.cpp     2008-10-16 20:26:46.121857215 +0100
+++ cal3d/src/cal3d/loader.cpp  2008-10-16 20:25:55.413857009 +0100
@@ -16,6 +16,7 @@
 // Includes                                                                   //
 //****************************************************************************//

+#include <memory>
 #include "cal3d/loader.h"
 #include "cal3d/error.h"
 #include "cal3d/matrix.h"
diff -ur cal3d.orig/src/cal3d_converter.cpp cal3d/src/cal3d_converter.cpp
--- cal3d.orig/src/cal3d_converter.cpp  2008-10-16 20:37:24.072423219 +0100
+++ cal3d/src/cal3d_converter.cpp       2008-10-16 20:36:36.216423324 +0100
@@ -11,6 +11,8 @@

 #include "cal3d/cal3d.h"

+#include <cstring>
+
 #define SKELETON 0
 #define MESH 1
 #define ANIMATION 2