Package Search
 
Members: 351 | Topics: 765 | Posts: 3209
We welcome our newest member: Somewhat Reticent
Info
» You aren't logged in, login or registerOnline: No members and 1 guest | Time: 13:13
Blender 2.5 Alpha0 Upgrade and Fix Request
paldo Support Forum    Upkg    Package Specifications
Reply Reply   Subscribe Topic Subscribe Topic
New Alpha0 of 2.5 series is out and blender spec has problems
1 post found.
 Blender 2.5 Alpha0 Upgrade and Fix Request
Senior Mitglied
 
 
 
Posts: 216
Registered: 2008-07-04
Hi everyone,

This is 2 things an upgrade and a fix:

Apparently blender 2.5 that is in the repositories is not installing everything, this is because of attempt of not making conflicts with blender 2.49. But this makes blender 2.5 unusable and will make wrong impression for new user

So to fix it and upgrade the package since blender foundation just released their Alpha0 of the 2.5, I modified the spec. Now blender should be installed as scons want it to be but to disallow problems of conflicting packages with 2.49, it installs blender on /opt, and then the scripts for starting it and .desktop are install on /usr refering to /opt/blender-2.5 directory

Now other thing I saw is that blender 2.5 was using .blender directory which would have plugins and scripts for 2.49 that aren't always compatible with the new version since it upgraded to Python 3.1. So for that I changed the script from Richard to make blender 2.5 use the directory "$HOME/.blender-2.5" for its configuration and let blender 2.49 use its default on "$HOME/.blender". There's no conflict on the .B.blend file on "$HOME" because blender 2.50 defaults on using .B25.blend instead

If we keep the ln -s of the system files for the local files blender crashes with segmentation fault... it needs to cp -vr instead

After all these comments, the new spec for blender, making its installation correctly is bellow

Post Scriptum
<?xml version="1.0"?>
<package name="blender-2.5">
<description>free 3d modeller and renderer</description>
<!-- Maintainer: Richard Nespithal -->
<releases>
<release version="svnr24884" revision="1" branch="stable">
<deps>
<dep name="x11"/>
<dep name="xext"/>
<dep name="xxf86vm"/>
<dep name="freetype"/>
<dep name="SDL"/>
<dep name="Python3"/>
<dep name="jpeg"/>
<dep name="libpng"/>
<dep name="zlib"/>
<dep name="openal"/>
<dep name="scons"/>
<dep name="freealut"/>
<dep name="openexr"/>
<dep name="ffmpeg"/>
<dep name="gettext"/>
<dep name="mesa"/>
<dep name="tiff"/>
<dep name="samplerate"/>
</deps>
<build>
<script>
<archive name="$NAME-$VERSION">
<cmd>scons -j 2 BF_PYTHON_VERSION=3.1 BF_BUILDDIR=blender-build BF_INSTALLDIR=/opt/blender-2.5 WITH_BF_OPENMP=True WITH_BF_FFTW3=True WITH_BF_GAMEENGINE=True WITH_BF_OPENEXR=True WITH_BF_FFMPEG=True WITH_BF_OPENAL=True WITH_BF_SNDFILE=True WITH_BF_SDL=True WITH_BF_DDS=True WITH_BF_BULLET=True WITH_BF_FREETYPE=True</cmd>
<cmd check="no">cat &gt; /usr/share/applications/blender-2.5.desktop &lt;&lt; "EOF"
[Desktop Entry]
Name=Blender 2.5 Alpha0 3D Modeller
Comment=Create and edit 3D models and animations
Exec=/usr/bin/blender-2.5-start
Icon=blender
Terminal=false
Type=Application
Categories=Application;Graphics;
StartupNotify=false
MimeType=application/x-blender;
EOF</cmd>
<!-- Blender Start Script -->
<text dest="/usr/bin/blender-2.5-start" mode="755"><![CDATA;then
BLENDER_USER_BASE=${HOME}/.blender-2.5 /opt/blender-2.5/blender "$@"
else
mkdir -p ~/.blender-2.5
cp -vr /opt/blender-2.5/.blender/* ~/.blender-2.5/
blenderstarter "$@"
fi
}
blenderstarter "$@"
]]></text>
<cmd>install -D release/freedesktop/icons/scalable/blender.svg /usr/share/pixmaps/blender.svg</cmd>
</archive>
</script>
</build>
</release>
</releases>
</package>


For some reason the "CODE" is not working in here
 
..............................
OSs: Paldo-testing x86_64 :: HP Pavilion dv9680ez
Profile   Private Message   E-Mail
Created: 2009-11-26 11:41 | Modified: 2009-11-26 11:48 by diogo
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a