Changes between Initial Version and Version 1 of Ticket #27993


Ignore:
Timestamp:
Jan 21, 2011, 8:56:13 AM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Thanks for the port!

Replying to boris.dusek@…:

  1. the line "depends_build port:pkgconfig". The library searches for libxml2 and liblouis using pkgconfig. I don't know which port then should depend on pkgconfig - whether the ones that are declaring their existence using pkgconfig (like libxml2 and liblouis), or the ones that use pkgconfig to find other libraries (liblouisxml).

Since it is liblouisxml that uses pkg-config at build time, it is liblouisxml that needs the build dependency on port:pkgconfig.

  1. I also encountered problem with filesystem:

Warning: violation by /opt/local/info
Warning: violation by /opt/local/man
Warning: liblouisxml violates the layout of the ports-filesystems!


I solved this (after consulting Raim in IRC) by adding the line "configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info". But I wonder why MacPorts does not pass these arguments itself since it supports autoconf-based systems out-of-the-box and should know these dark corners (so that portwriters don't have to take care of them in every port).

Most autoconfed software knows (because it obeys the FHS) that this is where those files should go and so those arguments would be superfluous. Most non-autoconfed software knows this as well. In other words, it is an exceptional case to need to specify this at all. Some software that doesn't already know this does not respond to the --mandir or --infodir configure arguments either; some might silently ignore it, some might complain. It is therefore better for the ports that require special handling for the mandir and infodir to do so themselves, in whatever way is appropriate for that software.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27993

    • Property Owner changed from macports-tickets@… to ryandesign@…
    • Property Status changed from new to assigned
  • Ticket #27993 – Description

    initial v1  
    772. I also encountered problem with filesystem:
    88
     9{{{
    910Warning: violation by /opt/local/info
    1011Warning: violation by /opt/local/man
    1112Warning: liblouisxml violates the layout of the ports-filesystems!
     13}}}
    1214
    1315I solved this (after consulting Raim in IRC) by adding the line "configure.args      --mandir=${prefix}/share/man --infodir=${prefix}/share/info".  But I wonder why MacPorts does not pass these arguments itself since it supports autoconf-based systems out-of-the-box and should know these dark corners (so that portwriters don't have to take care of them in every port).