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

gdmodule: don't use /sw and /usr/local paths #12909

Closed
jdemeyer opened this issue May 5, 2012 · 17 comments
Closed

gdmodule: don't use /sw and /usr/local paths #12909

jdemeyer opened this issue May 5, 2012 · 17 comments

Comments

@jdemeyer
Copy link

jdemeyer commented May 5, 2012

The gdmodule spkg should not use /sw/include as include path, as some Fink stuff there can interfere badly with Sage. Analogously, we shouldn't use /usr/local/include.

spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/gdmodule-0.56.p8.spkg
(diff)

gdmodule-0.56.p8 (Robert Bradshaw, Jeroen Demeyer, 6 May 2012)

  • Trac gdmodule: don't use /sw and /usr/local paths #12909: Setup.py: don't use non-system prefixes
    /sw and /usr/local to look for include files or libraries.
  • Use standard template for spkg-install, use patch for patching.
  • Restore upstream sources. The pre-existing changes to src/Setup.py
    have been moved to Setup.py.patch
  • _gdmodule.c: Undo change of #include <gd.h> to #include "gd.h"

Component: packages: standard

Author: Robert Bradshaw, Jeroen Demeyer

Reviewer: Volker Braun

Merged: sage-5.0.rc1

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

@jdemeyer jdemeyer added this to the sage-5.0 milestone May 5, 2012
@robertwb
Copy link
Contributor

robertwb commented May 5, 2012

@robertwb
Copy link
Contributor

robertwb commented May 5, 2012

comment:2
robertwb-macbookpro:standard robertwb$ diff -u -r gdmodule-0.56.p7 gdmodule-0.56.p8 | grep -v '/.hg'
diff -u -r gdmodule-0.56.p7/patches/Setup.py gdmodule-0.56.p8/patches/Setup.py
--- gdmodule-0.56.p7/patches/Setup.py	2012-05-05 15:14:01.000000000 -0700
+++ gdmodule-0.56.p8/patches/Setup.py	2012-05-05 15:15:00.000000000 -0700
@@ -41,7 +41,7 @@
 
 libdirs = dirtest([
     os.environ["SAGE_LOCAL"]+"/lib",
-    "/usr/local/lib", "/sw/lib", "/usr/lib",
+    "/usr/local/lib", "/usr/lib",
     "/usr/lib/X11", "/usr/X11R6/lib",
     "/opt/gnome/lib",
 ])
@@ -51,7 +51,7 @@
 
 incdirs = dirtest([
     os.environ["SAGE_LOCAL"]+"/include",
-    "/usr/local/include", "/sw/include", "/usr/include",
+    "/usr/local/include", "/usr/include",
     "/usr/include/X11", "/usr/X11R6/include",
     "/opt/gnome/include",
 ])
diff -u -r gdmodule-0.56.p7/patches/Setup.py.patch gdmodule-0.56.p8/patches/Setup.py.patch
--- gdmodule-0.56.p7/patches/Setup.py.patch	2012-05-05 15:14:01.000000000 -0700
+++ gdmodule-0.56.p8/patches/Setup.py.patch	2012-05-05 15:15:46.000000000 -0700
@@ -1,5 +1,23 @@
---- ../src/Setup.py	2007-01-10 10:23:03.000000000 -0800
-+++ Setup.py	2010-04-06 11:16:30.316434351 -0700
+--- ../src/Setup.py	2012-05-05 15:14:14.000000000 -0700
++++ Setup.py	2012-05-05 15:15:00.000000000 -0700
+@@ -41,7 +41,7 @@
+ 
+ libdirs = dirtest([
+     os.environ["SAGE_LOCAL"]+"/lib",
+-    "/usr/local/lib", "/sw/lib", "/usr/lib",
++    "/usr/local/lib", "/usr/lib",
+     "/usr/lib/X11", "/usr/X11R6/lib",
+     "/opt/gnome/lib",
+ ])
+@@ -51,7 +51,7 @@
+ 
+ incdirs = dirtest([
+     os.environ["SAGE_LOCAL"]+"/include",
+-    "/usr/local/include", "/sw/include", "/usr/include",
++    "/usr/local/include", "/usr/include",
+     "/usr/include/X11", "/usr/X11R6/include",
+     "/opt/gnome/include",
+ ])
 @@ -61,13 +61,12 @@
  import os
  if os.uname()[0][:6] == "CYGWIN":

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented May 5, 2012

Author: Robert Bradshaw, Jeroen Demeyer

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

jdemeyer commented May 5, 2012

comment:4

I did some further clean-up of the SPKG, needs review.

@jdemeyer

This comment has been minimized.

@jdemeyer jdemeyer changed the title gdmodule: don't use /sw/include include path gdmodule: don't use /sw and /usr/local paths May 7, 2012
@jdemeyer

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented May 7, 2012

comment:7

Looks good to me. Positive review if you commit the changes...

@jdemeyer
Copy link
Author

jdemeyer commented May 7, 2012

comment:8

Replying to @vbraun:

Looks good to me. Positive review if you commit the changes...

Done.

@jdemeyer
Copy link
Author

jdemeyer commented May 7, 2012

Reviewer: Volker Braun

@jdemeyer

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented May 7, 2012

comment:10

libdirs field in setup.py still has /usr/local/lib in it.
Is it on purpose?

@jdemeyer
Copy link
Author

jdemeyer commented May 7, 2012

comment:11

Replying to @dimpase:

libdirs field in setup.py still has /usr/local/lib in it.
Is it on purpose?

No, that's a mistake.

@jdemeyer
Copy link
Author

jdemeyer commented May 7, 2012

Attachment: gdmodule-0.56.p7-p8.diff.gz

@jdemeyer
Copy link
Author

jdemeyer commented May 7, 2012

comment:12

Fixed.

@jdemeyer
Copy link
Author

jdemeyer commented May 8, 2012

Merged: sage-5.0.rc1

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

4 participants