Opened 17 years ago

Closed 17 years ago

#12243 closed defect (duplicate)

Error in the post-destroot part in the Portfile of mysql5

Reported by: benoit.caccinolo@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version: 1.4.42
Keywords: Cc:
Port:

Description

The script creates Symlink of the mysql executable in the directory /opt/local/bin using this command:

ln -sf ../lib/${name}/bin/${f}5

but this command is false cause executables in /opt/local/lib/mysql5/bin are not suffixed with a '5'. So the good command is:

ln -sf ../lib/${name}/bin/${f} ${f}5

The diff:

--- Portfile    2007-07-06 16:05:10.000000000 +0200
+++ Portfile.good       2007-07-06 16:05:47.000000000 +0200
@@ -90,7 +90,7 @@
        # Symlink mysql binaries into bin directory, with a 5 appended to the name
         cd ${destroot}${prefix}/bin
        foreach f [glob -tails -directory ${destroot}${prefix}/lib/${name}/bin my*] {
-                ln -sf ../lib/${name}/bin/${f}5
+                ln -sf ../lib/${name}/bin/${f} ${f}5
        }
 }

Change History (1)

comment:1 Changed 17 years ago by sfiera@…

Resolution: duplicate
Status: newclosed

This is a duplicate of #12228, which was resolved yesterday by r26746.

Note: See TracTickets for help on using tickets.