In order to build pygsl to Fedora 12 I had to patch pygsl to build with 
gsl-1.13

I am not sure if this is the right way to do it but it allows the build to be 
done.

The gsm units removed are documented in the news file, the remove of the gauss 
cgsm is not and I am puzzled why the constant is missing.


Regards,
-- 
José Abílio
diff -ur pygsl-0.9.4.orig/src/const_cgs_array.c pygsl-0.9.4/src/const_cgs_array.c
--- pygsl-0.9.4.orig/src/const_cgs_array.c	2005-04-27 08:53:37.000000000 +0100
+++ pygsl-0.9.4/src/const_cgs_array.c	2009-09-15 18:26:29.000000000 +0100
@@ -14,10 +14,10 @@
 {"mass_neutron",GSL_CONST_CGS_MASS_NEUTRON,"g"},
 {"rydberg",GSL_CONST_CGS_RYDBERG,"g cm^2 / s^2"},
 {"boltzmann",GSL_CONST_CGS_BOLTZMANN,"g cm^2 / K s^2"},
-{"bohr_magneton",GSL_CONST_CGS_BOHR_MAGNETON,"A cm^2"},
-{"nuclear_magneton",GSL_CONST_CGS_NUCLEAR_MAGNETON,"A cm^2"},
-{"electron_magnetic_moment",GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT,"A cm^2"},
-{"proton_magnetic_moment",GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT,"A cm^2"},
+/*{"bohr_magneton",GSL_CONST_CGS_BOHR_MAGNETON,"A cm^2"},*/
+/*{"nuclear_magneton",GSL_CONST_CGS_NUCLEAR_MAGNETON,"A cm^2"},*/
+/*{"electron_magnetic_moment",GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT,"A cm^2"},*/
+/*{"proton_magnetic_moment",GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT,"A cm^2"},*/
 {"molar_gas",GSL_CONST_CGS_MOLAR_GAS,"g cm^2 / K mol s^2"},
 {"standard_gas_volume",GSL_CONST_CGS_STANDARD_GAS_VOLUME,"cm^3 / mol"},
 {"minute",GSL_CONST_CGS_MINUTE,"s"},
@@ -76,9 +76,9 @@
 {"psi",GSL_CONST_CGS_PSI,"g / cm s^2"},
 {"poise",GSL_CONST_CGS_POISE,"g / cm s"},
 {"stokes",GSL_CONST_CGS_STOKES,"cm^2 / s"},
-{"faraday",GSL_CONST_CGS_FARADAY,"A s / mol"},
-{"electron_charge",GSL_CONST_CGS_ELECTRON_CHARGE,"A s"},
-{"gauss",GSL_CONST_CGS_GAUSS,"g / A s^2"},
+/*{"faraday",GSL_CONST_CGS_FARADAY,"A s / mol"},*/
+/*{"electron_charge",GSL_CONST_CGS_ELECTRON_CHARGE,"A s"},*/
+/*{"gauss",GSL_CONST_CGS_GAUSS,"g / A s^2"},*/
 {"stilb",GSL_CONST_CGS_STILB,"cd / cm^2"},
 {"lumen",GSL_CONST_CGS_LUMEN,"cd sr"},
 {"lux",GSL_CONST_CGS_LUX,"cd sr / cm^2"},
@@ -87,7 +87,7 @@
 {"lambert",GSL_CONST_CGS_LAMBERT,"cd sr / cm^2"},
 {"footlambert",GSL_CONST_CGS_FOOTLAMBERT,"cd sr / cm^2"},
 {"curie",GSL_CONST_CGS_CURIE,"1 / s"},
-{"roentgen",GSL_CONST_CGS_ROENTGEN,"A s / g"},
+/*{"roentgen",GSL_CONST_CGS_ROENTGEN,"A s / g"},*/
 {"rad",GSL_CONST_CGS_RAD,"cm^2 / s^2"},
 {"solar_mass",GSL_CONST_CGS_SOLAR_MASS,"g"},
 {"bohr_radius",GSL_CONST_CGS_BOHR_RADIUS,"cm"},
diff -ur pygsl-0.9.4.orig/src/const_cgsm_array.c pygsl-0.9.4/src/const_cgsm_array.c
--- pygsl-0.9.4.orig/src/const_cgsm_array.c	2006-12-21 12:20:15.000000000 +0000
+++ pygsl-0.9.4/src/const_cgsm_array.c	2009-09-15 18:36:50.000000000 +0100
@@ -77,7 +77,7 @@
 {"stokes",GSL_CONST_CGSM_STOKES,"cm^2 / s"},
 {"faraday",GSL_CONST_CGSM_FARADAY,"abamp s / mol"},
 {"electron_charge",GSL_CONST_CGSM_ELECTRON_CHARGE,"abamp s"},
-{"gauss",GSL_CONST_CGSM_GAUSS,"g / abamp s^2"},
+/*{"gauss",GSL_CONST_CGSM_GAUSS,"g / abamp s^2"},*/
 {"stilb",GSL_CONST_CGSM_STILB,"cd / cm^2"},
 {"lumen",GSL_CONST_CGSM_LUMEN,"cd sr"},
 {"lux",GSL_CONST_CGSM_LUX,"cd sr / cm^2"},
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
pygsl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss

Reply via email to