#22031: vpnc patching fails under SnowLeopard 10.6.1 --------------------------+------------------------------------------------- Reporter: vjay@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: --------------------------+------------------------------------------------- This is the Build Error: ---> Computing dependencies for vpnc ---> Fetching vpnc ---> Verifying checksum(s) for vpnc ---> Extracting vpnc ---> Applying patches to vpnc Error: reinplace: couldn't read file "config.c": no such file or directory Error: Target org.macports.patch returned: reinplace sed(1) failed Error: Status 1 encountered during processing. next try: ---> Applying patches to vpnc Error: Target org.macports.patch returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_vpnc/work/vpnc-0.5.3" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/net/vpnc/files /patch-config.c'" returned error 1 Command output: patching file config.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file config.c.rej Error: Status 1 encountered during processing. The config.c.rej file contains the following: cat /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_vpnc/work/vpnc-0.5.3/config.c.rej *************** *** 173,179 **** static const char *config_def_script(void) { - return "/etc/vpnc/vpnc-script"; } static const char *config_def_pid_file(void) --- 173,179 ---- static const char *config_def_script(void) { + return "__ETCDIR__/vpnc/vpnc-script"; } static const char *config_def_pid_file(void) *************** *** 444,450 **** { char *realname; - asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "/etc/vpnc/", name, add_dot_conf ? ".conf" : ""); return realname; } --- 444,450 ---- { char *realname; + asprintf(&realname, "%s%s%s", index(name, '/') ? "" : "__ETCDIR__/vpnc/", name, add_dot_conf ? ".conf" : ""); return realname; } *************** *** 663,670 **** } if (!got_conffile) { - read_config_file("/etc/vpnc/default.conf", config, 1); - read_config_file("/etc/vpnc.conf", config, 1); } if (!print_config) { --- 663,670 ---- } if (!got_conffile) { + read_config_file("__ETCDIR__/vpnc/default.conf", config, 1); + read_config_file("__ETCDIR__/vpnc.conf", config, 1); } if (!print_config) { I tried already completely deleting Macports an do a fresh install, but it comes out at the same point again and again. I have newest OS and XCode installed. -- Ticket URL: <http://trac.macports.org/ticket/22031> MacPorts <http://www.macports.org/> Ports system for Mac OS