This repository has been archived by the owner. It is now read-only.

duti repo now hosted on github, update URLs #15092

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

I'm the maintainer of the duti project. I've moved the project repo from SF.net to github. Thought you'd appreciate a patch for duti.rb with the new URLs.

What's the reasoning here? Is it no longer pre-autoconfed?

Owner

moretension commented on d3fcb2c Sep 26, 2012

I generally don't version control the configure script (autoconf before release instead), so the 1.5.1 tag doesn't have a configure script. I may change that for future updates, but for now I've added a github download URL that's a tarball of 1.5.1 with the configure script. I'll send another pull request.

Contributor

adamv commented Sep 30, 2012

This now results in a build failure on Snow Leopard; PPC arch isn't compatible with the other flags we set, and shouldn't be a compiled architecture.

$ brew install -v duti
==> Downloading https://github.com/downloads/fitterhappier/duti/duti-1.5.1.tar.gz
/usr/bin/curl -qf#LA Homebrew 0.9.3 (Ruby 1.8.7-249; Mac OS X 10.6.8) https://github.com/downloads/fitterhappier/duti/duti-1.5.1.tar.gz -o /usr/local/homebrew-cache/duti-1.5.1.tar.gz
######################################################################## 100.0%
/usr/bin/tar xf /usr/local/homebrew-cache/duti-1.5.1.tar.gz
==> ./configure --prefix=/Users/adamv/homebrew/Cellar/duti/1.5.1
./configure --prefix=/Users/adamv/homebrew/Cellar/duti/1.5.1
checking for gawk... gawk
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking which SDK to use... /Developer/SDKs/MacOSX10.6.sdk
checking Mac OS X deployment target... 10.6
checking for strlcpy... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating version.c
==> make install
make install 
/usr/bin/gcc-4.2 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch ppc -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Os -w -pipe -march=core2 -mmacosx-version-min=10.6 -c ./version.c
/usr/bin/gcc-4.2 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch ppc -mmacosx-version-min=10.6 -Wall -Wmissing-prototypes -Os -w -pipe -march=core2 -mmacosx-version-min=10.6 -c ./util.c
cc1: error: unrecognized command line option "-march=core2"
lipo: can't open input file: /var/folders/-R/-RTga5RvF-8UNERefp3d5++++TI/-Tmp-//ccWeSaJz.out (No such file or directory)
make: *** [version.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: unrecognized command line option "-march=core2"
lipo: can't open input file: /var/folders/-R/-RTga5RvF-8UNERefp3d5++++TI/-Tmp-//ccVI64UT.out (No such file or directory)
make: *** [util.o] Error 1
Error: Failure while executing: make install 
[~/homebrew] (duti)
$ 

The problematic -march=... flag seems to be added by homebrew, in Library/Homebrew/extend/ENV.rb.

Contributor

adamv commented Oct 1, 2012

I know where the flag is added; we need to patch duti to not try to build ppc/i386 on Snow Leopard, and build 32-bit or 64-bit according to the normal rules that Homebrew follows.

Contributor

adamv commented Jan 17, 2013

Line 2898 in ./configure is hard-coding arches based on OS X version; need to be able to pass in just 32-bit or 64-bit as appropriate.

@adamv adamv closed this in 73741aa Jan 17, 2013

norioxkimura added a commit to norioxkimura/homebrew that referenced this pull request Jan 26, 2013

duti 1.5.1
Closes #15092.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.