Opened 15 years ago

Closed 15 years ago

#22031 closed defect (duplicate)

vpnc patching fails under SnowLeopard 10.6.1

Reported by: vjay@… Owned by: msmk@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: vpnc

Description

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.

Change History (5)

comment:1 Changed 15 years ago by vjay@…

Oh sorry, i had to fill the port name, clicked ok to soon and there is no edit, hope it will be read anyway.

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to msmk@…
Port: vpnc added

comment:3 Changed 15 years ago by vjay@…

This is the listening of the build directory:

sh-3.2# ls -l total 920 -rw-r--r-- 1 root admin 19606 19 Nov 2008 COPYING -rw-r--r-- 1 root admin 8856 19 Nov 2008 ChangeLog -rw-r--r-- 1 root admin 5116 19 Nov 2008 Makefile -rw-r--r-- 1 root admin 8681 19 Nov 2008 README -rw-r--r-- 1 root admin 4785 19 Nov 2008 TODO -rw-r--r-- 1 root admin 6 19 Nov 2008 VERSION -rw-r--r-- 1 root admin 1048 19 Nov 2008 cisco-decrypt.1 -rw-r--r-- 1 root admin 1692 19 Nov 2008 cisco-decrypt.c -rw-r--r-- 1 root wheel 21602 12 Okt 23:59 config.c -rw-r--r-- 1 root admin 21578 19 Nov 2008 config.c.orig -rw-r--r-- 1 root admin 2983 19 Nov 2008 config.h -rw-r--r-- 1 root admin 2791 19 Nov 2008 decrypt-utils.c -rw-r--r-- 1 root admin 1125 19 Nov 2008 decrypt-utils.h -rw-r--r-- 1 root admin 2786 19 Nov 2008 dh.c -rw-r--r-- 1 root admin 1787 19 Nov 2008 dh.h -rwxr-xr-x 1 root admin 1258 19 Nov 2008 enum2debug.pl -rw-r--r-- 1 root admin 27859 19 Nov 2008 isakmp-pkt.c -rw-r--r-- 1 root admin 3844 19 Nov 2008 isakmp-pkt.h -rw-r--r-- 1 root admin 12933 19 Nov 2008 isakmp.h -rwxr-xr-x 1 root admin 3731 19 Nov 2008 makeman.pl -rw-r--r-- 1 root admin 8772 19 Nov 2008 math_group.c -rw-r--r-- 1 root admin 2820 19 Nov 2008 math_group.h -rwxr-xr-x 1 root admin 350 19 Nov 2008 mk-version -rw-r--r-- 1 root admin 3210 19 Nov 2008 nortel.txt -rwxr-xr-x 1 root admin 3902 19 Nov 2008 pcf2vpnc -rw-r--r-- 1 root admin 1196 19 Nov 2008 pcf2vpnc.1 -rw-r--r-- 1 root admin 3941 19 Nov 2008 supp.c -rw-r--r-- 1 root admin 1672 19 Nov 2008 supp.h -rw-r--r-- 1 root admin 17084 19 Nov 2008 sysdep.c -rw-r--r-- 1 root admin 6058 19 Nov 2008 sysdep.h -rw-r--r-- 1 root admin 3532 19 Nov 2008 tap-win32.h -rw-r--r-- 1 root admin 29273 19 Nov 2008 tunip.c -rw-r--r-- 1 root admin 3210 19 Nov 2008 tunip.h -rwxr-xr-x 1 root admin 333 19 Nov 2008 vpnc-disconnect -rw-r--r-- 1 root admin 61 19 Nov 2008 vpnc-script-win -rw-r--r-- 1 root admin 2981 19 Nov 2008 vpnc-script-win.js -rwxr-xr-x 1 root admin 14993 19 Nov 2008 vpnc-script.in -rw-r--r-- 1 root admin 5846 19 Nov 2008 vpnc.8.template -rw-r--r-- 1 root admin 111796 19 Nov 2008 vpnc.c -rw-r--r-- 1 root admin 141 19 Nov 2008 vpnc.conf -rw-r--r-- 1 root admin 1176 19 Nov 2008 vpnc.h sh-3.2#

comment:4 Changed 15 years ago by vjay@…

Trying again with codeblock tags:

sh-3.2# ls -l
total 920
-rw-r--r--  1 root  admin   19606 19 Nov  2008 COPYING
-rw-r--r--  1 root  admin    8856 19 Nov  2008 ChangeLog
-rw-r--r--  1 root  admin    5116 19 Nov  2008 Makefile
-rw-r--r--  1 root  admin    8681 19 Nov  2008 README
-rw-r--r--  1 root  admin    4785 19 Nov  2008 TODO
-rw-r--r--  1 root  admin       6 19 Nov  2008 VERSION
-rw-r--r--  1 root  admin    1048 19 Nov  2008 cisco-decrypt.1
-rw-r--r--  1 root  admin    1692 19 Nov  2008 cisco-decrypt.c
-rw-r--r--  1 root  wheel   21602 12 Okt 23:59 config.c
-rw-r--r--  1 root  admin   21578 19 Nov  2008 config.c.orig
-rw-r--r--  1 root  admin    2983 19 Nov  2008 config.h
-rw-r--r--  1 root  admin    2791 19 Nov  2008 decrypt-utils.c
-rw-r--r--  1 root  admin    1125 19 Nov  2008 decrypt-utils.h
-rw-r--r--  1 root  admin    2786 19 Nov  2008 dh.c
-rw-r--r--  1 root  admin    1787 19 Nov  2008 dh.h
-rwxr-xr-x  1 root  admin    1258 19 Nov  2008 enum2debug.pl
-rw-r--r--  1 root  admin   27859 19 Nov  2008 isakmp-pkt.c
-rw-r--r--  1 root  admin    3844 19 Nov  2008 isakmp-pkt.h
-rw-r--r--  1 root  admin   12933 19 Nov  2008 isakmp.h
-rwxr-xr-x  1 root  admin    3731 19 Nov  2008 makeman.pl
-rw-r--r--  1 root  admin    8772 19 Nov  2008 math_group.c
-rw-r--r--  1 root  admin    2820 19 Nov  2008 math_group.h
-rwxr-xr-x  1 root  admin     350 19 Nov  2008 mk-version
-rw-r--r--  1 root  admin    3210 19 Nov  2008 nortel.txt
-rwxr-xr-x  1 root  admin    3902 19 Nov  2008 pcf2vpnc
-rw-r--r--  1 root  admin    1196 19 Nov  2008 pcf2vpnc.1
-rw-r--r--  1 root  admin    3941 19 Nov  2008 supp.c
-rw-r--r--  1 root  admin    1672 19 Nov  2008 supp.h
-rw-r--r--  1 root  admin   17084 19 Nov  2008 sysdep.c
-rw-r--r--  1 root  admin    6058 19 Nov  2008 sysdep.h
-rw-r--r--  1 root  admin    3532 19 Nov  2008 tap-win32.h
-rw-r--r--  1 root  admin   29273 19 Nov  2008 tunip.c
-rw-r--r--  1 root  admin    3210 19 Nov  2008 tunip.h
-rwxr-xr-x  1 root  admin     333 19 Nov  2008 vpnc-disconnect
-rw-r--r--  1 root  admin      61 19 Nov  2008 vpnc-script-win
-rw-r--r--  1 root  admin    2981 19 Nov  2008 vpnc-script-win.js
-rwxr-xr-x  1 root  admin   14993 19 Nov  2008 vpnc-script.in
-rw-r--r--  1 root  admin    5846 19 Nov  2008 vpnc.8.template
-rw-r--r--  1 root  admin  111796 19 Nov  2008 vpnc.c
-rw-r--r--  1 root  admin     141 19 Nov  2008 vpnc.conf
-rw-r--r--  1 root  admin    1176 19 Nov  2008 vpnc.h
sh-3.2# 

comment:5 Changed 15 years ago by lperry (Perry Lee)

Resolution: duplicate
Status: newclosed

This is a duplicate of #21731 (the same error message is referenced in both: "Error: reinplace: couldn't read file "config.c": no such file or directory")

Note: See TracTickets for help on using tickets.