Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13218 Details for
Bug 22771
tinyx(kdrive) mini (Xfree86-based) X server
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
tinyx-4.3.0.ebuild ebuild(should go in x11-base)
tinyx-4.3.0.ebuild (text/plain), 5.63 KB, created by
Juan José Gutiérrez de Quevedo
on 2003-06-13 12:38:29 UTC
(
hide
)
Description:
tinyx-4.3.0.ebuild ebuild(should go in x11-base)
Filename:
MIME Type:
Creator:
Juan José Gutiérrez de Quevedo
Created:
2003-06-13 12:38:29 UTC
Size:
5.63 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 > ># Make sure Portage does _NOT_ strip symbols. We will do it later and make sure ># that only we only strip stuff that are safe to strip ... >DEBUG="yes" >RESTRICT="nostrip" > >IUSE="3dfx sse mmx 3dnow xml2 truetype nls cjk doc ipv6" > >filter-flags "-funroll-loops" > >ALLOWED_FLAGS="-fstack-protector -march -mcpu -O -O2 -O3 -pipe" > ># Recently there has been a lot of stability problem in Gentoo-land. Many ># things can be the cause to this, but I believe that it is due to gcc3 ># still having issues with optimizations, or with it not filtering bad ># combinations (protecting the user maybe from themselves) yet. ># ># This can clearly be seen in large builds like glibc, where too aggressive ># CFLAGS cause the tests to fail miserbly. ># ># Quote from Nick Jones <carpaski@gentoo.org>, who in my opinion ># knows what he is talking about: ># ># People really shouldn't force code-specific options on... It's a ># bad idea. The -march options aren't just to look pretty. They enable ># options that are sensible (and include sse,mmx,3dnow when apropriate). ># ># The next command strips CFLAGS and CXXFLAGS from nearly all flags. If ># you do not like it, comment it, but do not bugreport if you run into ># problems. ># ># <azarah@gentoo.org> (13 Oct 2002) >strip-flags > ># Are we using a snapshot ? >USE_SNAPSHOT="no" > >BASE_PV="${PV}" >MY_SV="${BASE_PV//\.}" >S="${WORKDIR}/xc" >SRC_PATH0="ftp://ftp.xfree.org/pub/XFree86/${BASE_PV}/source" >SRC_PATH1="ftp://ftp1.sourceforge.net/pub/mirrors/XFree86/${BASE_PV}/source" >HOMEPAGE="http://www.xfree.org" > >SRC_URI="${SRC_PATH0}/X${MY_SV}src-1.tgz > ${SRC_PATH0}/X${MY_SV}src-2.tgz > ${SRC_PATH0}/X${MY_SV}src-3.tgz > ${SRC_PATH1}/X${MY_SV}src-1.tgz > ${SRC_PATH1}/X${MY_SV}src-2.tgz > ${SRC_PATH1}/X${MY_SV}src-3.tgz" > >LICENSE="X11" >SLOT="0" >KEYWORDS="~x86" > >DEPEND=">=sys-apps/baselayout-1.8.3 > >=sys-libs/ncurses-5.1 > >=sys-libs/zlib-1.1.3-r2 > >=sys-devel/flex-2.5.4a-r5 > >=dev-libs/expat-1.95.3 > >=sys-apps/sed-4 > dev-lang/perl > media-libs/libpng > app-arch/unzip > pam? ( >=sys-libs/pam-0.75 )" > >PROVIDE="virtual/x11" > >#inherit needs to happen *after* DEPEND has been defined to have "newdepend" >#do the right thing. Otherwise RDEPEND doesn't get set properly. >inherit eutils flag-o-matic gcc > >DESCRIPTION="Xfree86: famous and free X server. Tiny version(Kdrive)" > >PATCH_DIR=${WORKDIR}/patch > >src_unpack() { > > # Unpack source and patches > unpack X${MY_SV}src-{1,2,3}.tgz > > ebegin "Setting up config/cf/host.def" > cd ${S} ># cp config/cf/site.def config/cf/host.def || die > touch config/cf/host.def > echo "#define XVendorString \"Gentoo Linux (TinyX ${PV}, revision ${PR})\" >#define KDriveXServer YES >#define TinyXServer YES >#define XvesaServer YES >#define ProjectRoot /usr/X11R6 >#define BuildLBX YES >#define BuildDBE YES >#define KdriveServerExtraDefines -DPIXPRIV >#define BuildRandR YES >#define BuildXInputLib YES >#define BuildXTrueType NO >#define BuildScreenSaverExt YES >#define BuildScreenSaverLibrary YES >#define SharedLibXss YES >#define ServerXdmcpDefines -DXDMCP >#define BuildFonts NO >#define XfbdevServer YES" >>config/cf/host.def > > # We're using Xwrapper instead -- so that nothing else needs to be > # set uid any more. > echo "#define InstallXserverSetUID NO" >> config/cf/host.def > echo "#define BuildServersOnly YES" >> config/cf/host.def > > # Bug #12775 .. fails with -Os. > replace-flags "-Os" "-O2" > > if [ "`gcc-version`" != "2.95" ] > then > # Should fix bug #4189. gcc-3.x have problems with -march=pentium4 > # and -march=athlon-tbird > replace-flags "-march=pentium4" "-march=pentium3" > replace-flags "-march=athlon-tbird" "-march=athlon" > > # Without this, modules breaks with gcc3 > if [ "`gcc-version`" = "3.1" ] > then > append-flags "-fno-merge-constants" > append-flags "-fno-merge-constants" > fi > fi > > if [ "`uname -r | cut -d. -f1,2`" != "2.2" ] > then > echo "#define HasLinuxInput YES" >> config/cf/host.def > fi > > echo "#define OptimizedCDebugFlags ${CFLAGS}" >> config/cf/host.def > echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS}" >> config/cf/host.def > if [ -n "`use debug`" ] > then > echo "#define XFree86Devel YES" >> config/cf/host.def > echo "#define DoLoadableServer NO" >>config/cf/host.def > else > # use less ram .. got this from Spider's makeedit.eclass :) > echo "#define GccWarningOptions -Wno-return-type -w" \ > >> config/cf/host.def > fi > > if [ "${ARCH}" = "x86" ] > then > # optimize for architecture > if [ -n "`use mmx`" ] > then > echo "#define HasMMXSupport YES" >> config/cf/host.def > else > echo "#define HasMMXSupport NO" >> config/cf/host.def > fi > if [ -n "`use 3dnow`" ] > then > echo "#define Has3DNowSupport YES" >> config/cf/host.def > else > echo "#define Has3DNowSupport NO" >> config/cf/host.def > fi > if [ -n "`use sse`" ] > then > echo "#define HasKatmaiSupport YES" >> config/cf/host.def > else > echo "#define HasKatmaiSupport NO" >> config/cf/host.def > fi > > fi > > if [ "`use ipv6`" ] > then > echo "#define HasIPv6 YES" >> config/cf/host.def > fi > > eend 0 >} > >src_compile() { > > # Set MAKEOPTS to have proper -j? option .. > get_number_of_jobs > > # If a user defines the MAKE_OPTS variable in /etc/make.conf instead of > # MAKEOPTS, they'll redefine an internal XFree86 Makefile variable and the > # xfree build will silently die. This is tricky to track down, so I'm > # adding a preemptive fix for this issue by making sure that MAKE_OPTS is > # unset. (drobbins, 08 Mar 2003) > unset MAKE_OPTS > > einfo "Building XFree86..." > emake World || die > >} > >src_install() { > > exeinto /usr/X11R6/bin > doexe programs/Xserver/Xvesa > doexe programs/Xserver/Xfbdev > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 22771
: 13218