You are not logged in.

#1 2009-04-01 18:48:24

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Question about optimizing packages int Makepkg.conf

I edited my Makepkg.conf file so that it knows that I have a Intel Core 2 Duo. Do I need to rebuild any packages? How do I go about it if I do?

Offline

#2 2009-04-01 19:57:05

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Question about optimizing packages int Makepkg.conf

Depends on what changes you made. So what changes did you make? And man makepkg.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#3 2009-04-01 21:47:42

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Question about optimizing packages int Makepkg.conf

You can build packages with ABS, check the wiki. Do you need to rebuild any packages? No... but the whole point of modifying that file is to change how packages are built in the first place.. so if you want a package rebuilt with those settings, rebuild it.

Offline

#4 2009-04-01 21:59:28

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Question about optimizing packages int Makepkg.conf

Yup, you need to brush up on ABS and PKGBUILD first.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#5 2009-04-02 04:39:25

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: Question about optimizing packages int Makepkg.conf

I haven't made any packages with ABS, I wasn't sure when I setup Arch if anything needed to be rebuilt. I changed  Core 2 Duo/Quad/Xeon/Pentium 4 P6xx

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j3"

Offline

#6 2009-04-02 04:41:12

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Question about optimizing packages int Makepkg.conf

makepkg.conf only comes into play when you build packages.  Installing packages from the repos with pacman doesn't call makepkg.conf.

Offline

#7 2009-04-02 05:12:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Question about optimizing packages int Makepkg.conf

slughappy1 wrote:

I haven't made any packages with ABS, I wasn't sure when I setup Arch if anything needed to be rebuilt. I changed  Core 2 Duo/Quad/Xeon/Pentium 4 P6xx

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j3"

You can use "-march=native" instead of "march=prescott" and GCC will choose the correct processor.

Offline

#8 2009-04-02 05:35:03

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: Question about optimizing packages int Makepkg.conf

Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that

Offline

#9 2009-04-02 05:46:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Question about optimizing packages int Makepkg.conf

slughappy1 wrote:

Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that

I don't know that chip. I do know that if you use 'native' that GCC will correctly identify your processor.

Offline

#10 2009-04-02 15:11:05

BC
Member
Registered: 2008-01-29
Posts: 83

Re: Question about optimizing packages int Makepkg.conf

slughappy1 wrote:

I haven't made any packages with ABS, I wasn't sure when I setup Arch if anything needed to be rebuilt. I changed  Core 2 Duo/Quad/Xeon/Pentium 4 P6xx

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j3"

Did you change CARCH also?

Offline

#11 2009-04-02 16:59:21

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Question about optimizing packages int Makepkg.conf

slughappy1 wrote:

Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that

Prescott is for the i686 version, Nocona is for x86_64.

Offline

#12 2009-04-02 20:45:11

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Question about optimizing packages int Makepkg.conf

SkonesMickLoud wrote:
slughappy1 wrote:

Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that

Prescott is for the i686 version, Nocona is for x86_64.

Note that this is, I'm pretty sure, independent of what architecture your OS is running (32-bit vs 64-bit).

Offline

#13 2009-04-02 20:51:40

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Question about optimizing packages int Makepkg.conf

Ranguvar wrote:
SkonesMickLoud wrote:
slughappy1 wrote:

Isn't prescott the right config for an Intel Centrino Core 2 Duo? That's what the guide says. Although, I once tried to install Gentoo. I think I remember that someone told me that prescott is just the current form, and that for the core 2 duo it was going to change. Or something like that

Prescott is for the i686 version, Nocona is for x86_64.

Note that this is, I'm pretty sure, independent of what architecture your OS is running (32-bit vs 64-bit).

Yeah.  What I meant was that if you're running i686 on your Core2Duo it's a Prescott.  If you're running x86_64, it's a Nocona.

Offline

#14 2009-04-02 21:34:58

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Question about optimizing packages int Makepkg.conf

SkonesMickLoud wrote:
Ranguvar wrote:
SkonesMickLoud wrote:

Prescott is for the i686 version, Nocona is for x86_64.

Note that this is, I'm pretty sure, independent of what architecture your OS is running (32-bit vs 64-bit).

Yeah.  What I meant was that if you're running i686 on your Core2Duo it's a Prescott.  If you're running x86_64, it's a Nocona.

But the wiki says to use core2 not nocona


neutral

Offline

#15 2009-04-04 03:20:17

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: Question about optimizing packages int Makepkg.conf

I do not believe that I had to change the CARCH.

Offline

Board footer

Powered by FluxBB