Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

per-package CFLAGS / beecrypt and pentium-m [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

per-package CFLAGS / beecrypt and pentium-m [SOLVED]

  • Quote

Post by depontius » Tue Aug 15, 2006 1:32 pm

I can't emerge beecrypt today. Looking in bugzilla I see that it doesn't work with march=pentium-m in CFLAGS, and that the fix is to set march=pentium3.

I've edited make.conf, and am emerging beecrypt now. Then I'll change it back, and emerge rpm. I also find that at home on my hardened box, I can't emerge busybox, and suspect that march=k6-3 might be part of the problem. I have yet to try this, file a bug, and for that matter, even check bugzilla. (need to do this)

So the question at hand...

We have package.use in order to specify a USE flag on a package-by-package basis, when the USE flags in make.conf don't quite do it, or I prefer this for 'local' USE flags.
ISTHERE and equivalent mechanism to package.use for CFLAGS? There are any number of packages that don't like specific CFLAGS, and such a beast would be generally useful. A quick search shows "portage toys", which looks like a .bashrc script for the portage account, which seems a bit intrusive and likely to break with portage releases. It also dates back to 2004, which means that maybe there's something better, by now.
Last edited by depontius on Thu Aug 17, 2006 2:17 pm, edited 1 time in total.
.sigs waste space and bandwidth
Top
lnxz
Guru
Guru
Posts: 472
Joined: Sun Jul 03, 2005 4:53 am
Location: Earth

  • Quote

Post by lnxz » Tue Aug 15, 2006 2:41 pm

take a look at this
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Aug 17, 2006 12:38 pm

lnxz wrote:take a look at this
That was the thing that I saw "dates back to 2004" and mentioned earlier. It looks scarily bolted-on and intrusive, so for the moment, I've got some commented lines in my make.conf for when the need arises.

Incidentally, going from "-march=pentium-m" to "-march=pentium3" fixed my beecrypt problem, but taking the "-march=k6-3" out on my SELinux box did not fix the busybox emerge. I guess it's time to do bugzilla on that one.

It would be good to see some sort of support for this integrated into Portage. (So for the moment, I won't mark this "[SOLVED]")
.sigs waste space and bandwidth
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Thu Aug 17, 2006 1:20 pm

modo put the thread into duplicate ones although it doesn't seem to be a well known way of setting perpackage env:

see here
or read this:)
truc wrote:Assuming you want to set CFLAGS="blah blih blouh -full-speed-on" then you can do this

Code: Select all

mkdirhier /etc/portage/env/category 
echo 'CFLAGS="blah blih blouh -full-speed-on"' >> /etc/portage/env/category/packagename 

Note this is not restrictive to CFLAGS.

for example (for this tip that you can find in that thread: Get aMSN to use anti-aliased fonts (with ebuilds) :

Code: Select all

for pkg in {dev-lang/tk,dev-lang/tcl,net-im/amsn} ; do mkdirhier /etc/portage/env/${pkg%/*} ; echo "EXTRA_ECONF="--enable-xft"" >> /etc/portage/env/$pkg ; done 
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Aug 17, 2006 2:16 pm

Trying it out, now. So I've made the directory "/etc/portage/env/dev-libs" and the file "beecrypt" contains my new CFLAGS. In addition, I've symlinked beecrypt to beecrypt-3.1.0-r2.

Which file was used, the real file or the symlink?

By the way, the emerge just finished successfully, so I'll mark this as [SOLVED]. IMHO this capability should be more prominently featured, here and in the Portage documentation. Come to think of it, it's been a while since I've read the Portage docs.

Thanks.
.sigs waste space and bandwidth
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Thu Aug 17, 2006 2:26 pm

depontius wrote:Which file was used, the real file or the symlink?
I've never tested if it also works with package version ( I mean ${PF} (man 5 ebuild) ) but I'm sure it works with your real file "beecrypt",

That would be good to know if it works if you delete the symlink, and rename the real file so that it also contains the package version&revision.

:?:
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Aug 17, 2006 3:38 pm

Remove the symlink and it compiles for "-march=pentium3"
Rename the file to add the release number and it compiles for "-march=pentium3"
Rename the file to the wrong release number, and it compiles for "-march=pentium-m"

Just did another quick check...
Using (pkgname) will generally override /etc/make.conf
If you also have (pkgname)-(version) will override both (pkgname) and /etc/make.conf

This is just the behavior I'd like to see.
.sigs waste space and bandwidth
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic