[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-14 Thread Dima Pasechnik


On Thursday, December 14, 2017 at 3:38:13 AM UTC, John H Palmieri wrote:
>
>  I tried this. First I build sage, then did
>
> $ cd src/mac-app
> $ make
>
> This led to an apparent error:
>
> mkdir -p sage-8.1-OSX_10.13.2_x86_64
> make: *** No rule to make target 
> `sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/Resources/sage/sage', 
> needed by `sage_symlink'.  Stop.
> make: *** Waiting for unfinished jobs
> xcodebuild -target Sage -configuration Debug \
> ARCHS=x86_64 \
> ONLY_ACTIVE_ARCH=NO \
> SDKROOT=
> Build settings from command line:
> ARCHS = x86_64
> ONLY_ACTIVE_ARCH = NO
> SDKROOT = 
>
> At this point it continued with 
>
> === BUILD TARGET Sage OF PROJECT Sage WITH CONFIGURATION Debug ===
>
>
> and then after just a few minutes, it said
>
> ** BUILD SUCCEEDED **
> mkdir -p sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
> cp -pRL build/Debug/Sage.app/ sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
> plutil -convert xml1 sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents
> /Info.plist
> sed -i '' "s/SAGE_VERSION/8.1/" sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.
> app/Contents/Info.plist
>
> but produced no .dmg file. If I make the change 
>
> diff --git a/src/mac-app/Makefile b/src/mac-app/Makefile
> index 430121647a..d0c8238cbc 100644
> --- a/src/mac-app/Makefile
> +++ b/src/mac-app/Makefile
> @@ -103,7 +103,7 @@ $(TARGET)/README.txt: $(SAGE_ROOT)/src/bin/sage-README
> -osx.txt
>  
>  non_app_files: $(TARGET)/README.txt $(TARGET)/.background/sage.png $(
> TARGET)/Applications
>  
> -sage_symlink: $(APP)/Contents/Resources/sage/sage
> +sage_symlink: $(APP)/Contents/Resources/sage
> rm -f $(APP)/sage
> ln -s Contents/Resources/sage/sage $(APP)/sage
>
>  
> then it seems to actually build correctly, producing a .dmg file.
>

thanks. This is now https://trac.sagemath.org/ticket/24373

I'll check if this change works on 10.12, too.

>
> -- 
> John
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-14 Thread Dima Pasechnik


On Thursday, December 14, 2017 at 3:32:27 AM UTC, kcrisman wrote:
>
>
>
> On Wednesday, December 13, 2017 at 7:18:46 AM UTC-5, Dima Pasechnik wrote:
>>
>> Could anyone who happens to be using OSX 10.13 check whether mac-app 
>> builds and works?
>> We have a recent thread here "Sage 8.1 building Mac-app fails" saying 
>> that it apparently fails on OSX 10.13
>> (but works on 10.12 - the OSX version I can test on ATM)
>>
>>
> Our IT folks have recommended not upgrading yet, FWIW.
>

given the recent discovery of the passwordless root login "feauture" on 
10.13, it's an unlucky version number... :-) 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-13 Thread John H Palmieri
 I tried this. First I build sage, then did

$ cd src/mac-app
$ make

This led to an apparent error:

mkdir -p sage-8.1-OSX_10.13.2_x86_64
make: *** No rule to make target 
`sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/Resources/sage/sage', 
needed by `sage_symlink'.  Stop.
make: *** Waiting for unfinished jobs
xcodebuild -target Sage -configuration Debug \
ARCHS=x86_64 \
ONLY_ACTIVE_ARCH=NO \
SDKROOT=
Build settings from command line:
ARCHS = x86_64
ONLY_ACTIVE_ARCH = NO
SDKROOT = 

At this point it continued with 

=== BUILD TARGET Sage OF PROJECT Sage WITH CONFIGURATION Debug ===


and then after just a few minutes, it said

** BUILD SUCCEEDED **
mkdir -p sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
cp -pRL build/Debug/Sage.app/ sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
plutil -convert xml1 sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/
Info.plist
sed -i '' "s/SAGE_VERSION/8.1/" sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
/Contents/Info.plist

but produced no .dmg file. If I make the change 

diff --git a/src/mac-app/Makefile b/src/mac-app/Makefile
index 430121647a..d0c8238cbc 100644
--- a/src/mac-app/Makefile
+++ b/src/mac-app/Makefile
@@ -103,7 +103,7 @@ $(TARGET)/README.txt: $(SAGE_ROOT)/src/bin/sage-README-
osx.txt
 
 non_app_files: $(TARGET)/README.txt $(TARGET)/.background/sage.png $(TARGET
)/Applications
 
-sage_symlink: $(APP)/Contents/Resources/sage/sage
+sage_symlink: $(APP)/Contents/Resources/sage
rm -f $(APP)/sage
ln -s Contents/Resources/sage/sage $(APP)/sage

 
then it seems to actually build correctly, producing a .dmg file.

-- 
John

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-13 Thread kcrisman


On Wednesday, December 13, 2017 at 7:18:46 AM UTC-5, Dima Pasechnik wrote:
>
> Could anyone who happens to be using OSX 10.13 check whether mac-app 
> builds and works?
> We have a recent thread here "Sage 8.1 building Mac-app fails" saying that 
> it apparently fails on OSX 10.13
> (but works on 10.12 - the OSX version I can test on ATM)
>
>
Our IT folks have recommended not upgrading yet, FWIW.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.