Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447626 - media-gfx/blender should not use environment variables to set installation directories
Summary: media-gfx/blender should not use environment variables to set installation di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: NeedPatch, UPSTREAM
Depends on:
Blocks:
 
Reported: 2012-12-17 18:06 UTC by Ambroz Bizjak
Modified: 2013-06-21 15:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ambroz Bizjak 2012-12-17 18:06:12 UTC
The ebuild for blender creates /etc/env.d/60blender with the following contents:

BLENDER_SYSTEM_SCRIPTS="/usr/share/blender/scripts"
BLENDER_SYSTEM_DATAFILES="/usr/share/blender/datafiles"
BLENDER_SYSTEM_PLUGINS="/usr/lib64/plugins"

The primary problem with this is that when Blender is newly installed, it will not start correctly without the user logging in again or sourcing /etc/profile. It pollutes the environment of all programs with meaningless information. The installation paths should be hardcoded into the executable, as for almost every other program.

Reproducible: Always

Steps to Reproduce:
1. Make sure you don't have Blender installed, no /etc/env.d/60blender and your environment doesn't have any BLENDER_* variables.
2. Install Blender.
3. Start it.
Actual Results:  
It prints lots of error messages and shows up with lots of missing things.
Comment 1 Ambroz Bizjak 2012-12-17 18:07:35 UTC
The current ebuild produces the following message concerning this problem, but it only mentions upgrades and not new installs:

*** If you're updating from blender before 2.63a, please make
*** sure to log out and then back in before launching it, so
*** that the new environment variables are picked up.
Comment 2 Jeroen Roovers gentoo-dev 2012-12-17 20:23:29 UTC
  21 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> blender-2.63a-r2.ebuild:
  Add a warning about the need for logging out and back in.
Comment 3 Julian Ospald 2013-03-10 00:08:09 UTC
I suspect that it might not even be needed anymore for media-gfx/blender-2.66 although I did not remove the env.d file

please check
Comment 4 Julian Ospald 2013-06-21 15:14:17 UTC
+*blender-2.67b-r1 (21 Jun 2013)
+*blender-2.66-r1 (21 Jun 2013)
+
+  21 Jun 2013; Julian Ospald <hasufell@gentoo.org> -blender-2.66.ebuild,
+  +blender-2.66-r1.ebuild, +files/blender-2.66-sse2.patch,
+  -blender-2.67b.ebuild, +blender-2.67b-r1.ebuild,
+  +files/blender-2.67b-sse2.patch:
+  fix dependencies wrt #466020, improve sse2 handling wrt #469134, remove env.d
+  file wrt #447626, fix fftw useflag, update REQUIRED_USE, allow running
+  src_install multiple times