Opened 15 years ago

Closed 14 years ago

Last modified 4 years ago

#23108 closed defect (fixed)

Installing man +universal fails at compiling step

Reported by: elliot.winkler@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: man

Description (last modified by mf2k (Frank Schima))

If you try to do port install man +universal, the compiling step fails with:

 Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_man/work/man-1.6f" && ./configure --prefix=/opt/local --disable-dependency-tracking --mandir=/opt/local/share/man -compatibility_mode_for_colored_groff -confdir=/opt/local/etc +fhs " returned error 1
 Command output: Usage: configure -ask
    or: configure [-d|-default] [-confdir DIR] [+suid] [+sgid] \
                  [+fhs|+fsstnd|+traditional] [+lang all|LANGUAGES]
        where LANGUAGES is a substring of bg,cs,da,de,el,en,es,fi,fr,hr,it,ja,ko,nl,pl,pt,ro,ru,sl.

The default "configure -d" is equivalent to "configure +fhs +lang en". The option +suid will make man suid to a user "man". Create this first. The option +sgid will make man sgid to a group "man". Create this first. The options +fhs, +fsstnd, +traditional will make man use

/var/cache/man, /var/catman and /usr/man/cat?, respectively.

The -confdir option specifies where man.conf lives (default /usr/share/misc).

Adding

 configure.universal_args-delete --disable-dependency-tracking

to the portfile fixes this so that the port will install correctly.

Change History (3)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Without --disable-dependency-tracking it builds, but doesn't actually produce universal binaries. Universal disabled in r76091.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

In e742efeadc9428b49fa9370c427a08b5ff175715/macports-ports (master):

man: Use MP flags; fix implicit function; add deps

Use the CFLAGS and LDFLAGS supplied by MacPorts, including optimization
flags and -arch flags. Allows a universal variant to be used.

See: #23108

Fix implicit function declaration which prevents build with Xcode 12 and
later.

Closes: #61446

Add deps on lynx and xz because it opportunistically uses them.

Change the deps from _run to _lib because the configure script needs to
see them at build time.

Note: See TracTickets for help on using tickets.