Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

fmdiff: use make file and correct broken symlink #14143

Closed
wants to merge 1 commit into from
Closed

fmdiff: use make file and correct broken symlink #14143

wants to merge 1 commit into from

Conversation

sparks
Copy link

@sparks sparks commented Aug 12, 2012

Run make in order to properly detect which version of XCode is installed

Run make install instead of bin.install

Correctly generate the filemerge symlink in /usr/local/bin. Without a
direct symlink fmdiff simply crash. Users may not have had this issue if
fmdiff was previously installed since they already had the symlink

I'm directly creating a symlink in /usr/local/bin. If someone has a better suggestion of how to do this I will happily amend my commit. The issue is that the normal linking process creates two layers of symlinks which causes the fmdiff scripts to fail when using readlink on the second layer symlink.

@mistydemeo
Copy link
Member

We can't directly symlink system files into the user's prefix. If this is a limitation of the software's ability to locate fmdiff through multiple levels of symlinks, this should be addressed in the software. Have you reported this to the author?

@sparks
Copy link
Author

sparks commented Aug 12, 2012

I've notified the upsteam (http://www.defraine.net/~brunod/fmdiff/) with a proposed patch.

In the meantime I've update the formula with a patch and removed the symlink. It seems long, but it's just the same 8 lines applied to four files.

@@ -3,11 +3,99 @@
class Fmdiff < Formula
homepage 'http://www.defraine.net/~brunod/fmdiff/'
url 'http://www.defraine.net/~brunod/fmdiff/fmscripts-20120522.tar.gz'
sha1 'cdb98c68b617c8b42e714a906b7f3824c4c5afe9'
md5 'c760830c1f67626a9b609cea3338c576'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change this to md5 - keep it as sha1.

@sparks
Copy link
Author

sparks commented Aug 12, 2012

Patches apply correctly against head, however head wasn't using svn so it was failing (the download was garbage).

Put sha1 back.

@mistydemeo
Copy link
Member

Could you squash these three commits into one? Thanks!

@sparks
Copy link
Author

sparks commented Aug 13, 2012

Done

Run make in order to properly detect which version of XCode is installed

Run make install instead of bin.install

Update to latest version which resolves the multiple symlink
layers issue.

Fixed head to use svn. Previous head didn't work (just downloaded a
single html file).
@sparks
Copy link
Author

sparks commented Aug 13, 2012

Upstream patch was released, changed pull request to reflect that.

Thanks to Bruno De Fraine for getting back to me super fast.

@mistydemeo
Copy link
Member

Thanks! This is why I get nervous about patches for HEAD. ;)

Just a note - I fixed them up for you, but there were two things that brew audit pointed out in this formula:

 * "#{prefix}/bin" should be "#{bin}"
 * Use spaces instead of tabs for indentation

Pulled, thanks again!

@sparks
Copy link
Author

sparks commented Aug 13, 2012

Ah, sorry that was my bad. Thanks for fixing that up.

fgeller pushed a commit to fgeller/homebrew that referenced this pull request Aug 22, 2012
Run make in order to properly detect which version of XCode is
installed

Run make install instead of bin.install

Update to latest version which resolves the multiple symlink
layers issue.

Fixed head to use svn. Previous head didn't work (just downloaded
a single html file).

Closes Homebrew#14143.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Sep 12, 2012
Run make in order to properly detect which version of XCode is
installed

Run make install instead of bin.install

Update to latest version which resolves the multiple symlink
layers issue.

Fixed head to use svn. Previous head didn't work (just downloaded
a single html file).

Closes Homebrew#14143.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
Run make in order to properly detect which version of XCode is
installed

Run make install instead of bin.install

Update to latest version which resolves the multiple symlink
layers issue.

Fixed head to use svn. Previous head didn't work (just downloaded
a single html file).

Closes Homebrew#14143.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
@Homebrew Homebrew 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants