public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for X applications
@ 2008-04-03  9:46 Dr. Volker Zell
  2008-04-06 11:22 ` Corinna Vinschen
  2008-04-09  2:05 ` Brian Dessent
  0 siblings, 2 replies; 5+ messages in thread
From: Dr. Volker Zell @ 2008-04-03  9:46 UTC (permalink / raw)
  To: cygwin-apps

Hi

I would like to adopt and maintain the 'libXft/libXft2/libXft-devel' 
packages from Harold Hunt and replace them with the latest version which 
is not dependent on the modular X11R7. This is 2.1.7. In this release,
there will be a change from the /usr/X11R6 hierarchy to /usr.


This package likes to install the header files to

  /usr/include/X11/Xft/*.h

xorg-x11-devel installs a symlink

  /usr/include/X11 -> ../X11R6/include/X11

Given that the X11 hierarchy is deprecated, I like to remove this
symlink in a preremove script.

-------------------- preremove ------------------
#!/bin/bash

if [ -L /usr/include/X11 ] ; then
  rm -f /usr/include/X11
fi
-------------------- preremove ------------------


Also to make libtool happy (as mentioned by Yaakov) in a postinstall 
script all .la files will be changed to accomodate the new library and header 
locations .

------------------- postinstall -----------------
#!/bin/bash

# Make libtool happy
for d in /usr/lib /usr/X11R6/lib
do
  echo ">>> Processing directory $d"
  for f in `find ${d} -name '*.la'`
  do
    if grep "/usr/X11R6/lib/libXft.la" ${f} > /dev/nul
    then
      echo "Processing file $f"
      chmod 644 ${f}
      sed -i -e 's#/usr/X11R6/lib/libXft\.la#/usr/lib/libXft\.la#g' ${f}
    fi
  done
done
------------------- postinstall -----------------



Here are the setup.hint files:
-------------------------------------------------------------------------------------------
./libXft-devel/setup.hint

sdesc: "X.org libXft component - (development)"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Devel Libs X11
requires: cygwin libXft2 libfontconfig-devel xorg-x11-devel coreutils sed
external-source: libXft

-------------------------------------------------------------------------------------------
./libXft2/setup.hint

sdesc: "X.org libXft component - (runtime)"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Libs X11
requires: cygwin libfontconfig1 xorg-x11-bin-dlls
external-source: libXft


-------------------------------------------------------------------------------------------
./setup.hint

sdesc: "X.org libXft component"
ldesc: "The current version of Xft (2.0) provides a client-side font API for X applications.
It uses Fontconfig to select fonts and the X protocol for rendering them. When
available, Xft uses the Render extension to accelerate text drawing. When Render
is not available, Xft uses the core protocol to draw client-side glyphs. This
provides completely compatible support of client-side fonts for all X servers."
category: Libs X11
requires: cygwin libXft2



For downloading 

------------------------------------ cut here ------------------------------------
#!/bin/bash

mkdir -p libXft/libXft2 libXft/libXft-devel

cd libXft
wget http://volkerzell.de/cygwin/ITP/libXft/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1-src.tar.bz2
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1.tar.bz2

cd libXft2
wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/libXft2-2.1.7-1.tar.bz2

cd ../libXft-devel
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/setup.hint
wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/libXft-devel-2.1.7-1.tar.bz2
------------------------------------ cut here ------------------------------------

Ciao
  Volker

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font  API for X applications
  2008-04-03  9:46 [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for X applications Dr. Volker Zell
@ 2008-04-06 11:22 ` Corinna Vinschen
  2008-04-09  2:05 ` Brian Dessent
  1 sibling, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2008-04-06 11:22 UTC (permalink / raw)
  To: cygwin-apps

On Apr  3 11:45, Dr. Volker Zell wrote:
> ------------------------------------ cut here ------------------------------------
> #!/bin/bash
> 
> mkdir -p libXft/libXft2 libXft/libXft-devel
> 
> cd libXft
> wget http://volkerzell.de/cygwin/ITP/libXft/setup.hint
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1-src.tar.bz2
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft-2.1.7-1.tar.bz2
> 
> cd libXft2
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/setup.hint
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft2/libXft2-2.1.7-1.tar.bz2
> 
> cd ../libXft-devel
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/setup.hint
> wget http://volkerzell.de/cygwin/ITP/libXft/libXft-devel/libXft-devel-2.1.7-1.tar.bz2
> ------------------------------------ cut here ------------------------------------

Packaging looks good.  Uploaded.


Thanks!
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for   X applications
  2008-04-03  9:46 [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for X applications Dr. Volker Zell
  2008-04-06 11:22 ` Corinna Vinschen
@ 2008-04-09  2:05 ` Brian Dessent
  2008-04-09  2:10   ` Brian Dessent
  1 sibling, 1 reply; 5+ messages in thread
From: Brian Dessent @ 2008-04-09  2:05 UTC (permalink / raw)
  To: cygwin-apps

"Dr. Volker Zell" wrote:

> This package likes to install the header files to
> 
>   /usr/include/X11/Xft/*.h
> 
> xorg-x11-devel installs a symlink
> 
>   /usr/include/X11 -> ../X11R6/include/X11
> 
> Given that the X11 hierarchy is deprecated, I like to remove this
> symlink in a preremove script.
> 
> -------------------- preremove ------------------
> #!/bin/bash
> 
> if [ -L /usr/include/X11 ] ; then
>   rm -f /usr/include/X11
> fi
> -------------------- preremove ------------------

As Angelo tried to report on the wrong mailing list, this is totally
broken.  How are you supposed to compile any X11 apps after installing
this package, without manually adding -I/usr/X11R6/include/X11 to
CPPFLAGS?  Simply installing libXft-devel causes all the X11 headers to
no longer work, because the only thing left under /usr/include/X11 is
now Xft/.

It doesn't make any sense to try to deprecate the X11R6 tree until we
actually have working xorg-* packages that use the new layout.  libXft
should not and does not "own" /usr/include/X11, so it's very surprising
that installing an ancillary library causes a bunch of headers to move. 
xorg-x11-devel should "own" that directory and when we get an X11
maintainer that package should be responsible for moving it out of the
X11R6 space, but not until then, and not by a random library.

Brian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API   for   X applications
  2008-04-09  2:05 ` Brian Dessent
@ 2008-04-09  2:10   ` Brian Dessent
  2008-04-10  9:37     ` Dr. Volker Zell
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Dessent @ 2008-04-09  2:10 UTC (permalink / raw)
  To: cygwin-apps

Brian Dessent wrote:

> As Angelo tried to report on the wrong mailing list, this is totally
> broken.  How are you supposed to compile any X11 apps after installing
> this package, without manually adding -I/usr/X11R6/include/X11 to
> CPPFLAGS?  Simply installing libXft-devel causes all the X11 headers to
> no longer work, because the only thing left under /usr/include/X11 is
> now Xft/.

Furthermore, with the current situation, if you install libXft-devel and
then reinstall xorg-x11-devel, the libXft headers (and anything else you
might have installed in the directory /usr/include/X11) are deleted when
the symlink is remade!  That is clearly broken.  You can't have two
packages sharing ownership of a directory like that.  Please fix.

Brian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API   for   X applications
  2008-04-09  2:10   ` Brian Dessent
@ 2008-04-10  9:37     ` Dr. Volker Zell
  0 siblings, 0 replies; 5+ messages in thread
From: Dr. Volker Zell @ 2008-04-10  9:37 UTC (permalink / raw)
  To: cygwin-apps

>>>>> Brian Dessent writes:

    > Brian Dessent wrote:
    >> As Angelo tried to report on the wrong mailing list, this is totally
    >> broken.  How are you supposed to compile any X11 apps after installing
    >> this package, without manually adding -I/usr/X11R6/include/X11 to
    >> CPPFLAGS?  Simply installing libXft-devel causes all the X11 headers to
    >> no longer work, because the only thing left under /usr/include/X11 is
    >> now Xft/.

    > Furthermore, with the current situation, if you install libXft-devel and
    > then reinstall xorg-x11-devel, the libXft headers (and anything else you
    > might have installed in the directory /usr/include/X11) are deleted when
    > the symlink is remade!  That is clearly broken.  You can't have two
    > packages sharing ownership of a directory like that.  Please fix.

Will fix it this evening.

By the way my libXaw3d-devel has the same problem. So I will switch both
of them back to the /usr/X11R6 hierarchy an provide a post-install script
for the /usr/include/X11 symlink.

    > Brian

Ciao
  Volker
  

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-10  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-03  9:46 [ITA] libXft/libXft2/libXft-devel-2.1.7: A client-side font API for X applications Dr. Volker Zell
2008-04-06 11:22 ` Corinna Vinschen
2008-04-09  2:05 ` Brian Dessent
2008-04-09  2:10   ` Brian Dessent
2008-04-10  9:37     ` Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).