Opened 11 years ago

Closed 9 years ago

#41476 closed defect (fixed)

vigra: "vigra-config --docdir" shows a path in the build directory

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: BSeppke (Benjamin Seppke)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc:
Port: vigra

Description

vigra-config --docdir shows a path in the build directory (which has most likely been deleted by the time the port has been installed):

$ port installed vigra
The following ports are currently installed:
  vigra @1.10.0_0+python27+universal (active)
$ vigra-config --docdir
/opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_vigra/vigra/work/vigra-1-10-0/doc
$ ls $(vigra-config --docdir)
ls: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_vigra/vigra/work/vigra-1-10-0/doc: No such file or directory

Attachments (1)

Portfile.diff (417 bytes) - added by BSeppke (Benjamin Seppke) 11 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 11 years ago by BSeppke (Benjamin Seppke)

Okay, this error must have been there for some (longer) time already.

The reason for this is that the vigra-config script is generated during CMake's configure step. Inside the config/vigra-config.in file @DOCDIR@ is the variable, which will be replaced by CMake with the wrong directory.

However, this misbehaviour can be patched quite easy, as you may see in the Portfile.diff, which I appended to this topic.

Changed 11 years ago by BSeppke (Benjamin Seppke)

Attachment: Portfile.diff added

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

Sorry, I forgot about this ticket somehow. Committed in r136469 with these changes:

  • changed the patch block to a post-patch block, to make it easier if you need to add patchfiles in the future
  • removed the comment since it is self-explanitory
  • increased the revision since this changes the files that get installed

You should report this problem to the developers of vigra so that they can fix it properly in their build system. This does not seem like a MacPorts-specific problem.

Note: See TracTickets for help on using tickets.