Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-17-2004, 11:16 AM   #1
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
building optimized deb-src packages (debian/rules)


I've been trying to get Xfree86 optimized for my system.

I've downloaded the deb-src package, and it will compile and build just fine. The problem is that it ignores my host.def file (in the upstream dir), which would tell a normal XFree86 build to only build certain drivers, and contains my CPU optimizations.

there is a LOAD of stuff in the /debian directory; I've looked at /debian/rules and /debian/doogie-build-system, and they don't seem to contain anything pertinent. There is reference in /debian/rules to:

# XXX: xc/config/cf/* needs some fairly serious hacking to support this in a
# way that David Dawes will accept upstream, so for the time being, this isn't
# used (the DebianGccOptimizeOpt symbol is not referenced anywhere in the
# source tree), even though this variable is expanded below.

... So, this is a useless variable? When gcc is called during the make script, it uses -O2 flags, not -O0, so the above doesn't seem to matter.

I've done
export CFLAGS="march=pentium4 -O6"
export ARCH="i686"
export DEBIAN_HOST_ARCH="i686"

But the makefile still insists I'm using i386 architecture, and puts this in the debs.

Google has failed me on this one - there doesn't seem to be any kind of guide or explanation to debian/rules.

Can anyone explain what's going on, where i would set optimizations (preferably global, so I can download and make deb-src packages with optimizations, the way apt-get source is supposed to work), or point me to a guide that explains this?
I've read the apt-get howto, and anything else that a google search turned up.


Old 02-17-2004, 01:03 PM   #2
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
There are source-based deb systems out there, like apt-build, apt-src, and pbuilder. I'd check with one of these to see if it fits your requirements.

I'd also think if compiling X is really worth the time and trouble for the optimization that you will get...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
When DEB packages need strange packages noteventime Linux - Software 0 11-29-2005 10:37 AM
deb-src Locations Kenji Miyamoto Debian 1 08-22-2005 02:36 PM
deb-src nowens Debian 1 10-04-2004 10:24 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 02:49 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 07:03 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration