changes in xrdb ? - Xwindows

This is a discussion on changes in xrdb ? - Xwindows ; starting today, some cpp macros i had in my ~/.Xdefaults stopped to work the macros were meant to concatenate some elements to build XFLD names, with the aim of: - uncluttering the source file, - avoiding error prone direct specification ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: changes in xrdb ?

  1. changes in xrdb ?

    starting today, some cpp macros i had in my ~/.Xdefaults stopped to
    work

    the macros were meant to concatenate some elements to build XFLD
    names, with the aim of:

    - uncluttering the source file,
    - avoiding error prone direct specification of XFLD names
    - letting someone changing his mind about fonts without chasing tens
    of occurences in the source file

    the macros were as simple as

    #define FONT bitstream vera sans mono
    #define FontMedRom(DPT) -*-FONT-r-*-*-*-DPT-100-100-*-*-iso8859-1

    now what i get is, eg,

    % xrdb .Xdefaults ; xrdb -q | grep XTerm.font:
    XTerm*font: -*-bitstream vera sans mono-medium-r-*-*-*-110 -100-100-*-*-iso8859-1
    %

    (note the space after the size specification)

    it looks like cpp is no more invoked with the -traditional switch

    is it possible?

    i'm on debian unstable, with the modular xorg server installed
    today...

    tia,
    gb
    --
    non ho capito un apascio -- pp, tra se e se

  2. Re: changes in xrdb ?


    Giacomo Boffi wrote:
    > starting today, some cpp macros i had in my ~/.Xdefaults stopped to
    > work

    ---8<---
    > it looks like cpp is no more invoked with the -traditional switch
    >
    > is it possible?


    xrdb used to have a "-cpp filename" option that allowed to specify the
    pathname of the C preprocessor program. Isn't it available anymore?

    --- Casantos


  3. Re: changes in xrdb ?

    nojunk@gate.cpmet.ufpel.tche.br writes:

    > Giacomo Boffi wrote:
    >> starting today, some cpp macros i had in my ~/.Xdefaults stopped to
    >> work

    > ---8<---
    >> it looks like cpp is no more invoked with the -traditional switch
    >>
    >> is it possible?

    >
    > xrdb used to have a "-cpp filename" option that allowed to specify the
    > pathname of the C preprocessor program. Isn't it available anymore?


    allright, xrdb -cpp my_script_that_injects_-traditional is a solution,
    but i cannot understand why it was changed (_if_ it was changed, that
    is), because cpp as in C99 attaches semantics to tokens, semantics
    that's not pertinent to the context of xrdb

    --
    MMAX>>Il vero problema che non hai i culo peloso, non armo.
    IsaZ> Senti, non che potresti mettere delle note a pi di pagina?

  4. Re: changes in xrdb ?


    giacomo boffi wrote:
    > nojunk@gate.cpmet.ufpel.tche.br writes:
    >
    > >> it looks like cpp is no more invoked with the -traditional switch
    > >>
    > >> is it possible?

    > >
    > > xrdb used to have a "-cpp filename" option that allowed to specify the
    > > pathname of the C preprocessor program. Isn't it available anymore?

    >
    > allright, xrdb -cpp my_script_that_injects_-traditional is a solution,
    > but i cannot understand why it was changed (_if_ it was changed [...]


    In my system (FreeBSD 6.0, + Xorg 6.9.0) a command

    $ strings /usr/X11R6/bin/xrdb | fgrep cpp

    tells me that xrdb calls "/usr/bin/cpp -traditional"

    --- Casantos


  5. Re: changes in xrdb ?

    nojunk@gate.cpmet.ufpel.tche.br writes:

    > giacomo boffi wrote:
    >> nojunk@gate.cpmet.ufpel.tche.br writes:
    >>
    >> >> it looks like cpp is no more invoked with the -traditional switch
    >> >>
    >> >> is it possible?
    >> >
    >> > xrdb used to have a "-cpp filename" option that allowed to specify the
    >> > pathname of the C preprocessor program. Isn't it available anymore?

    >>
    >> allright, xrdb -cpp my_script_that_injects_-traditional is a solution,
    >> but i cannot understand why it was changed (_if_ it was changed [...]

    >
    > In my system (FreeBSD 6.0, + Xorg 6.9.0) a command
    >
    > $ strings /usr/X11R6/bin/xrdb | fgrep cpp
    >
    > tells me that xrdb calls "/usr/bin/cpp -traditional"


    let's see...

    ,----
    | $ X -version
    |
    | X Window System Version 7.0.0
    | Release Date: 21 December 2005
    | X Protocol Version 11, Revision 0, Release 7.0
    | Build Operating System:Linux 2.6.12-1-686 i686
    | Current Operating System: Linux boffi95 2.6.12-1-k7 #1 Tue Sep 27 13:22:07 JST 2005 i686
    | Build Date: 16 March 2006
    | Before reporting problems, check http://wiki.x.org
    | to make sure that you have the latest version.
    | Module Loader present
    | $ strings `which xrdb` | grep cpp
    | /usr/bin/cpp
    | -cpp
    | -nocpp
    | -cpp filename preprocessor to use [%s]
    | -nocpp do not use a preprocessor
    | $
    `----

    in my system, it looks like someone uphill (debian? X Org?) removed
    the -traditional switch, and that, IMVHO, is a Bad Thing

    i submitted a bug report to debian, and as a stopgap measure i've
    added "-cpp 'cpp -traditional'" here and there in my scripts...

    thank you for your replies, ciao
    gb
    --
    giampippetto, coso, come si chiama? ah si` "MMAX" ha scritto:
    > Tra il trascendente e l'interpretazione prevalente del dato come
    > assioma ne passa...


+ Reply to Thread