New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #15293 (closed defect: worksforme)

Opened 5 years ago

Last modified 4 years ago

portfile broken for port install gsed +with_default_names

Reported by: wagle@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: gsed portfile Cc:
Port:

Description

the portfile for gsed has the order of the arguments to "ln" reversed

this results in the error:

$ sudo port install gsed +with_default_names ---> Staging gsed into destroot Error: Target org.macports.destroot returned: ln: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_gsed/work/destroot/opt/local/bin/gsed: File exists Error: Status 1 encountered during processing.

the fix is to reverse the arguments to the ln command near the bottom of the gsed portfile.

also for robustness, the path to the file shouldn't be reconstructed, it should be split into directory/tail file names, the g removed, then put back together. if you buy this, see the attached portfile, which has been tested.

Attachments

Portfile (2.0 KB) - added by wagle@… 5 years ago.
tested textproc/gsed portfile

Change History

Changed 5 years ago by wagle@…

tested textproc/gsed portfile

comment:1 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to nox@…
  • Milestone set to Port Bugs

Assigning to maintainer.

comment:2 Changed 5 years ago by nox@…

  • Status changed from new to closed
  • Resolution set to worksforme

Works for me. Your portfile is outdated:

# $Id: Portfile 33572 2008-01-30 14:21:35Z nox@macports.org $

Current revision is r36619.

comment:3 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.