Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
An emerge wrapper for breaking emerges into chunks
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 26, 27, 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
tekknokrat
Apprentice
Apprentice


Joined: 17 Apr 2005
Posts: 278
Location: Magdeburg

PostPosted: Fri Aug 31, 2007 3:59 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Fri Sep 14, 2007 8:47 pm    Post subject: bump Reply with quote

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:
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:
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:
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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Tue Sep 18, 2007 2:47 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Tue Sep 18, 2007 4:02 am    Post subject: Reply with quote

fixed. After downloading run " emwrap.sh -V " It should return
Code:
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
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Tue Sep 18, 2007 7:53 am    Post subject: Thanks! Reply with quote

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:
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
Back to top
View user's profile Send private message
pescatore
n00b
n00b


Joined: 03 Apr 2005
Posts: 27
Location: milano

PostPosted: Sun Oct 07, 2007 8:26 am    Post subject: Reply with quote

thanks for nice work.
works perfect to me, mostly.
now in last version i found
Code:
 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:
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?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Sun Oct 07, 2007 9:42 pm    Post subject: emwrap is currently broken - doesn't execute gcc-config prop Reply with quote

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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Oct 08, 2007 2:32 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Mon Oct 08, 2007 2:51 pm    Post subject: Reply with quote

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

Code:
# 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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Fri Oct 12, 2007 1:53 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
bMd
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Fri Oct 12, 2007 10:04 pm    Post subject: Reply with quote

First time trying emwrap, updated to gcc 4.2.2, emwrap.sh -set and get the following error
Quote:
* 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!

Quote:
#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?
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1217
Location: Motown

PostPosted: Fri Oct 12, 2007 10:33 pm    Post subject: Reply with quote

bMd same problem I've been having
apparently I'm no longer the only one
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
bMd
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Sat Oct 13, 2007 1:08 am    Post subject: Reply with quote

::::EDIT

still getting the error
Quote:
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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Oct 13, 2007 2:58 pm    Post subject: Reply with quote

Ok here's a script. Its basically the gcc-config section from emwrap.sh. You run it like this
Code:
sh ./gcc-config.sh gcc-4.2.1
It will pick the highest version number installed and run gcc-config.
Code:
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:
#!/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.
_________________
An A-Z Index of the Linux BASH command line


Last edited by hielvc on Tue Oct 16, 2007 3:15 am; edited 3 times in total
Back to top
View user's profile Send private message
bMd
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Sun Oct 14, 2007 2:08 pm    Post subject: Reply with quote

bMd wrote:

still getting the error
Quote:
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:
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )
to
Code:
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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun Oct 14, 2007 6:00 pm    Post subject: Reply with quote

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:
gcc_current=$(sed 's/^.*\([0-9]\.[0-9]\.[0-9]\)/\1/' /etc/env.d/gcc/config-i686-pc-linux-gnu )

to
Code:
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
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Sun Oct 14, 2007 11:35 pm    Post subject: Reply with quote

I have -r3, and I still get this error.
Code:
# ./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
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun Oct 14, 2007 11:39 pm    Post subject: Reply with quote

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:
mv emwrap.sh-r3 emwrap.sh


Code:
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
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Sun Oct 14, 2007 11:49 pm    Post subject: Reply with quote

This got rid of the error messages (I have no idea if it actually WORKS, though :) ):
Code:
# 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"
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Oct 15, 2007 12:09 am    Post subject: Reply with quote

Good, your prob has been bugging me. I glad its fixed.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
StifflerStealth
Retired Dev
Retired Dev


Joined: 03 Jul 2002
Posts: 968

PostPosted: Mon Oct 15, 2007 12:11 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Oct 15, 2007 1:49 am    Post subject: Reply with quote

Quote:
191 source /etc/make.conf
check line # 191 right after function color() :wink:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Oct 15, 2007 2:11 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Mon Oct 15, 2007 3:30 am    Post subject: Reply with quote

Mine:
Code:
$ 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
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1741

PostPosted: Mon Oct 15, 2007 3:35 am    Post subject: Reply with quote

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


I have one.
Code:
$ 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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3 ... 26, 27, 28, 29, 30  Next
Page 27 of 30

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum