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

cliquer's spkg-install does not work on cygwin #7308

Closed
mwhansen opened this issue Oct 26, 2009 · 13 comments
Closed

cliquer's spkg-install does not work on cygwin #7308

mwhansen opened this issue Oct 26, 2009 · 13 comments

Comments

@mwhansen
Copy link
Contributor

The section where SAGESOFLAGS are set assumes that the operating system is Linux, OS X, or Solaris. The spkg-install script exits even if SAGE_PORT is set to yes.

The patch here shows the relevant changes in the spkg, which can be found at http://sage.math.washington.edu/home/mhansen/cliquer-1.2.p3.spkg

CC: @sagetrac-drkirkby @williamstein

Component: porting: Cygwin

Keywords: cliquer

Author: Mike Hansen

Reviewer: William Stein

Merged: sage-4.3.3.alpha1

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

@mwhansen

This comment has been minimized.

@mwhansen
Copy link
Contributor Author

Author: Mike Hansen

@mwhansen
Copy link
Contributor Author

Attachment: trac_7308.patch.gz

@mwhansen

This comment has been minimized.

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Oct 30, 2009

comment:4

I'm not in a position to test this, but if you need to make any changes, I would suggest the following would be helpful. Some are I admit code I introduced, which is probaby not necessary. None are particularly important.

  • There is no longer any need to have
if [ -n "$SAGE_FORTRAN_LIB" ] && [ ! -e "$SAGE_FORTRAN_LIB" ]; then
    echo "SAGE_FORTRAN_LIB is defined as $SAGE_FORTRAN_LIB, but does not exist"
    exit 1
fi

since code in the recent prereq-0.4 (#7021) script checks this, so the above code is redundant.

  • There is no need to have the following line

if [ "x$SAGE64" = "xyes" ] || [ "x$SAGE64" = "x1" ]; then

It should instead be replaced by

if [ "x$SAGE64" = "xyes" ]; then

since some earlier code in the prereq-0.3 script written by William only allows SAGE64 to be unset, or set to yes or no. It is not possible to set it to 1, so there is no point testing if it is 1. The same behaviour is followed in my recent updated to prereq-0.4 (#7021) and also to prereq-0.5 which I have awaiting review (#7352)

  • There is no need to have

      # We exit here, since we are possibly on an unsupported platform.
      if [ -n "${SAGE_PORT:-x}" ]; then
          echo "Cannot determine your platform or it is not supported... exiting"
          exit 1
      else
    

since the recent prereq-0.4 update will exit for all unsupported platforms unless SAGE_PORT is set to 'yes'.

@williamstein
Copy link
Contributor

comment:5

The actual patch looks fine to me. Kirkby's comments are all fine, but of course shouldn't be part of this ticket. There is no point in confusing things by doing too much at once.

@qed777
Copy link
Mannequin

qed777 mannequin commented Feb 10, 2010

comment:6

I think the existing package is called cliquer-1.2.p3. Should we make the new one p4?

@qed777 qed777 mannequin added this to the sage-4.3.3 milestone Feb 10, 2010
@qed777
Copy link
Mannequin

qed777 mannequin commented Feb 10, 2010

Work Issues: Rebase vs. #7824

@williamstein
Copy link
Contributor

comment:11

I rebased Mike's patch, refereed it, and posted a new spkg with the rebased patch here:

http://wstein.org/home/wstein/ports/cygwin/cliquer-1.2.p4.spkg

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 16, 2010

Merged: sage-4.3.3.alpha1

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 16, 2010

Reviewer: William Stein

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 16, 2010

comment:12

Feel free to open another ticket to address the issues that drkirkby raised.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 16, 2010

Changed work issues from Rebase vs. #7824 to none

@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Feb 16, 2010
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