Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116143 - shelx: add dosformat USE flag
Summary: shelx: add dosformat USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL: https://pc42.xtal.rwth-aachen.de/~jam...
Whiteboard:
Keywords:
Depends on:
Blocks: 116146
  Show dependency tree
 
Reported: 2005-12-20 03:12 UTC by Jan Marten Simons
Modified: 2006-06-16 17:57 UTC (History)
0 users

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


Attachments
shelx97-bin ebuild (shelx97-bin-20041221.ebuild,549 bytes, text/plain)
2005-12-20 03:13 UTC, Jan Marten Simons
Details
first version of a shelx97 ebuild (non binary) (shelx97-20051221.ebuild,1.83 KB, text/plain)
2005-12-21 10:28 UTC, Jan Marten Simons
Details
2nd version of shelx-src ebuild (shelx97-20051221.ebuild,1.82 KB, text/plain)
2005-12-22 07:36 UTC, Jan Marten Simons
Details
updated ebuild (shelx97-20051221.ebuild,1.86 KB, text/plain)
2005-12-23 04:42 UTC, Jan Marten Simons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Marten Simons 2005-12-20 03:12:38 UTC
DESCRIPTION="SHELX system of crystallographic programs"
HOMEPAGE="http://shelx.uni-ac.gwdg.de/SHELX/"

Visit the homepage for details like how to obtain shelx.
shelx can solve and refine crystal structures.
Comment 1 Jan Marten Simons 2005-12-20 03:13:42 UTC
Created attachment 75182 [details]
shelx97-bin ebuild
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-20 07:32:43 UTC
Excellent, but why binary? The source is available for almost all of it.
Comment 3 Jan Marten Simons 2005-12-20 11:30:55 UTC
Well, I just had this ebuild lying around here for some time. I'll look into making one for the f-source.
Comment 4 Jan Marten Simons 2005-12-21 10:28:56 UTC
Created attachment 75281 [details]
first version of a shelx97 ebuild (non binary)

I tried to adept the platon ebuild in portage to shelx. One problem is that shelx would need a f95 compiler for some programms. Apart from this the correct license has to be picked/added into portage.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-21 12:16:08 UTC
(In reply to comment #4)
> Created an attachment (id=75281) [edit]
> first version of a shelx97 ebuild (non binary)
> 
> I tried to adept the platon ebuild in portage to shelx. One problem is that
> shelx would need a f95 compiler for some programms. Apart from this the correct
> license has to be picked/added into portage.

Either recent ifc or gcc-4 will provide f95.
Comment 6 Jan Marten Simons 2005-12-22 07:36:26 UTC
Created attachment 75329 [details]
2nd version of shelx-src ebuild

I've improved the ebuild a little bit. Now if someone could tell me how I could please portage to use ifc, I could actually test it.

Currently it barfs with:

USE="dosformat ifc" ebuild /usr/local/portage/sci-misc/shelx97/shelx97-20051221.ebuild digest install
>>> Generating digest file...
<<< shelx97-20051221.tgz
>>> Generating manifest file...
<<< files/digest-shelx97-20051221
<<< shelx97-20051221.ebuild
>>> Computed message digests.

>>> md5 files   ;-) shelx97-20051221.ebuild
>>> md5 files   ;-) files/digest-shelx97-20051221
>>> md5 src_uri ;-) shelx97-20051221.tgz
 * You need one of these Fortran Compilers: g95 ifc
 * Installed are: ifc
 * Current Fortran Compiler is set to g77, which is not usable with this package !
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-22 08:22:54 UTC
Try setting FC or F77 or so. fortran.eclass isn't really supporting f90 yet, that's on another bug. But should be able to fool it with those vars.
Comment 8 Jan Marten Simons 2005-12-23 03:38:55 UTC
Ok, setting FC and F77 to ifc works around the bug in fortran.eclass, but as ifc seems to be comercial I cannot test if it will work further than this:

