LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


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

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


Hi.

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.
DEBUGFLAGS:=-DDebianGccOptimizeOpt='-O0'

... 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"
and
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.

Thanks!

--Rounan
 
Old 02-17-2004, 01:03 PM   #2
Strike
Member
 
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...
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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