Subject: Re: CVS commit: pkgsrc
To: Dan McMahill <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 04/15/2000 17:02:24
how about a USE_QT[12] that can do whatever internals are used this week?

 - Hubert

On Fri, 14 Apr 2000, Dan McMahill wrote:

> Module Name:	pkgsrc
> Committed By:	dmcmahill
> Date:		Fri Apr 14 21:11:59 UTC 2000
> Modified Files:
> 	pkgsrc/x11/qt: Makefile
> 	pkgsrc/x11/qt/pkg: PLIST
> Log Message:
> move stuff yet again...  Considerations which led to this decision are:
> -it is important to be able to have the libraries in a place other than
>  ${X11BASE}/lib or ${LOCALBASE}/lib.  Otherwise, the order of -Ldir matters
>  when other programs link to the qt1 pkg.  If the order is wrong, the pkgs
>  which use qt1 pick up libqt from this pkg and fail.  Since there are _many_
>  pkgs (and probably programs being written by individual users) which fall
>  in this catergory, I decided it was too error prone to simply require a
>  certain order of -Ldir.  Additionally, it adds overhead to the maintainance
>  of any pkgs which use qt.
> -it is important to keep the name "qt" for the libraries because everyone
>  expects to use "-lqt" (not "-lqt2").  This is true for many automatically
>  generated (for example from kdevelop) makefiles.  The same is true for
>  keeping the name "moc" instead of "moc2".
> -it would be nice to not totally ignore hier(7) by simply creating
>  ${X11BASE}/qt2/ and putting everything under that directory.
> As a result of these considerations, the "final" resting place for the qt2
> components are:
> ${X11BASE}/bin/qt2/
> ${X11BASE}/lib/qt2/
> ${X11BASE}/include/qt2/
> ${X11BASE}/man/qt2/{man1,man3}
> ${X11BASE}/share/doc/qt2/
> Most programs can correctly find the required components by using
> --with-qt-includes=${X11BASE}/include/qt2/
> --with-qt-libraries=${X11BASE}/lib/qt2/
> as configure arguments and setting the MOC environment variable to
> ${X11BASE}/bin/qt2/moc or putting ${X11BASE}/bin/qt2/ in the PATH.
> This makes it relatively easy to maintain a pkg which uses qt2 since
> these are set in the pkg Makefile instead of as a patch to the pkg.
> To generate a diff of this commit:
> cvs rdiff -r1.31 -r1.32 pkgsrc/x11/qt/Makefile
> cvs rdiff -r1.13 -r1.14 pkgsrc/x11/qt/pkg/PLIST
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

Microsoft: "Where do you want to go today?"
Linux:     "Where do you want to be tomorrow?"
BSD:       "Are you guys coming, or what?"