GoboLinux bug tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000420Compilepublic2010-03-05 06:382010-03-22 15:56
Assigned To 
PlatformOSOS Version
Product VersionSVN 
Target VersionFixed in Version 
Summary0000420: configure_do_configuration should not mutate variables
Descriptionconfigure_do_configuration appends the source directory to the configure variable:

   [ "$needs_build_directory" = "yes" ] && configure="${sourcedir}/$configure"

If you need to call this function twice, then you must manually reset the configure variable. These functions would be more robust for recipie writers if they could be called multiple times without side-effects.
Additional InformationThe solution is just to set the combination "${sourcedir}/$configure" to something local rather than mutating configure.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
mohjive (administrator)
2010-03-12 02:19

Using a local variable might be better, but for the record: For what reason does configure_do_configuration need to be called multiple times?
mforbes (reporter)
2010-03-12 02:52

I am trying to write a rule for building ATLAS and LAPACK. The procedure is:
1) Run configure to determine the compiler flags
2) Build LAPACK with those flags
3) Re-run configure with a flag pointing to the now-built LAPACK

Hence, the two calls to configure_do_configure...
mohjive (administrator)
2010-03-13 02:17

If you are trying to build two applications they should have sepparate recipes, hence no need to call 'configure' twice with the same recipe.
mforbes (reporter)
2010-03-13 03:24

I would love to do that, but I have no idea how. In order to build LAPACK properly so that ATLAS can use it, you first need to run configure for ATLAS in order to determine the optimal compiler flags to build LAPACK with! However, ATLAS depends on LAPACK. This is a chicken and egg problem: Any suggestions would be appreciated...
mohjive (administrator)
2010-03-15 06:01

Have you tried with the recipes in the store?
mforbes (reporter)
2010-03-22 15:56

Yes. The standard recipe installs LAPACK as a dependency, but does not recompile it with the optimal flag choice made by ATLAS.

- Issue History
Date Modified Username Field Change
2010-03-05 06:38 mforbes New Issue
2010-03-12 02:19 mohjive Note Added: 0000969
2010-03-12 02:52 mforbes Note Added: 0000970
2010-03-13 02:17 mohjive Note Added: 0000971
2010-03-13 03:24 mforbes Note Added: 0000972
2010-03-15 06:01 mohjive Note Added: 0000973
2010-03-22 15:56 mforbes Note Added: 0000974

Copyright © 2000 - 2018 MantisBT Team
GoboLinux Bug Tracker