Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove (duplicate) BOOST and M4RI source trees from PolyBoRi spkg, some clean-up #9472

Closed
nexttime mannequin opened this issue Jul 11, 2010 · 12 comments
Closed

Remove (duplicate) BOOST and M4RI source trees from PolyBoRi spkg, some clean-up #9472

nexttime mannequin opened this issue Jul 11, 2010 · 12 comments

Comments

@nexttime
Copy link
Mannequin

nexttime mannequin commented Jul 11, 2010

SPKG.txt excerpt from the modified spkg:

=== polybori-0.6.4.p2 (Leif Leonhardy, July 10th, 2010) ===
 * Removed Michael Abshoff from maintainer list (see #7738)
 * Deleted Boost source tree again since it was split off into a separate
   spkg (see below, 0.5.rc.p7), modified spkg-install accordingly
 * Deleted M4RI source tree, because it is a standard Sage package
 * Little clean-up and minor fixes in patches/custom.py
   - Note that CFLAGS etc. are still *overwritten* rather than modified!
 * Updated "Dependencies" section above

Slightly more readable:

  • Removed Michael Abshoff from maintainer list (see remove Michael Abshoff as maintainer of any of spkg's #7738)
  • Deleted Boost source tree again since it was split off into a separate
    spkg (see below, 0.5.rc.p7), modified spkg-install accordingly
  • Deleted M4RI source tree, because it is a standard Sage package
  • Little clean-up and minor fixes in patches/custom.py
    • Note that CFLAGS etc. are still overwritten rather than modified!
  • Updated "Dependencies" section above

During upgrade to 0.6.x, the Boost source unintentionally got in again. The new spkg is about 1.7MB, i.e. 300KB smaller.


The new PolyBoRi 0.6.4.p2 spkg is here.

(To test the patch, the directories have to be removed manually, since the attached patch doesn't delete them from 0.6.4.p1; see comment below.)


Since PolyBoRi also uses GD, $SAGE_ROOT/spkg/standard/deps should be updated (but there seem to have been no issues with that in the past).

CC: @kcrisman

Component: packages: standard

Author: Leif Leonhardy

Reviewer: Martin Albrecht

Merged: sage-4.5.3.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/9472

@nexttime nexttime mannequin added this to the sage-4.5.3 milestone Jul 11, 2010
@nexttime
Copy link
Mannequin Author

nexttime mannequin commented Jul 11, 2010

Attachment: polybori-0.6.4.p1-p2.patch.gz

Apply to polybori-0.6.4.p1. Source trees have to be removed manually.

@nexttime
Copy link
Mannequin Author

nexttime mannequin commented Jul 11, 2010

comment:1
$ diff -qr polybori-0.6.4.p1/ polybori-0.6.4.p2/
...
Files polybori-0.6.4.p1/SPKG.txt and polybori-0.6.4.p2/SPKG.txt differ
Files polybori-0.6.4.p1/patches/custom.py and polybori-0.6.4.p2/patches/custom.py differ
Files polybori-0.6.4.p1/spkg-install and polybori-0.6.4.p2/spkg-install differ
Only in polybori-0.6.4.p1/src: boost_1_34_1.cropped
Only in polybori-0.6.4.p1/src/polybori-0.6.4: M4RI

I.e., to remove the Boost and M4RI source trees, do:

rm -rv polybori-0.6.4.p1/src/boost_1_34_1.cropped
rm -rv polybori-0.6.4.p1/src/polybori-0.6.4/M4RI

I've tested the spkg with Sage 4.5.alpha4 (with SageNB 0.8.1 and zodb3 3.7.0.p4) on Ubuntu 9.04 x86_64; all tests, including long ones, passed.

@nexttime nexttime mannequin added the s: needs review label Jul 11, 2010
@haraldschilly
Copy link
Member

comment:2

leif's updated spkg: polybori-0.6.4.p2.spkg

@nexttime

This comment has been minimized.

@malb
Copy link
Member

malb commented Jul 11, 2010

comment:4

I replaced thePolyBoRi SPKG in Sage 4.5.alpha4 with the one linked above and built Sage from scratch without problems. All doctests also pass on sage.math. I checked the install log andPolyBoRi reports M4RI found (and wouldn't build without Boost anyway).

@qed777
Copy link
Mannequin

qed777 mannequin commented Aug 7, 2010

comment:5

It seems that we can install PolyBoRi in parallel with, e.g.,

$ env MAKEOPTS="-j20" ./sage -f http://sage.math.washington.edu/home/schilly/sage/spkg/polybori-0.6.4.p2.spkg

But I haven't tested this extensively.

@qed777
Copy link
Mannequin

qed777 mannequin commented Aug 9, 2010

Reviewer: Martin Albrecht

@qed777
Copy link
Mannequin

qed777 mannequin commented Aug 9, 2010

Merged: sage-4.5.3.alpha0

@qed777 qed777 mannequin removed the s: positive review label Aug 9, 2010
@qed777 qed777 mannequin closed this as completed Aug 9, 2010
@nexttime
Copy link
Mannequin Author

nexttime mannequin commented Aug 9, 2010

comment:7

Replying to @qed777:

Did you also update/correct standard/deps to reflect the GD dependency (cf. bottom note in the ticket's description)?

@qed777
Copy link
Mannequin

qed777 mannequin commented Aug 9, 2010

comment:8

Replying to @nexttime:

Replying to @qed777:

Did you also update/correct standard/deps to reflect the GD dependency (cf. bottom note in the ticket's description)?

No, I didn't. I apologize for that. (We should have, for the record, an updated deps file, or a deps.diff at minimum, attached to trac.)

Since "there seem to have been no issues with that [the missing GD dependency] in the past" and I'm nearly ready to release the current trial 4.5.3.alpha0, I've opened #9712 and suggest that we merge it in 4.5.3.alpha1.

I assume the GD change itself is already reviewed, so I can review #9712 fairly quickly. Or, if I have a spare moment, I'll post a new deps and deps.diff.

(Ticket #9433 should help with these types of changes.)

@nexttime
Copy link
Mannequin Author

nexttime mannequin commented Aug 10, 2010

comment:9

Karl-Dieter (kcrisman) has just reported on sage-release updating from 4.5.2 to 4.5.3.alpha0 failed on MacOS X 10.6 because this new PolyBoRi package failed to build:

...
Checking for C library m4ri... no
Checking for C header file gd.h... yes
Checking for C library gd... no
Symlinking to M4RI/m4ri ...
OSError: [Errno 2] No such file or directory:
  File "/Users/.../sage-4.5.2/spkg/build/polybori-0.6.4.p2/src/
polybori-0.6.4/SConstruct", line 421:
    os.symlink('.', m4ri_inc)
Error building PolyBoRi.
 
real	0m1.425s
user	0m0.860s
sys	0m0.473s
sage: An error occurred while installing polybori-0.6.4.p2
...

I'll open a new ticket for that shortly (unless someone else is faster).

@qed777
Copy link
Mannequin

qed777 mannequin commented Aug 11, 2010

comment:10

Replying to @nexttime:

I'll open a new ticket for that shortly (unless someone else is faster).

I've opened #9721 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants