[Bug 819264] Review Request: Singular - Computer Algebra System for polynomial computations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=819264

--- Comment #20 from pcpa <paulo.cesar.pereira.de.andrade@xxxxxxxxx> ---
Created attachment 596916
  --> https://bugzilla.redhat.com/attachment.cgi?id=596916&action=edit
Macaulay2-factory.patch

With this patch, plus trivial Macaulay2.spec diff:

------%<------
$ diff -u ~/fedora/Macaulay2/Macaulay2.spec SPECS/
--- /home/pcpa/fedora/Macaulay2/Macaulay2.spec  2012-07-08 15:07:16.415854577
-0400
+++ SPECS/Macaulay2.spec        2012-07-08 15:30:18.705907510 -0400
@@ -8,7 +8,7 @@
 Summary: System for algebraic geometry and commutative algebra
 Name:    Macaulay2
 Version: 1.4
-Release: 7%{?dist}
+Release: 8%{?dist}

 License: GPLv2 or GPLv3
 Group:   Applications/Engineering
@@ -49,6 +49,8 @@
 # Build with pari 2.3 or 2.5.
 # Based on
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/macaulay2/current/SOURCES/Macaulay2-1.4-pari.patch?revision=596315&view=markup
 Patch10: Macaulay2-1.4-pari.patch
+# Build with newer factory and libfac subpackages of the new Singular package
+Patch11: Macaulay2-factory.patch

 %global system_normaliz 1

@@ -139,6 +141,7 @@
 %endif
 %patch9 -p1 -b .mpir
 %patch10 -p1 -b .pari
+%patch11 -p1 -b .factory

 [ -f configure -a -f include/config.h ] || make 

------%<------

Macaulay2 failed as:
 ** compiling x-factor.cpp
x-factor.cpp: In function 'void rawFactor(const RingElement*,
engine_RawRingElementArray_struct**, M2_arrayint_struct**)':
x-factor.cpp:500:21: error: too few arguments to function 'CFFList
Factorize(const CanonicalForm&, const CanonicalForm&, int)'
compilation terminated due to -Wfatal-errors.
make[2]: *** [x-factor.o] Error 1
make[2]: Leaving directory
`/home/pcpa/rpmbuild/BUILD/Macaulay2-1.4-r12617/Macaulay2/e'
make[1]: *** [all-in-e] Error 2
make[1]: Leaving directory
`/home/pcpa/rpmbuild/BUILD/Macaulay2-1.4-r12617/Macaulay2'
make: *** [all-in-Macaulay2] Error 2
make: Leaving directory `/home/pcpa/rpmbuild/BUILD/Macaulay2-1.4-r12617'
+ cat 'StagingArea/common/share/doc/Macaulay2/Normaliz/example-output/*'
cat: StagingArea/common/share/doc/Macaulay2/Normaliz/example-output/*: No such
file or directory
error: Bad exit status from /var/tmp/rpm-tmp.6IPz56 (%build)

496:      if (P->charac() == 0) {
497:        q = factorize(h);        // suitable for k = QQ, comes from libcf
(factory)
498:      }
499:      else {
500:        q = Factorize(h);        // suitable for k = ZZ/p, comes from
libfac
501:      }

$ grep -r Factorize /usr/include/factor*
/usr/include/factor.h:CFFList Factorize( const CanonicalForm & F, const
CanonicalForm & mipo, int is_SqrFree=0 ) ;
/usr/include/factory/factory.h:CFFList AbsFactorize( const CanonicalForm  & a
);

Maybe the fix is just s/Factorize/AbsFactorize/, or maybe you know how to fix
it :-),
or upstream can give some help on this...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]