Opened 21 years ago

Last modified 8 years ago

#725 closed defect

UPDATE apache-ant-1.5.3-1 — at Initial Version

Reported by: pguyot (Paul Guyot) Owned by: sean@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: apache-ant

Description

Apparently a bug made its way in latest attachment here:

http://www.opendarwin.org/bugzilla/show_bug.cgi?id=357

  • system "ln -fs ${path}${name}/bin/ant ${destroot}${prefix}/bin/ant"

+ system "cd ${destroot} && + ln -fs ${prefix}/java/${name}/bin/ant ${prefix}/bin/ant"

${prefix} is /opt/local/ (well, usually), so this will end up making a link in /opt/local/bin/ in spite of the cd ${destroot}. So the symlink won't be registered as part of the port and won't be included in a package.

Instead, I suggest doing the following:

--- Portfile.old Wed Jul 23 07:03:36 2003 +++ Portfile Wed Jul 23 07:38:51 2003 @@ -35,8 +35,7 @@

system "cd ${worksrcpath}; cp -R ${name} ${path}" system "rm ${path}${name}/bin/*.bat"

system "chmod -R ugo+r ${path}${name}"

  • system "cd ${destroot} &&
  • ln -fs ${prefix}/java/${name}/bin/ant ${prefix}/bin/ant"

+ system "ln -fs {prefix}/java/${name}/bin/ant ${destroot}${prefix}/bin/ant"

}

variant darwin {

but maybe the original line is more coherent with the usual policy regarding symlinks, i.e. to make them relative and not absolute.

Change History (0)

Note: See TracTickets for help on using tickets.