blender module build script

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

blender module build script

Post#16 by Rava » 31 Oct 2020, 06:00

ncmprhnsbl wrote:
31 Oct 2020, 05:07
"Version 20200828" refers to this update script, not blender..
TVTropes: SillyMeGesture

Warning, tvtropes.org might ruin your life: https://tvtropes.org/pmwiki/pmwiki.php/ ... inYourLife
ncmprhnsbl wrote:
31 Oct 2020, 05:07
if you wanted to compile blender yourself, it will compile with any python-3.* version..
Ever tried that?
If it would be that easy then there would already be Blender Variants out there with 3.8 python support, no?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

blender module build script

Post#17 by ncmprhnsbl » 30 Oct 2022, 08:18

script updated/fixed for current blender ..see first post.
tested and seems to work ok, but the safest method is to download a blender tarball, place it in /tmp and run the script, to save excessive downloading if there's a failure..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

blender module build script

Post#18 by Rava » 31 Oct 2022, 01:00

ncmprhnsbl wrote:
30 Oct 2022, 08:18
script updated/fixed for current blender ..see first post.
tested and seems to work ok, but the safest method is to download a blender tarball, place it in /tmp and run the script, to save excessive downloading if there's a failure..
downloaded update-blender-20221023.xzm…

Code: Select all

d911613a6301acaf24b1016051a2d35e  update-blender-20221023.xzm
is my md5sum correct?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

blender module build script

Post#19 by ncmprhnsbl » 31 Oct 2022, 01:15

Rava wrote:
31 Oct 2022, 01:00
is my md5sum correct?
yep
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

blender module build script

Post#20 by Rava » 31 Oct 2022, 01:31

ncmprhnsbl wrote:
30 Oct 2022, 08:18
the safest method is to download a blender tarball, place it in /tmp and run the script, to save excessive downloading if there's a failure..
Is the script giving a hint where one would get the newest blender tarball?

Also, since the script is able to use the current directory instead of /tmp , I presume downloading the tarball manually into that directory prior of starting the script will also work?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

blender module build script

Post#21 by ncmprhnsbl » 31 Oct 2022, 01:55

Rava wrote:
31 Oct 2022, 01:31
Is the script giving a hint where one would get the newest blender tarball?
nope (unless you read the script itself ;)) ... blender.org/download for stable ..and builder.blender.org/download/daily for others
Rava wrote:
31 Oct 2022, 01:31
Also, since the script is able to use the current directory instead of /tmp , I presume downloading the tarball manually into that directory prior of starting the script will also work?
indeed, it should..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

blender module build script

Post#22 by Rava » 31 Oct 2022, 04:33

update-blender (V20221023) gave me this error while processing a previously downloaded file (blender-3.3.2-candidate+v33.2a7b8e78e192-linux.x86_64-release.tar.xz) and using option -d:
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
Added in 5 minutes 10 seconds:
After module creation and

Code: Select all

activate blender-3.3.2-x86_64-de.xzm
I realized there is no menu entry for blender in XFCE's 4.16 graphics submenu.
Is that intentionally?

Added in 7 minutes 28 seconds:
But it runs (started from terminal) and looks gorgeous
Image
(not that I am capable of doing much testing with it…)
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

blender module build script

Post#23 by beny » 31 Oct 2022, 09:27

hi:
root@porteus:~# update-blender -d /home
Work will be done in: /root

A blender tarball was found in /root
We will use this archive to create blender.

Choose the blender file you want to process.


1) blender-3.4.0-alpha+master.d1d2f002c7ca-linux.x86_64-release.tar.xz
#?
work without warning

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

blender module build script

Post#24 by Rava » 31 Oct 2022, 09:31

beny wrote:
31 Oct 2022, 09:27
root@porteus:~# update-blender -d /home
Work will be done in: /root
beny, update-blender says on parameter -d :
-d : do operations in the present directory, instead of /tmp
(highlighting by me)
Your present directory was /root so -d will do the work in /root - not in /home since the parameter -d not looks for any additional info given to it.

Added in 59 seconds:
beny wrote:
31 Oct 2022, 09:27
1) blender-3.4.0-alpha+master.d1d2f002c7ca-linux.x86_64-release.tar.xz
does the blender-3.4.0 module work as well as mine blender-3.3.2-x86_64-de.xzm did?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

blender module build script

Post#25 by ncmprhnsbl » 31 Oct 2022, 09:41

Rava wrote:
31 Oct 2022, 04:46
gave me this error
warning.. yeah, this just a deprecation in xargs that's kicking around in various scripts, that haven't been cleaned up yet .. harmless, but will fix.
Rava wrote:
31 Oct 2022, 04:46
I realized there is no menu entry for blender in XFCE's 4.16 graphics submenu.
Is that intentionally?
no, make sure there's /usr/share/applications/blender.desktop in the module .. there should be .. i think i've noticed xfce(4.16) can be a bit funky updating it's menu sometimes .. check the rightclick>applications menu, it seems to be more reliable.
@beny, thanks for testing :) ... that xargs warning was only triggered when choosing a language other than us-en
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

blender module build script

Post#26 by beny » 31 Oct 2022, 14:39

hi ncmprhnsbl this is the script in a porteus stock,take a look at python version listed:but porteus have the python3 version.
guest@porteus:~/Documents$ sudo sh update-blender -d '/home/guest/Documents'
Python 2.7.18
Work will be done in: /home/guest/Documents

A blender tarball was found in /home/guest/Documents
We will use this archive to create blender.

Choose the blender file you want to process.


1) blender-3.3.2-candidate+v33.2a7b8e78e192-linux.x86_64-release.tar.xz
#?
i have stripped the xzm package and python version inside is 3.10 so i don't know where the script take this line......

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

blender module build script

Post#27 by raja » 31 Oct 2022, 16:54

Code: Select all

root@porteus:/mnt/sda6/firefox# update-blender -d blender*.*xz
Work will be done in: /mnt/sda6/firefox 

 A blender tarball was found in /mnt/sda6/firefox 
 We will use this archive to create blender.

Choose the blender file you want to process.


1) blender-3.3.1-linux-x64.tar.xz
#? 1
CHOICE: blender-3.3.1-linux-x64.tar.xz 
 Unable to get version info.. 
 The tarball's name does not conform to known parameters. 
 Exiting.
tarball was downloaded from Blender site.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

blender module build script

Post#28 by beny » 31 Oct 2022, 17:24

hi raja choose your blender version on this link:
https://builder.blender.org/download/daily/

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

blender module build script

Post#29 by ncmprhnsbl » 31 Oct 2022, 23:42

raja wrote:
31 Oct 2022, 16:54
tarball was downloaded from Blender site.
uploaded a new version: 20221101 see first post.
should fix the problem, haven't tested
beny wrote:
31 Oct 2022, 14:39
hi ncmprhnsbl this is the script in a porteus stock,take a look at python version listed:but porteus have the python3 version.
odd that is appearing .. the only line is setting a variable: PYTHVER=`/usr/bin/python --version | cut -d" " -f2 | awk -F. '{print$1$2}'`
and i would think that our /usr/bin/python --version should output 3.9*
in any case, all of that is redundant at this point since blender is building their tarball with 3.10 ...i've just left most of the python stuff in commented in case at some future point ours and their pythons coincide..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

blender module build script

Post#30 by beny » 01 Nov 2022, 00:02

no problem ncmprhnsbl if i use the other version the python list is 3.10 is ok python is inside the package so no problem with the porteus version,i have also done a package for a slackware current and work also with the txz version,is a good script for an heavy software.

Post Reply