FC="ifc" F77="ifc" USE="dosformat ifc" ebuild /usr/local/portage/sci-misc/shelx97/shelx97-20051221.ebuild digest install
>>> Generating digest file...
<<< shelx97-20051221.tgz
>>> Generating manifest file...
<<< files/digest-shelx97-20051221
<<< shelx97-20051221.ebuild
>>> Computed message digests.

>>> md5 files   ;-) shelx97-20051221.ebuild
>>> md5 files   ;-) files/digest-shelx97-20051221
>>> md5 src_uri ;-) shelx97-20051221.tgz
 * You need one of these Fortran Compilers: g95 ifc
 * Installed are: ifc
>>> Checking shelx97-20051221.tgz's mtime...
>>> /usr/local/portage/sci-misc/shelx97/shelx97-20051221.ebuild has been updated; recreating WORKDIR...
>>> Unpacking source...
>>> Unpacking shelx97-20051221.tgz to /var/tmp/portage/shelx97-20051221/work
Converting ciftab.def to use CRLF
Converting ciftab.f to use CRLF
Converting etime.f to use CRLF
Converting exit.f to use CRLF
Converting fdate.f to use CRLF
Converting flush.f to use CRLF
Converting shelxa.f to use CRLF
Converting shelxd.f to use CRLF
Converting shelxh.f to use CRLF
Converting shelxl.f to use CRLF
Converting shelxlv.f to use CRLF
Converting shelxpro.f to use CRLF
Converting shelxs.f to use CRLF
Converting shelxsv.f to use CRLF
Converting shelxwat.f to use CRLF
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/shelx97-20051221/work/unix ...
/usr/local/portage/sci-misc/shelx97/shelx97-20051221.ebuild: line 53: ifc=ifc: command not found
ifc -o shelxl shelxl.f shelxlv.f -O2

Error: A license for FCompL could not be obtained (-1,359,2).

Is your license file in the right location and readable?
The location of your license file should be specified via
the $INTEL_LICENSE_FILE environment variable.

License file(s) used were (in this order):
    1.  /opt/intel/licenses/*.lic
    2.  /opt/intel/compiler70/ia32/bin/*.lic

Please visit http://support.intel.com/support/performancetools/support.htm if you require technical assistance.

ifcbin: error: could not checkout FLEXlm license

!!! ERROR: sci-misc/shelx97-20051221 failed.


PS: Looks like the binary-ebuild is the better choice for the moment as long as gcc4/g95 isn't stable.
Comment 9 Jan Marten Simons 2005-12-23 03:42:50 UTC
After some more intese search I was able to find the ifc pendant of the icc download/free-license. I'll check back as soon, as I get the lic-file.
Comment 10 Jan Marten Simons 2005-12-23 04:42:33 UTC
Created attachment 75384 [details]
updated ebuild

Fixed an if statement.


I just tried to build shelx with ifc-7. It spit out lots of remarks but failed
on linking:

ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS
reference in /opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90file.o)
/lib/libc.so.6: could not read symbols: Bad value
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-23 08:47:32 UTC
Try a newer ifc, both 9 and 8 are available for non-commercial/academic now.
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-02 22:11:40 UTC
FYI the source for shelxc and shelxe were just released, as well as large improvements to the programs.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-04 09:27:47 UTC
And yet again they've been updated.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-04 02:21:12 UTC
Should work better now that gfortran is in ~arch.
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-05 09:48:18 UTC
I just wrote and committed an ebuild last night. Doesn't build on gfortran now, so only enabled for ifc.
Comment 16 Jan Marten Simons 2006-06-06 09:16:21 UTC
Thanks for your work Donnie. I'm happy that this tool is in portage, now. But could you add the dosformat bit from my ebuild, as this is quite useful for mixed win/linux environments (like on campus here), please?
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-06 10:09:53 UTC
Sure, will do when I have a few min.
Comment 18 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-16 17:57:32 UTC
Fixed