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

Do not run "make -q" when upgrading #12248

Closed
jdemeyer opened this issue Jan 2, 2012 · 15 comments
Closed

Do not run "make -q" when upgrading #12248

jdemeyer opened this issue Jan 2, 2012 · 15 comments

Comments

@jdemeyer
Copy link

jdemeyer commented Jan 2, 2012

The script spkg/install contains the lines

# Skip the rest if nothing to do (i.e., to [re]build):
# If "make" doesn't understand the -q option (although we require
# GNU make, which supports it), it should exit with a non-zero status
# which is not a problem.
if ${MAKE:-make} -q -f standard/deps $1; then
    echo "Nothing to (re)build / all up-to-date."
    exit 0
fi

This runs make with the -q option, which (via the makefile spkg/standard/deps) in turn runs sage-spkg. This changed recently, before #12016 make -q didn't run sage-spkg.

When upgrading, the file sage-spkg is not automatically upgraded, so we can have an old sage-spkg which does not understand the -q option which causes build errors (only visible in the log files), for example in spkg/logs/patch-2.5.9.p2.log.

This is a problem introduced by #12016.

Component: build

Keywords: sd35.5

Author: Jeroen Demeyer

Reviewer: John Palmieri, Volker Braun

Merged: sage-4.8.rc0

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

@jdemeyer
Copy link
Author

jdemeyer commented Jan 4, 2012

Author: Jeroen Demeyer

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented Jan 4, 2012

Attachment: 12248_make_q.patch.gz

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented Jan 5, 2012

comment:5

Successfully tested building from scratch and upgrading from sage-4.5.1.

@jhpalmieri
Copy link
Member

comment:6

Why did #12016 cause this? Is it because of all of the plus signs in spkg/standard/deps?

@jhpalmieri
Copy link
Member

comment:7

Unless I made a mistake, I was able to upgrade from 4.4 and 4.5.3 to Sage 4.8.alpha6 plus #9958 and its prerequisites (since that's what I was looking at earlier). I was also able to upgrade after applying the patch here. The patch looks okay to me, but I'm not sure it should be a blocker.

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented Jan 6, 2012

comment:8

Replying to @jhpalmieri:

Why did #12016 cause this? Is it because of all of the plus signs in spkg/standard/deps?

Yes. Those plus signs mark a make rule as recursive.

Replying to @jhpalmieri:

Unless I made a mistake, I was able to upgrade from 4.4 and 4.5.3 to Sage 4.8.alpha6 plus #9958 and its prerequisites (since that's what I was looking at earlier). I was also able to upgrade after applying the patch here.

Perhaps I should have been more clear. The upgrade might work without this patch, but you will see a failed build attempt for example in spkg/logs/patch-2.5.9.p2.log.

@jdemeyer
Copy link
Author

jdemeyer commented Jan 6, 2012

comment:9

Replying to @jhpalmieri:

The patch looks okay to me

Meaning "positive review"?

I'm not sure it should be a blocker.

I disagree since it causes non-fatal build errors. Seeing a scary message "An error occured... please contact sage-devel..." isn't good. Besides, this might possibly lead to an actual build failure.

@jdemeyer
Copy link
Author

jdemeyer commented Jan 6, 2012

Reviewer: John Palmieri

@vbraun
Copy link
Member

vbraun commented Jan 9, 2012

comment:10

Looks good to me!

@vbraun
Copy link
Member

vbraun commented Jan 9, 2012

Changed reviewer from John Palmieri to John Palmieri, Volker Braun

@vbraun
Copy link
Member

vbraun commented Jan 9, 2012

Changed keywords from none to sd35.5

@jdemeyer
Copy link
Author

Merged: sage-4.8.rc0

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

3 participants