LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Built some new Packages for Slackware... (http://www.linuxquestions.org/questions/slackware-14/built-some-new-packages-for-slackware-782066/)

Alexvader 01-13-2010 07:26 PM

Built some new Packages for Slackware...
 
Hi Forum

I have built some new stuff for Slackware 13...

This is Engineer's stuff, so, pls forgive me for not giving that much attention to other kinds of apps, that may be more the like of the reader ... :)

I Have built :

XFoil http://web.mit.edu/drela/Public/web/xfoil/
AVL http://web.mit.edu/drela/Public/web/avl/


Calculix http://www.dhondt.de/
CGX


Wings3D http://www.wings3d.com/


Should anybody be interested in any of this, I will gladly share how I did it.


Why don't these guys at Simulia, Dassault Systemes, Autodesk, etc free their source code for us slackers to build Abaqus, Catia, and Inventor for Slackware... ?? :)

BRGDS

PS: Given that CGX, CCX, XFoil and AVL are number-crunching CPU hogs, I used Intel compilers to build them, but the results can easily extrapolate to gcc/gfortran.

tramni1980 01-13-2010 11:12 PM

You could submit your slackbuilds to www.slackbuilds.org to share with the community.

~sHyLoCk~ 01-14-2010 12:06 AM

Yup that'd be better! Most slackers rely on Slackbuilds.org for their packages! Good work btw! :)

Alexvader 01-15-2010 01:37 PM

Hi @tramni1980 @Shylock

I would really like to make Slackbuilds for these.. but I guess that I am not competent enough... :

for all the packages that I built, there was an extensive hackery... ( only exception made to cgx , ( a standard ./configure make trackinstall ) :

I had to create parallel 3 source trees, hack into the makefiles of 2 of them in order for them to build double precision libraries with ifort from INTEL, hack into one source file of the spooles library, to fix an illegal unreferenced function definition ( this is "set" to build in Fotran Compiler of Cray systems ), cd into the main source tree, and finally type make, not before having also hacked the makefile so that the fortran Linker of Intel would not try to find some _MAIN ( -nofor-main directive ) anmd use C++ linker instead.

All this about cgx... AVL and XFoil are only "a bit" harder... but still manageable...

Wings 3d will go easily, once you install ERLANG OTP from slackbuilds, and ESDL library ( erlang bindings for sdl )...

... wether it will run smoothly without segfaulting, this is another story... sometimes it does... sometimes it does not....


Has a will of its own .... :)

So... for me to automate all this in a slackbuild... it would require me to master sed, and awk.... I am working on this... but I am still "grasshoper".... :D

BRGDS

Alex

pwc101 01-15-2010 01:59 PM

Quote:

Originally Posted by Alexvader (Post 3827784)
So... for me to automate all this in a slackbuild... it would require me to master sed, and awk.... I am working on this... but I am still "grasshoper".... :D

Probably easier to create working copies of the modified files, then generate patches which you can apply during the SlackBuild. These patches modify the source files so that they then resemble your working ones. Also means you don't have to mess around with sed and awk in your script, and everyone can see the changes the patches make by just opening them up. See for example http://slackbuilds.org/repository/13.0/desktop/vwm/, which has a directory called patches. In this directory are three patches I created to modify the Makefiles so it would install correctly (mostly fixing hardcoded paths).

Although the Slackware philosophy encourages the smallest amount of patching as possible, there are times when it's unavoidable, and it seems to me to be the most transparent way of making changes to a source tree.

mostlyharmless 01-15-2010 03:21 PM

Quote:

Should anybody be interested in any of this, I will gladly share how I did it.


Why don't these guys at Simulia, Dassault Systemes, Autodesk, etc free their source code for us slackers to build Abaqus, Catia, and Inventor for Slackware... ??
Agree with the comments about the patches, and it might be nice to run this stuff too..

As far as the "Why don't..." question: well the usual answer is Money, in one form or anoher.


All times are GMT -5. The time now is 02:38 AM.