Opened 13 years ago

Closed 13 years ago

#29997 closed defect (fixed)

g95 @0.92 patch failure

Reported by: patrizio.mariani@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: g95

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

I have:
Mac OSx 10.6.8 and Xcode version 3.2.6

I do :

sudo port install g95
--->  Computing dependencies for g95
--->  Applying patches to g95
Error: Target org.macports.patch returned: shell command failed (see log for details)
Log for g95 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/main.log
Error: Status 1 encountered during processing.

in the main.log file I have:

:debug:main Executing org.macports.main (g95)
:debug:main Skipping completed org.macports.fetch (g95)
:debug:main Skipping completed org.macports.checksum (g95)
:debug:main Skipping completed org.macports.extract (g95)
:debug:patch patch phase started at Fri Jul  1 13:22:06 CEST 2011
:debug:patch Executing org.macports.patch (g95)
:msg:patch --->  Applying patches to g95
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/g95/files/patch-Makefile.in.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work/g95-0.92" && /usr/bin/patch -p0'
:info:patch patching file Makefile.in
:info:patch Reversed (or previously applied) patch detected!  Assume -R? [n]
:info:patch Apply anyway? [n]
:info:patch Skipping patch.
:info:patch 3 out of 3 hunks ignored -- saving rejects to file Makefile.in.rej
:info:patch shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/work/g95-0.92" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/g95/files/patch-Makefile.in.diff'" returned error 1
:error:patch Target org.macports.patch returned: shell command failed (see log for details)
:debug:patch Backtrace: shell command failed (see log for details)
    while executing
"command_exec patch "" "< '$patch'""
    (procedure "portpatch::patch_main" line 35)
    invoked from within
"$procedure $targetname"
:info:patch Warning: the following items did not execute (for g95): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:patch Log for g95 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_g95/main.log

Change History (7)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to takeshi@…
Port: g95 added; G95 removed

Clean and try again.

sudo port clean g95

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Summary: g95 @0.92 (lang) - shell command failedg95 @0.92 patch failure

comment:3 Changed 13 years ago by tenomoto (Takeshi Enomoto)

This appears to be caused by an update of patch to 2.5.8. It does not allow patches starting with ".." for security reasons. I do not have a clean solution to fix this problem. gimp-gap seems to have the same problem (#29983).

comment:4 Changed 13 years ago by tenomoto (Takeshi Enomoto)

I fixed the problem by creating a simlink to the gcc source directory. Committed in r80020. Update the tree and try again.

comment:5 Changed 13 years ago by patrizio.mariani@…

Thanks. The problem with the patch appears to be solved.

However, the installation does not work yet.

It enters the "configuring g95" step but does not terminate it (no error message it just stays there forever: now I have been waiting 30min).

Here is what I do:

sudo port install g95
--->  Computing dependencies for g95
--->  Fetching g95
--->  Attempting to fetch g95_source.tgz from http://lil.fr.distfiles.macports.org/gcc42
--->  Verifying checksum(s) for g95
--->  Extracting g95
--->  Applying patches to g95
--->  Configuring g95

comment:6 in reply to:  5 Changed 13 years ago by patrizio.mariani@…

Please forget my previous message.
I have now successfully installed g95.
The configuration was indeed quite long and the all process took around 45min on my Macbook air 2,13Ghz.
But now g95 is installed and running.

Thanks

comment:7 Changed 13 years ago by tenomoto (Takeshi Enomoto)

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