Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

An emerge wrapper for breaking emerges into chunks

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
729 posts
  • Page 27 of 30
    • Jump to page:
  • Previous
  • 1
  • …
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Next
Author
Message
tekknokrat
Apprentice
Apprentice
Posts: 278
Joined: Sun Apr 17, 2005 8:51 am
Location: Magdeburg

  • Quote

Post by tekknokrat » Fri Aug 31, 2007 3:59 pm

ok I'll do that. is an reemerge of glibc needed when downgrading gcc. because i get an error message on doing that with i686-pc-linux-gnu-3.3.6
Optimism is solely an absence of information. / Optimismus ist nur ein Mangel an Information.
(Arthur Schopenhauer)
Top
cctsurf
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 126
Joined: Thu Oct 12, 2006 4:17 pm

bump

  • Quote

Post by cctsurf » Fri Sep 14, 2007 8:47 pm

I really appreciate the emwrap script! :lol: I use it regularly with systems, but this is a problem that I have, :cry: is there a workaround or a code update that could be applied? Thanks!
James
darkphader wrote:emwrap is currently broken - doesn't execute gcc-config properly with gcc-config-1.4.0-r1

Code: Select all

sed: can't read /etc/env.d/gcc/config: No such file or directory
/usr/local/bin/emwrap.sh: line 629: [: : integer expression expected
/usr/local/bin/emwrap.sh: line 631: [: : integer expression expected

BEFORE selecting new GCC:
 [1] NATIVE
 [2] x86_64-pc-linux-gnu-4.2.0 *

**********************************************************************
 I'm going to execute:  # gcc-config x86_64-pc-linux-gnu-
**********************************************************************
 Kill me NOW, or forever hold your peace!
 (sleeping for 15 seconds...)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
(continuing...)
 * gcc-config: Could not locate 'x86_64-pc-linux-gnu-' in '/etc/env.d/gcc/' !
ERROR: : gcc-config x86_64-pc-linux-gnu- failed!

Code: Select all

davinci ~ # ls -l /etc/env.d/gcc/
total 16
-rw-r--r-- 1 root root  32 2006-08-03 10:25 config-i386-pc-linux-gnu
-rw-r--r-- 1 root root  32 2007-08-30 02:22 config-i686-pc-linux-gnu
-rw-r--r-- 1 root root 327 2007-07-15 03:53 i686-pc-linux-gnu-4.1.2
-rw-r--r-- 1 root root 235 2007-08-30 02:21 i686-pc-linux-gnu-4.2.0
lrwxrwxrwx 1 root root  23 2007-08-30 02:22 NATIVE -> i686-pc-linux-gnu-4.2.0

Code: Select all

sartre ~ # ls -l /etc/env.d/gcc/
total 8
-rw-r--r-- 1 root root  34 2007-08-30 09:56 config-x86_64-pc-linux-gnu
lrwxrwxrwx 1 root root  25 2007-08-30 09:56 NATIVE -> x86_64-pc-linux-gnu-4.2.0
-rw-r--r-- 1 root root 285 2007-08-30 01:27 x86_64-pc-linux-gnu-4.2.0
The file "/etc/env.d/gcc/config" no longer exists.

Chris
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Tue Sep 18, 2007 2:47 am

I havent been getting notification of the postings here. Dang I'll try to have an update by thursday.
An A-Z Index of the Linux BASH command line
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Tue Sep 18, 2007 4:02 am

fixed. After downloading run " emwrap.sh -V " It should return

Code: Select all

hielvc@tester ~ $ emwrap.sh -V
        emwrap.sh  Version-4.0.8 with gcc-config-r2 
A wrapper for emerge so you can break emerges into chunks, TC, system, world 
 or world - system
 Mon Sep 17 20:53:30 PDT 2007
An A-Z Index of the Linux BASH command line
Top
cctsurf
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 126
Joined: Thu Oct 12, 2006 4:17 pm

Thanks!

  • Quote

Post by cctsurf » Tue Sep 18, 2007 7:53 am

Thanks! I personally don't understand gentoo's attitude towards emerging with no concern for the toolchain, I would like to see some of your ideas integrated into the emerge system... But if I remember correctly from reading this thread, you've already worked toward that previously to no end...
Anyway, thanks again for your quick response and help!
James
hielvc wrote:fixed. After downloading run " emwrap.sh -V " It should return

Code: Select all

hielvc@tester ~ $ emwrap.sh -V
        emwrap.sh  Version-4.0.8 with gcc-config-r2 
A wrapper for emerge so you can break emerges into chunks, TC, system, world 
 or world - system
 Mon Sep 17 20:53:30 PDT 2007
Top
pescatore
n00b
n00b
Posts: 27
Joined: Sun Apr 03, 2005 12:09 pm
Location: milano

  • Quote

Post by pescatore » Sun Oct 07, 2007 8:26 am

thanks for nice work.
works perfect to me, mostly.
now in last version i found

Code: Select all

 14  12  10  8  6 R 4  2 r 0 r
         Input was empty I will continue with emwrap.sh system -e
so it dont take notice to my " r " , the R was an try to something different.
if i hit enter after r it throw me out
Edit

Code: Select all

You can now enter " r " to resume building. If you dont enter anything
then the old build file will be deleted.and emwrap.sh system -e will
continue. If you want to stop and scratch your head do a CRTL-C
 14  12 r 10  8 r

325 build to emerge
325 build to emerge
 these failed to build
x11-libs/qt-3.3.8-r4
x11-libs/qt-3.3.8-r4

 these remain to build
after is only emtynes
And it finish trhrowing me out
Is it better to look where you put your feets than put your feets to where you look?
sama suomeksi: Onko parempi katsoa mihin astuu kuin astua mihin katsoo?
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

emwrap is currently broken - doesn't execute gcc-config prop

  • Quote

Post by darkphader » Sun Oct 07, 2007 9:42 pm

emwrap broken again?
upgraded to gcc-config-1.4.0-r3 and emwrap.sh v. 4.0.8 cannot execute gcc-config
WYSIWYG - What You See Is What You Grep
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Oct 08, 2007 2:32 pm

pescatore thanks Ill check it out.

darkphader can you paste in the output of " emwrap.sh -V " ?
An A-Z Index of the Linux BASH command line
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Mon Oct 08, 2007 2:51 pm

hielvc wrote:darkphader can you paste in the output of " emwrap.sh -V " ?

Code: Select all

# emwrap.sh -V
        emwrap.sh  Version-4.0.8 with gcc-config-r2
A wrapper for emerge so you can break emerges into chunks, TC, system, world
 or world - system
 Mon Sep 17 20:53:30 PDT 2007
WYSIWYG - What You See Is What You Grep
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Fri Oct 12, 2007 1:53 am

darkphader I just upgraded to gcc-4.2.1 using gcc-config-1.4.0-r3 and it worked fine.

pescatore resume is working for me also. You are pressing the "r" and then hitting ENTER right ?
An A-Z Index of the Linux BASH command line
Top
bMd
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Wed Jul 07, 2004 2:33 am

  • Quote

Post by bMd » Fri Oct 12, 2007 10:04 pm

First time trying emwrap, updated to gcc 4.2.2, emwrap.sh -set and get the following error
* Messages for package sys-devel/gcc-4.2.2:

* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
* Regenerating GNU info directory index...
* Processed 7 info files.
sys-devel/gcc-4.2.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh: line 630: [: : integer expression expected
./emwrap.sh: line 632: [: : integer expression expected

BEFORE selecting new GCC:
[1] x86_64-pc-linux-gnu-4.1.2
[2] x86_64-pc-linux-gnu-4.2.1
[3] x86_64-pc-linux-gnu-4.2.2 *

**********************************************************************
I'm going to execute: # gcc-config x86_64-pc-linux-gnu-
**********************************************************************
Kill me NOW, or forever hold your peace!
(sleeping for 15 seconds...)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
(continuing...)
* gcc-config: Could not locate 'x86_64-pc-linux-gnu-' in '/etc/env.d/gcc/' !
ERROR: : gcc-config x86_64-pc-linux-gnu- failed!
#emwrap.sh -V
emwrap.sh Version-4.0.8 with gcc-config-r2
A wrapper for emerge so you can break emerges into chunks, TC, system, world
or world - system
Mon Sep 17 20:53:30 PDT 2007
anyone else having problems updating to gcc 4.2.2?
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Oct 12, 2007 10:33 pm

bMd same problem I've been having
apparently I'm no longer the only one
WYSIWYG - What You See Is What You Grep
Top
bMd
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Wed Jul 07, 2004 2:33 am

  • Quote

Post by bMd » Sat Oct 13, 2007 1:08 am

::::EDIT

still getting the error
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh: line 630: [: : integer expression expected
./emwrap.sh: line 632: [: : integer expression expected
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Sat Oct 13, 2007 2:58 pm

Ok here's a script. Its basically the gcc-config section from emwrap.sh. You run it like this

Code: Select all

sh ./gcc-config.sh gcc-4.2.1
It will pick the highest version number installed and run gcc-config.

Code: Select all

sh ./gcc-conf.sh gcc-4.1.2
gcc-4.1.2
in config
4.1.2 TEST TEST TesT CHOST
gcc_current 4.2.0
gcc_current_no_dot  420
gcc_version_number_no_dot 412

BEFORE selecting new GCC:
 [1] i686-pc-linux-gnu-4.1.2
 [2] i686-pc-linux-gnu-4.2.0 *

**********************************************************************
 I'm going to execute:  # gcc-config i686-pc-linux-gnu-4.2.0
**********************************************************************
 Kill me NOW, or forever hold your peace!
 (sleeping for 2 seconds...)
1 2 
(continuing...)
 * gcc-config: Must be root.
ERROR: gcc-config i686-pc-linux-gnu-4.2.0 failed!
If you gcc-config to an earlier gcc, like gcc-4.1.2 in the above example, and then run this script as root it should change to newest gcc you have.
Heres the script and or you can download it from gcc-conf.sh
EDIT CHANGED "gcc_current=. . ./etc/env.d/gcc/config-${CHOST})" to use CHOST

Code: Select all

#!/bin/bash
# Test scritp for doing a gcc-config selection

source /etc/make.conf
	if echo "$1" | grep "gcc-[0-9].*" ; then
	# Adding maguire's gcc_config  setup here
		gcc_current=""
		gcc_new_version_number=""
		gcc_for_gcc_config=""
		gcc_current_no_dot=""
		gcc_version_number_no_dot=""
	###############################################################
	# Let games begin
	###############################################################
		#10-14-07 switched to CHOST usage so that i686, x86_64 and whaterver else.
		if [[ -e "/etc/env.d/gcc/config" ]] ;then
			echo "in config"
			gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config)
		elif [ -e "/etc/env.d/gcc/config-"${CHOST}"" ] ; then
			echo "in chost"
			gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-"${CHOST}")
		fi
		# $1 is the gcc-version that the function build-count, passes to function gcc-conf
		gcc_new_version_number=$( echo "$1" |sed 's/^.*\([0-9]\.[0-9]\.[0-9]\).*/\1/')
echo "${gcc_new_version_number} TEST  CHOST"
echo "gcc_current "$gcc_current""
		# For selecting the highest version gcc
		if echo "$1" | grep -Eq "gcc-[0-9].*" ; then
			# stripping out the dots 4.1.1 ==> 411
			gcc_current_no_dot=$(echo ${gcc_current} | sed 's/\.//g')
			gcc_version_number_no_dot=$(echo ${gcc_new_version_number} | sed 's/\.//g')
echo "gcc_current_no_dot  "$gcc_current_no_dot""
echo "gcc_version_number_no_dot "$gcc_version_number_no_dot""
			# Now finding which no_dot is larger
			if [ "${gcc_current_no_dot}" -eq "${gcc_version_number_no_dot}" ] ; then
				high_gcc="${gcc_new_version_number}"
			elif [ "${gcc_current_no_dot}" -lt "${gcc_version_number_no_dot}" ] ; then
				high_gcc="${gcc_new_version_number}"
			else
				high_gcc="${gcc_current}"
			fi
			
			gcc_for_gcc_config="${CHOST}-${high_gcc}"
			# Select the new GCC version for future compilations:
			echo
			echo "${Rd}BEFORE selecting new GCC:${CY}"
			gcc-config -l
			echo
			# Changed output of pretend to be more readable.Sun May 28 23:20:39 new time stamp.
			# For testing. use the first "if"
			#if [ "$prtnd" != "p" ] ; then
			if [ "$prtnd" == "p" ] ; then
				echo "${BL}**********************************************************************${nc}"
				echo
				echo "${Yl} I would do:${CY} # gcc-config -f ${gcc_for_gcc_config}${nc}"
				echo
				echo "${BL}**********************************************************************${nc}"
				echo
			else
				echo "${BL}**********************************************************************${nc}"
				echo "${Yl} I'm going to execute:  # gcc-config ${gcc_for_gcc_config}${nc}"
				echo "${BL}**********************************************************************${nc}"
				echo "${Yl} Kill me NOW, or forever hold your peace!${nc}"
				echo "${Yl} (sleeping for 2 seconds...)${nc}"
				for loop_counter in 1 2 ;do
					echo -n "$loop_counter "
					sleep 1
				done
				echo
				echo "${Rd}(continuing...)${nc}"
				gcc-config -f "$gcc_for_gcc_config" \
					|| {
						return_code=$?
						echo "${RD}ERROR:${nc} ${Rd}gcc-config $gcc_for_gcc_config failed!${nc}" >&2
						exit $return_code
						}
				echo
				echo "${RD}AFTER selecting new GCC:${nc}"
				gcc-config -l
				echo
				echo "${Yl}Now sourcing /etc/profile${nc}"
				source /etc/profile
				echo
			fi
		fi
	fi

EDIT: Fixed by gcc-config -1.4.0-r4
Note if you are running gcc-config--1.4.0-r3 it seems to have major problem which was first brought up here. Switch default C/C++ compiler
I'm now -r3 and it wont change gcc though seems to.
Last edited by hielvc on Tue Oct 16, 2007 3:15 am, edited 3 times in total.
An A-Z Index of the Linux BASH command line
Top
bMd
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Wed Jul 07, 2004 2:33 am

  • Quote

Post by bMd » Sun Oct 14, 2007 2:08 pm

bMd wrote: still getting the error
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh: line 630: [: : integer expression expected
./emwrap.sh: line 632: [: : integer expression expected
opps forgot to post my results from saturday....

In emwrap.sh change line

Code: Select all

gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )
to

Code: Select all

gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-x86_64-pc-linux-gnu )
Successfully updated toolchain

Thanks again Hielvc
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Sun Oct 14, 2007 6:00 pm

bMd thanks for the feed back and the fix. Im not runing 64 bit so I duh been a loooong time figuring it out :wink:

Changed

Code: Select all

gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )
to

Code: Select all

gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-${CHOST})
Will releash emwrap.sh -r3 later today.
An A-Z Index of the Linux BASH command line
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Sun Oct 14, 2007 11:35 pm

I have -r3, and I still get this error.

Code: Select all

# ./emwrap.sh-r3 -Spqt
 Running emwrap.sh 4.0.8 with gcc-config-r3 Sun Oct 14 16:17:10 PDT 2007
 If emwrap.sh is run and it detects a "failed' or "build" file
 then it will offer to build them. You can ignor this by not doing
 anything and what you wanted todo will start after automaticlly.

work_dir is

           ToolChain updates found

                linux-headers

======================================================

sys-kernel/linux-headers-2.6.22-r2
sys-libs/glibc-2.6.1
sys-devel/gcc-config-1.3.16
sys-devel/binutils-config-1.9-r4
sys-devel/binutils-2.18-r1
sys-devel/gcc-4.1.2
sys-libs/glibc-2.6.1
sys-devel/binutils-2.18-r1
sys-devel/gcc-4.1.2

1 of 9 build [ebuild   R   ] sys-kernel/linux-headers-2.6.22-r2
2 of 9 build [ebuild     U ] sys-libs/glibc-2.6.1 [2.5-r4]
3 of 9 build [ebuild   R   ] sys-devel/gcc-config-1.3.16
4 of 9 build [ebuild   R   ] sys-devel/binutils-config-1.9-r4
5 of 9 build [ebuild     U ] sys-devel/binutils-2.18-r1 [2.17-r1]
6 of 9 build [ebuild   R   ] sys-devel/gcc-4.1.2
sys-devel/gcc-4.1.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh-r3: line 604: [: : integer expression expected
./emwrap.sh-r3: line 606: [: : integer expression expected

BEFORE selecting new GCC:
 [1] i686-pc-linux-gnu-4.1.2 *

**********************************************************************

 I would do: # gcc-config -f i686-pc-linux-gnu-

**********************************************************************

7 of 9 build [ebuild     U ] sys-libs/glibc-2.6.1 [2.5-r4]
8 of 9 build [ebuild     U ] sys-devel/binutils-2.18-r1 [2.17-r1]
9 of 9 build [ebuild   R   ] sys-devel/gcc-4.1.2
sys-devel/gcc-4.1.2
sed: can't read /etc/env.d/gcc/config-i686-pc-linux-gnu: No such file or directory
./emwrap.sh-r3: line 604: [: : integer expression expected
./emwrap.sh-r3: line 606: [: : integer expression expected

BEFORE selecting new GCC:
 [1] i686-pc-linux-gnu-4.1.2 *

**********************************************************************

 I would do: # gcc-config -f i686-pc-linux-gnu-

**********************************************************************


End of ToolChain update
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Sun Oct 14, 2007 11:39 pm

Just posted emwrap.sh-r3. When you save it and you are asked for the name just delete "-r3". If you missed your chance to rename it when you downloaded it then

Code: Select all

mv emwrap.sh-r3 emwrap.sh

Code: Select all

emwrap.sh -V
        emwrap.sh  Version-4.0.8 with gcc-config-r3 
A wrapper for emerge so you can break emerges into chunks, TC, system, world 
 or world - system
 Sun Oct 14 16:17:10 PDT 2007
An A-Z Index of the Linux BASH command line
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Sun Oct 14, 2007 11:49 pm

This got rid of the error messages (I have no idea if it actually WORKS, though :) ):

Code: Select all

# diff -u emwrap.sh-r3.org emwrap.sh-r3
--- emwrap.sh-r3.org    2007-10-14 23:24:26.000000000 +0000
+++ emwrap.sh-r3        2007-10-14 23:42:26.000000000 +0000
@@ -591,7 +591,7 @@
                # Let games begin
                ###############################################################
                        #10-14-07 switched to CHOST usage so that i686, x86_64 and whaterver else is taken care of.
-                       gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-"${CHOST}")
+                       gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config)
                        # $1 is the "gcc-version" that the function build-count, passes to function gcc_config
                        gcc_new_version_number=$( echo "$1" |sed 's/^.*\([0-9]\.[0-9]\.[0-9]\).*/\1/')
                        ## echo "${gcc_new_version_number} TEST TEST TesT CHOST"
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Oct 15, 2007 12:09 am

Good, your prob has been bugging me. I glad its fixed.
An A-Z Index of the Linux BASH command line
Top
StifflerStealth
Retired Dev
Retired Dev
User avatar
Posts: 968
Joined: Wed Jul 03, 2002 8:20 pm

  • Quote

Post by StifflerStealth » Mon Oct 15, 2007 12:11 am

Right. The problem is that CHOST is a variable defined in /etc/make.conf, so it will not be set for emwrap. Programs like emerge set it and then disable it when they are done. I was doing some tests.
# echo $CHOST yields nothing. Thus, you are trying to cat a file named "config-". Removing the -${CHOST} is not an option either. :P There is not "config" file.

However, after my tests, I found this to work on the command line:
# sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-*
4.2.2

There is a slight flaw to that, though. Suppose a user has more than one config file? I think you see where this is going as an issue. However, if there is only one config file and most users have this, this could be a temporary fix until a better solution comes along. I think the better solution would be to somehow grab the CHOST values from /etc/make.conf and set that to a variable ... say emwrap_chost, so it doesn't interfer with emerge or get deleted by emerge or any other program. :)

I need to test config-* in the script to see if it works there as well.

Cheers.
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Oct 15, 2007 1:49 am

191 source /etc/make.conf
check line # 191 right after function color() :wink:
An A-Z Index of the Linux BASH command line
Top
hielvc
Advocate
Advocate
Posts: 2805
Joined: Fri Apr 19, 2002 5:55 pm
Location: Oceanside, Ca

  • Quote

Post by hielvc » Mon Oct 15, 2007 2:11 am

Whaoo curmudgeon your saying that changing " config-"${CHOST}" " to just "config" fixs your problem StifflerStealth your having the same prob? If so could you both post your " emerge --info " ? Thanks
An A-Z Index of the Linux BASH command line
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon Oct 15, 2007 3:30 am

Mine:

Code: Select all

$ emerge -p --info
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Sun, 14 Oct 2007 21:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa arts audiofile berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cjk cpudetection cracklib crypt css cups dbus dga directfb dri dvd dvdr dvdread encode exif expat fam fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer hal iconv idea imagemagick imap imlib ipv6 javascript jbig joystick jpeg kde lcms libcaca libwww live lm_sensors mad matroska mbox memlimit midi mmx mmxext mng mp3 mpeg mudflap mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ogg opengl openmp oscar pcre pdf perl png qt3 quicktime readline real rtc samba scanner sdl silc smtp sndfile speex spell sse sse2 ssl stream svg sysfs tcpd theora threads threadsafe tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vcd vorbis wideband win32codecs x86 xinerama xml xorg xv xvid yahoo zlib zrtp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="mga radeon"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Top
curmudgeon
Veteran
Veteran
Posts: 1746
Joined: Fri Aug 08, 2003 1:39 pm

  • Quote

Post by curmudgeon » Mon Oct 15, 2007 3:35 am

StifflerStealth wrote:Removing the -${CHOST} is not an option either. :P There is not "config" file.
I have one.

Code: Select all

$ ls -al /etc/env.d/gcc/
total 20
drwxr-xr-x 2 root root 4096 2007-07-16 05:49:52 ./
drwxr-xr-x 5 root root 4096 2007-10-12 23:43:41 ../
-rw-r--r-- 1 root root   32 2007-07-16 08:40:14 config
-rw-r--r-- 1 root root  327 2007-07-16 05:49:51 i686-pc-linux-gnu-4.1.2
Top
Post Reply

729 posts
  • Page 27 of 30
    • Jump to page:
  • Previous
  • 1
  • …
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Next

Return to “Unsupported Software”

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