[exim-dev] [Bug 914] New: Makefile-FreeBSD falsely assumes X…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Richard Clayton
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] [Bug 914] New: Makefile-FreeBSD falsely assumes X11BASE is set
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=914
           Summary: Makefile-FreeBSD falsely assumes X11BASE is set
           Product: Exim
           Version: 4.70
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Release process
        AssignedTo: nigel@???
        ReportedBy: richard@???
                CC: exim-dev@???



For FreeBSD ports, X11BASE is set in /usr/ports/Mk/bsd.port.mk

        LOCALBASE?=             /usr/local
        X11BASE?=               ${LOCALBASE}


but this file is not picked up when building from just the source alone [it's
my choice to build from source, not from the port]

... and hence X11 is not set correctly by X11=$(X11BASE) in the
OS/Makefile-FreeBSD script. A typical failure message of the build process
would be:

        /usr/bin/ld: cannot find -lXaw


This has been a problem for a couple of years; although in the dim and distant
past there was an X11BASE environment variable, and clearly the code dates from
then. Note that this isn't a problem for the FreeBSD port.

A fix (hope I'm not assuming too much of make) would be

1c1
< # $Cambridge: exim/exim-src/OS/Makefile-FreeBSD,v 1.5 2008/07/25 20:39:55
fanf2 Exp $
---
> # $Cambridge: exim/exim-src/OS/Makefile-FreeBSD,v 1.5A 2009/11/15 17:44:00 rnc1 Exp $

23c23,29
< X11=$(X11BASE)
---
> .ifdef X11BASE
> X11=${X11BASE}
> .elifdef LOCALBASE
> X11=$(LOCALBASE)
> .else
> X11=/usr/local
> .endif

28c34
< XLFLAGS+=-Wl,-rpath,${X11BASE}/lib
---
> XLFLAGS+=-Wl,-rpath,${X11}/lib



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email