Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

X11BASE in FreeBSD 7

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


richard at highwayman

Mar 25, 2008, 9:15 AM

Post #1 of 6 (778 views)
Permalink
X11BASE in FreeBSD 7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Building a new FreeBSD 7 where I build from source rather than from the
port reminds me of a problem that I've seen before on FreeBSD 6...

in /OS/Makefile-FreeBSD

there is the line

X11=$(X11BASE)

Originally X11BASE was /usr/X11R* ("*" is "6" or "7") whereas with the
advent of the modular X system (a year or more back) all the good stuff
has been moved to /usr/local

Most people have probably put "X11BASE=/usr/local" into make.conf to fix
this up (and the exim port has it's own fix), but the global X11BASE
setting is not supposed to be necessary any more... and new installs of
FreeBSD 7 do _not_ have this set up by default.

Hence, it might be better to set the default file to contain

X11=/usr/local

in order to prevent a series of error messages when compiling eximon
from the source, rather than as a port

- --
richard @ highwayman . com "Nothing seems the same
Still you never see the change from day to day
And no-one notices the customs slip away"

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBR+klMJoAxkTY1oPiEQL3UwCfWUuN3docsZ4t48RpgXl8nZQbnt0AoMWB
LNQKQlqfpqKf18taQJ8vUL9e
=L9AV
-----END PGP SIGNATURE-----

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


dot at dotat

Mar 26, 2008, 8:43 AM

Post #2 of 6 (737 views)
Permalink
Re: X11BASE in FreeBSD 7 [In reply to]

On Tue, 25 Mar 2008, Richard Clayton wrote:
>
> Most people have probably put "X11BASE=/usr/local" into make.conf to fix
> this up (and the exim port has it's own fix), but the global X11BASE
> setting is not supposed to be necessary any more... and new installs of
> FreeBSD 7 do _not_ have this set up by default.
>
> Hence, it might be better to set the default file to contain
>
> X11=/usr/local

I'm not entirely happy with that for backwards compatibility reasons. I
can't find anything in the port that deals with the X11 path - could you
point me to it? As far as I can tell from the porters' handbook and the
ports/Mk/* files, X11BASE is still set as eximon expects.

Tony.
--
<fanf [at] exim> <dot [at] dotat> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


richard at highwayman

Mar 26, 2008, 4:54 PM

Post #3 of 6 (726 views)
Permalink
Re: X11BASE in FreeBSD 7 [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In message <alpine.LSU.1.00.0803261437550.3495 [at] hermes-1>,
Tony Finch <dot [at] dotat> writes

>On Tue, 25 Mar 2008, Richard Clayton wrote:
>>
>> Most people have probably put "X11BASE=/usr/local" into make.conf to fix
>> this up (and the exim port has it's own fix), but the global X11BASE
>> setting is not supposed to be necessary any more... and new installs of
>> FreeBSD 7 do _not_ have this set up by default.
>>
>> Hence, it might be better to set the default file to contain
>>
>> X11=/usr/local
>
>I'm not entirely happy with that for backwards compatibility reasons. I
>can't find anything in the port that deals with the X11 path - could you
>point me to it?

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

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

but of course this file is not picked up when building from just the
source alone, nor does a default install of FreeBSD 7 set it up on a
global basis outside the ports system (something the kernel developers
got bitten by, and they're now having to set it specially to have the
built-in ssh work properly!)

>As far as I can tell from the porters' handbook and the
>ports/Mk/* files, X11BASE is still set as eximon expects.

yes, but it's not set globally for any and all compiles

I suppose a more robust fix would be

.ifdef X11BASE
X11=${X11BASE}
.else
X11=/usr/local
.endif

- --
richard Richard Clayton

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. Benjamin Franklin

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBR+riNZoAxkTY1oPiEQKsEwCfdQYpm0UGQ9ntR9OQoHweq2YdXPoAn1Rh
Vltqxc+A6ebv/P660PhTza4U
=Ll8B
-----END PGP SIGNATURE-----

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


dot at dotat

Mar 27, 2008, 4:54 AM

Post #4 of 6 (728 views)
Permalink
Re: X11BASE in FreeBSD 7 [In reply to]

On Wed, 26 Mar 2008, Richard Clayton wrote:
>
> .ifdef X11BASE
> X11=${X11BASE}
> .else
> X11=/usr/local
> .endif

I think we'll have to come up with a way to deal with X11R7 for all
platforms, not just FreeBSD.

Tony.
--
<fanf [at] exim> <dot [at] dotat> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


richard at highwayman

Nov 15, 2009, 9:50 AM

Post #5 of 6 (591 views)
Permalink
Re: X11BASE in FreeBSD 7 [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This is an old problem... and it's not fixed in 4.70 :(

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

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

but of course 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.

I complained about this in March 2008 (when 4.69 came out) and below we
can see where the conversation ended:

In message <alpine.LSU.1.00.0803271153220.3495 [at] hermes-1>,
Tony Finch <dot [at] dotat> writes

>On Wed, 26 Mar 2008, Richard Clayton wrote:
>>
>> .ifdef X11BASE
>> X11=${X11BASE}
>> .else
>> X11=/usr/local
>> .endif
>
>I think we'll have to come up with a way to deal with X11R7 for all
>platforms, not just FreeBSD.

... but since nothing has been done about X11R7, this remains a problem
on 4.70 :( creating the "obvious" error message (which I include
for others to Google!):

/usr/bin/ld: cannot find -lXaw

I don't see why there needs to be a platform independent fix, when I'm
asking for a specific fix in the OS dependent file :( ... which I
shall now apply for myself !

BTW a better fix (hope I'm not assuming too much of make) might 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


- --
richard @ highwayman . com "Nothing seems the same
Still you never see the change from day to day
And no-one notices the customs slip away"

-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1

iQA/AwUBSwA/eJoAxkTY1oPiEQKRjwCg5Bg53CiTAIB/o6t/jlQgMib+c2YAoJnA
KS0nTJIkWoKZfsYFO52g4ZJt
=sZzW
-----END PGP SIGNATURE-----

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


peter at bowyer

Nov 16, 2009, 6:07 AM

Post #6 of 6 (578 views)
Permalink
Re: X11BASE in FreeBSD 7 [In reply to]

On 15/11/2009, Richard Clayton <richard [at] highwayman> wrote:


> This is an old problem... and it's not fixed in 4.70 :(

Probably because it wasn't raised in Bugzilla..... I see there was a
discussion on exim-users but nothing further was done.

I suggest you raise a bug now, it may well get looked at before the
next minor release (which won't be that far away, there are some 4.70
loose ends emerging)

Peter


--
Peter Bowyer
Email: peter [at] bowyer
Follow me on Twitter: twitter.com/peeebeee

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.