Opened 9 years ago

Closed 9 years ago

#45942 closed defect (invalid)

libffi-3.2.1_0+universal patchfile and missing checksums

Reported by: davidpfriedlander Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc:
Port: libffi

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello, I am having trouble building a universal variant of libffi (v3.2.1) on a Mavericks (10.9) machine (port version 2.3.2). The problems have to do with downloading the patch file and (even if I download the patchfile 'out of band') getting the checksums to work.

I am building "+universal" because packages that depend on libffi need it and were built with that variant, too.

port install libffi +universal
--->  Fetching archive for libffi
--->  Attempting to fetch libffi-3.2.1_0+universal.darwin_13.i386-x86_64.tbz2 from http://packages.macports.org/libffi
--->  Attempting to fetch libffi-3.2.1_0+universal.darwin_13.i386-x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/libffi
--->  Attempting to fetch libffi-3.2.1_0+universal.darwin_13.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libffi
--->  Fetching distfiles for libffi
--->  Attempting to fetch PR-44170.patch from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://sea.us.distfiles.macports.org/macports/distfiles/libffi
--->  Attempting to fetch PR-44170.patch from ftp://sourceware.org/pub/libffi/
--->  Attempting to fetch PR-44170.patch from http://distfiles.macports.org/libffi
--->  Attempting to fetch PR-44170.patch from http://nue.de.distfiles.macports.org/macports/distfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://www.mirrorservice.org/sites/sourceware.org/pub/libffi/
--->  Attempting to fetch PR-44170.patch from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/libffi
--->  Attempting to fetch PR-44170.patch from http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/libffi/
--->  Attempting to fetch PR-44170.patch from http://lil.fr.distfiles.macports.org/libffi
--->  Attempting to fetch PR-44170.patch from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://cjj.kr.distfiles.macports.org/libffi
--->  Attempting to fetch PR-44170.patch from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://mirror.aarnet.edu.au/pub/sourceware/libffi/
--->  Attempting to fetch PR-44170.patch from http://jog.id.distfiles.macports.org/macports/mpdistfiles/libffi
--->  Attempting to fetch PR-44170.patch from http://ftp.cs.pu.edu.tw/Linux/sourceware/libffi/
--->  Attempting to fetch PR-44170.patch from http://svn.macports.org/repository/macports/distfiles/libffi
Error: org.macports.fetch for port libffi returned: fetch failed
Please see the log file for port libffi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_libffi/libffi/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libffi failed

OK, so it cannot find the patch. But if I download the patchfile from

attachment:ticket:45904:PR-44170.patch

and the main tar file and place them in

/opt/local/var/macports/distfiles/libffi

then it fails with

port checksum libffi +universal
--->  Fetching distfiles for libffi
--->  Verifying checksums for libffi
Error: No checksum set for PR-44170.patch
Error: No checksum set for libffi-3.2.1.tar.gz
Error: org.macports.checksum for port libffi returned: Unable to verify file checksums
Please see the log file for port libffi for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_libffi/libffi/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port libffi failed

The Portfile has no checksum for the patch specified at all. There is one for the libffi tar file, and the checksum of the actual file matches properly.

Advice, please?

Thanks very much in advance.

Change History (5)

comment:1 Changed 9 years ago by davidpfriedlander

Cc: david.p.friedlander@… added

Cc Me!

comment:2 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: david.p.friedlander@… removed

There are no checksums for the patch file because it already exists in the MacPorts repository. It’s not already there for you?

% ls -l $(port dir libffi)/files
total 8
-rw-r--r--  1 larryv  staff   523B Nov 17 22:00 PR-44170.patch
%

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Agreed; unable to reproduce issue. I've not had any problem installing libffi +universal.

comment:4 Changed 9 years ago by davidpfriedlander

OK, it now works, and thank you for the feedback and confirmations.

(By the way, for csh-based shells, that above command needs to be

     ls -l `port dir libffi`/files

) My own machine had the PR-44170.patch file in the "files" directory. But the same location for this other user (also running Mavericks) had:

-rw-r--r--  1 root  admin  440 Oct 18  2012 patch-configure.diff

And running "port -d sync" (cannot run selfupdate due to firewall rsync block) did not download the patch file. However, once I manually placed the file there (from the out-of-band download I referred to in my initial post), then the build proceeded normally and without incident. What the command you gave me did was tell me the right place to put the patch file (I had incorrectly tried placing it in /opt/local/var/macports/distfiles/libffi .

So the mystery of the missing patch file remains, but it is moot now with everything working. Thanks once again.

Last edited 9 years ago by davidpfriedlander (previous) (diff)

comment:5 in reply to:  4 Changed 9 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed

Replying to david.p.friedlander@…:

(By the way, for csh-based shells, that above command needs to be

     ls -l `port dir libffi`/files

csh? Eww :P

My own machine had the PR-44170.patch file in the "files" directory. But the same location for this other user (also running Mavericks) had:

-rw-r--r--  1 root  admin  440 Oct 18  2012 patch-configure.diff

And running "port -d sync" (cannot run selfupdate due to firewall rsync block) did not download the patch file.

Is that user’s MacPorts set up to use a non-rsync transport? Do they need to run port sync with superuser privileges (judging from the permissions)? Note that patch-configure.diff was deleted with the last libffi update, so a successful sync should remove it.

In any case, this ticket seems resolved. Feel free to ping macports-users if you need some help sorting out syncing.

Note: See TracTickets for help on using tickets.