Opened 13 years ago

Closed 12 years ago

#31267 closed defect (fixed)

AntTweakBar is out of date and fails to build on Lion

Reported by: jdolan (Jay Dolan) Owned by: karcaw@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion Cc:
Port: anttweakbar

Description

Hi there,

I noticed that the port for AntTweakBar is broken on Lion. Actually, the problem is that the maintainer of ATB released a new version without bumping his version number. If you go download 1.14 from the project website, you'll notice that it's slightly different than the 1.14 the Macport Portfile is based on. If you could just refresh the mirrored file and update the checksums in the Port, it should compile on Lion just fine.

In case you're interested, the make-or-break difference in the two 1.14 snapshots is in src/LoadOGL.h, lines 333:334.

Thanks!

Attachments (1)

AntTweakBar_114_2.patch (821 bytes) - added by karcaw@… 13 years ago.
Update to Portfile for lion changes.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jay@… removed
Keywords: anttweakbar opengl removed
Owner: changed from macports-tickets@… to karcaw@…

Changed 13 years ago by karcaw@…

Attachment: AntTweakBar_114_2.patch added

Update to Portfile for lion changes.

comment:2 Changed 13 years ago by karcaw@…

I've attached a patch that should fix the issue. As I dont have Lion yet, i cant test it there. It compiles now on my mac.

comment:3 Changed 13 years ago by jdolan (Jay Dolan)

Hm, okay. So I patched the Portfile:

cd $(port dir anttweakbar)
patch -p0 < ~/Downloads/AntTweakBar_114_2.patch

That applied cleanly.

Then I downloaded the .zip file from the project website and converted it to .tbz2, as that is what the Portfile is apparently looking for:

mkdir /tmp/ant
cd /tmp/ant
unzip ~/Downloads/AntTweakBar_114.zip
sudo tar jcf $(port dir anttweakbar)/files/anttweakbar-1.14_2.darwin_11.x86_64.tbz2

And then tried building the port again:

sudo port install anttweakbar

But it fails on the checksum verification:

:debug:checksum checksum phase started at Thu Sep 15 13:10:16 EDT 2011
:notice:checksum --->  Verifying checksum(s) for anttweakbar
:debug:checksum Executing org.macports.checksum (anttweakbar)
:info:checksum --->  Checksumming AntTweakBar_114
:error:checksum Checksum (sha1) mismatch for AntTweakBar_114
:info:checksum Portfile checksum: AntTweakBar_114 sha1 b6405082efb6d6f26b3856a1b12c4e520055390e
:info:checksum Distfile checksum: AntTweakBar_114 sha1 a3e2d2c756413d1c562946a9e7b8190734284f2b
:error:checksum Checksum (rmd160) mismatch for AntTweakBar_114
:info:checksum Portfile checksum: AntTweakBar_114 rmd160 6297484674785807a8e750ccc8934dcba35f8353
:info:checksum Distfile checksum: AntTweakBar_114 rmd160 89fab9e632b54c858ed1a5f85a2abb802efe403d
:info:checksum The correct checksum line may be:
:info:checksum checksums           sha1    a3e2d2c756413d1c562946a9e7b8190734284f2b \
                    rmd160  89fab9e632b54c858ed1a5f85a2abb802efe403d
:error:checksum Target org.macports.checksum returned: Unable to verify file checksums
:debug:checksum Backtrace: Unable to verify file checksums

What am I doing wrong?

comment:4 Changed 13 years ago by karcaw@…

My version of the portfile expects the zip file, does yours show the 'use_zip yes' line in it? can you remove old version of the Downloaded zip file, and try installing again, and post the output?

comment:5 Changed 13 years ago by jdolan (Jay Dolan)

That worked, and the port compiles and installs cleanly on Lion now :)

comment:6 Changed 13 years ago by jdolan (Jay Dolan)

Hi Karcaw,

Can you commit this patch? The official port is still broken on 10.7.

Jay

comment:7 Changed 13 years ago by karcaw@…

I dont have direct commit access, i'll email someone to merge it.

comment:8 in reply to:  5 Changed 13 years ago by nk@…

Replying to jay@…:

That worked, and the port compiles and installs cleanly on Lion now :)

Could you please clarify the last step – "remove old version of the Downloaded zip file"? That would be really useful.

comment:9 Changed 13 years ago by karcaw@…

IIRC the upstream developer made a small change to the AntTweakBar_114.zip file on his website, but did not bump the version number. therefore the one downloaded previously needed to be removed to force a new download.

comment:10 in reply to:  9 Changed 13 years ago by nk@…

Replying to karcaw@…:

IIRC the upstream developer made a small change to the AntTweakBar_114.zip file on his website, but did not bump the version number. therefore the one downloaded previously needed to be removed to force a new download.

Strange, I still have a checksum problem… There was also a trouble with sudo tar jcf $(port dir anttweakbar)/files/anttweakbar-1.14_2.darwin_11.x86_64.tbz2 command (error was "tar: no files or directories specified"), and I solved it by adding the asterisk to the end. Probably, I was doing it wrong?

comment:11 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.