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 ... 6, 7, 8 ... 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
St. Joe
Apprentice
Apprentice


Joined: 13 Apr 2005
Posts: 242
Location: USA

PostPosted: Sat Jun 04, 2005 5:23 pm    Post subject: Reply with quote

hielvc wrote:
Heres the script It has four options -h/help , -b/build , -p [ pretend] and -r/resume.

What did I do wrong??

Code:
# sys-build
/usr/bin/sys-build: line 199: syntax error: unexpected end of file
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sun Jun 05, 2005 5:14 pm    Post subject: Reply with quote

Here is my suggestion. I wouldnt put this in /usr/bin or /usr/local/bin at this
time. I would put it and basesys-build.lst in /root or a directory in /root. To
run it " cd directory && sh sys-build.sh -b " or to see what it thinks its gonna do
" cd directory && sh sys-build.sh -p ". "-pb " does the same as " -p ". Why,
because this is a work in progress and I dont like putting basesys-build.lst in
/usr/bin or /usr/local/bin. Yes you can edit the script to change the name of
basesys-build.lst and its location.


Ok cut and pasted the sys-build.sh and it worked. Did you use an editor or did
you use a word processor, abiword kde_do_all OpenOffice_Word ? For those who arent
aware of this for a program you need to use kate, gedit, nano, vi ,vim ,gvim,
scite, nedit and/or joe, these are editors. Anyway Ill post a link today to a tar
file of sys-build.sh and basesys-build.lst.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Sun Jun 05, 2005 7:06 pm    Post subject: Reply with quote

Hey hielvc,
Forgive me for asking this, but I'm a little confused as to how I properly run this script. I mean I followed your instructions on page one, I downloaded the latest version, then I pasted it into my editor, etc...etc....but I'm not getting anything. I was just wondering if you could point me in the right direction on how to get this script running correctly?? Any advice would be much appreciated, thanx
_________________
Legalize It
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sun Jun 05, 2005 8:23 pm    Post subject: Reply with quote

Which script ?
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Sun Jun 05, 2005 9:55 pm    Post subject: Reply with quote

...emwrap.sh... :)
_________________
Legalize It
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sun Jun 05, 2005 10:56 pm    Post subject: Reply with quote

emwrap.sh -suDp ==> emerge system -uDp The -p is the same as -p in emerge PRETEND shows you what its going to do, but doesnt do it.
emwrap.sh -suD ==> emerge system -uD will not build any of the TC items
emwrap.sh -suDtp ==> emerge system -uDp but TC items only, wont build anything but the TC items that have updates. gcc and binutils and their config files only.( Depends on which build chain the item falls in.) Used with "p" it shows what it will build. -w stands for world. So
emwrap.sh -wuDp is a world update. Now if you want to do the TC update and any other files to be updated "-b " , both, it builds the TC items first then the other files. Now if you want rebuild the whole shooting match "-e" , --emptytree, if used -t rebuilds the entire TC, with -b the TC and system or world depending on if you used -ste or -sbe or -wet or -web and this works to -ebs.

If emwrap.sh doesnt run period then try, in the same directory that you put it " sh emwrap.sh " and you should get the help print out. If that works then you need to "chmod 777 emwrap.sh ". Hope that helps.
_________________
An A-Z Index of the Linux BASH command line


Last edited by hielvc on Sat Jun 11, 2005 4:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sun Jun 05, 2005 11:04 pm    Post subject: Reply with quote

Posted links to basesys-build.sys and sys-build.sh at the top of page 1.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Mon Jun 06, 2005 5:24 am    Post subject: Reply with quote

Well hielvc,
I opened the script up in nano and then I saved it under /usr/bin/emwrap.sh, then I opened up eterm and issued the command
Code:
 # sh emwrap.sh -suD

and everything seems to be running smooth now. Now I understand that this command takes care of my system minus the Tool Chain, but I was wondering if I wanted to do my World files minus the TC, would I just substitute -suD for -wuD?
_________________
Legalize It
Back to top
View user's profile Send private message
tabascoz
n00b
n00b


Joined: 14 May 2003
Posts: 45
Location: Rio de Janeiro

PostPosted: Mon Jun 06, 2005 5:10 pm    Post subject: Reply with quote

Hi hielvc

hielvc wrote:

Ok pretend shows what is goin to happen, -b/build actually builds things, duh. -r/resume is for use if the script dies in an ebuild in You need to manually use " emerge =category/package " and any other magic to build the program that failded and then " sys-build.sh resume/ or -r " to start with the next package in the list. I havent test this myself but the die function works :lol:


Thank's for the script , i have used it, and get an error compiling fontconfig, emerged manually it and tryed to run sys-build.sh -r and nothing happens. I try to run it again and received the following error:

Code:

machine ~ # ./sys-build.sh -r
rm: cannot remove `build.lst': No such file or directory
rm: cannot remove `wrld.lst': No such file or directory
rm: cannot remove `auto': No such file or directory
rm: cannot remove `dbfiles': No such file or directory
machine ~ #


Is that option working in your computer or i messed up with something?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Tue Jun 07, 2005 12:50 am    Post subject: Reply with quote

Its a bug Dang it. Ill try to get it fixed tonight . The only way around it is to copy "buildsys-build.lst to basesys-build.org and then open up basesys-build.lst in an editor and delete everthing thats been built and then restart sys-build.sh. Then " cp basesys-build.org basesys-build.lst ".
_________________
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 Jun 07, 2005 2:20 am    Post subject: Reply with quote

Ok the -r or resume in sys-build.sh is fixed and is now posted and updated on the download link.

It works but the total count when you restart is off, it gives the original total but if you check out what its building youll see it isnt starting wtih portage. Oh if you wonder why its first its to get that complianing whining prog outta da way :wink:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
tabascoz
n00b
n00b


Joined: 14 May 2003
Posts: 45
Location: Rio de Janeiro

PostPosted: Tue Jun 07, 2005 3:57 am    Post subject: Reply with quote

Thanks Hielvc!

i will try it now :D
Back to top
View user's profile Send private message
Naveg
n00b
n00b


Joined: 20 May 2005
Posts: 73

PostPosted: Thu Jun 09, 2005 1:03 am    Post subject: Reply with quote

Hey,

I found this through the updating after a 1/3 install page...and i'm wondering: what's the difference between the two provided scripts...and what does each do
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Fri Jun 10, 2005 3:05 am    Post subject: Reply with quote

tcupdate.sh and emwrap.sh do basicly the same thing. Tcudate.sh is not being maintaned at the moment. I think that emwrap.sh does a more complete job of rebuilding the entire system and then world.

sys-build.sh is new and once fully tacked down will be used in place of the current emwrap.sh -db.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Naveg
n00b
n00b


Joined: 20 May 2005
Posts: 73

PostPosted: Fri Jun 10, 2005 7:58 pm    Post subject: Reply with quote

will this tell me what its going to update and ask if i wish to continue?
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sat Jun 11, 2005 4:18 pm    Post subject: Reply with quote

See 9 post up.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
southpaw
Guru
Guru


Joined: 11 Mar 2005
Posts: 375
Location: "Americas Toilet"(So.FL.)

PostPosted: Wed Jun 22, 2005 10:11 am    Post subject: Reply with quote

hey hielvc,
Something weird has been happening every time I use "sh emwrap.sh -suD", this is what I've been getting...
Code:
to "rm -r /tmp/emwrap"

kde-base/kdelibs-3.3.2-r9
kde-base/kdewebdev-3.3.2-r2
x11-themes/crystal-0.9.2
<=x11-themes/gnome-themes-2.8.2
(is
blocking
x11-themes/gtk-engines-2.6.3)
<=x11-themes/gnome-themes-2.8.2
(is
blocking
x11-themes/gtk-engines-2.6.3)
kde-base/kdelibs-3.3.2-r9
kde-base/kdewebdev-3.3.2-r2
gnome-base/gnome-vfs-2.10.0-r2
x11-themes/crystal-0.9.2
kde-base/kdelibs-3.3.2-r9
kde-base/kdewebdev-3.3.2-r2
gnome-base/gnome-vfs-2.10.0-r2
x11-themes/crystal-0.9.2
kde-base/kdelibs-3.3.2-r9
gnome-base/gnome-vfs-2.10.0-r2
x11-themes/crystal-0.9.2
gnome-base/gnome-vfs-2.10.0-r2
kde-base/kdelibs-3.3.2-r9
x11-themes/crystal-0.9.2
gnome-base/gnome-vfs-2.10.0-r2
kde-base/kdelibs-3.3.2-r9
kde-base/kdebase-3.3.2-r3
x11-themes/crystal-0.9.2
mother21 southpaw #   

...do you know what this means?
_________________
Legalize It
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Wed Jun 22, 2005 1:48 pm    Post subject: Reply with quote

Yes its a standard " emerge message ". Basically pkg1 requires a specfic usually higher version of pkg2 before it can install. In this case both progs gnome-themes and gtk-engines are blocking each other. , so you have to remove the progs useing " emerge --unmerge prog1 prog2 " then continue with your update and the newer versions will be installed. Whenever you do this do a dry run " emerge --unmerge .......... -p " first.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Thu Jun 23, 2005 11:22 pm    Post subject: Re: An emerge wrapper for more correctly building the toolch Reply with quote

Hielvc I am confuse with two of your posts. I have posted them below. My question is do we need the two scripts on page 6 if we do what you told segin to do in the first post below or do we still need to use the two scripts on page 6 to deal with lib problem? Thanks for your time and effort.


Posted: Thu Jun 23, 2005 11:43 am Post subject:
hielvc wrote:


segin First set up your CFLAGS then try " gcc-config -l " to see which if any gcc-is selected. It will have a star besides it. In your case if you have gcc-3.3.? and gcc-3.4.4 " gcc-config 5 " should select gcc-3.4.4. Then get An emerge wrapper for more correctly building the toolchain . What you all will want to do is an " emwrap.sh -set && emewrap.sh -se ". This builds thw TC more correctly and then the system files . If when that completes do " emwrap.sh -seb " which rebuilds the the TC and all system files. Taking care of the libary prob.

Dont waste your time just doing an "emerge system -e && emerge system -e" unl;ess your goiing to do the 2nd half " emerge world -e && emerge world -e "




hielvc wrote:
Added new script that only rebuilds the " system programs" in such an order, it is
based on the run time libs, that it only needs to be done once. The build order is still in testing. Its on page 6
Get sys-build.sh and basesys-build.lst (You need both of these files.)

Update:This script does not do the entire job yet. It helps with the TC but it does not address the problem yet of the libraries.
If you have a program, prog3, that builds against 2 libraries lib1 and lib2 from other programs, then if they havent been updated
and prog3 is,then you might have problems. If lib1 and/or lib2 get updated by the normal "emerge world -uD" or emwrap.sh prog3
could break.



.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Fri Jun 24, 2005 7:22 am    Post subject: Reply with quote

First choice get sys-build.sh and basesys-build.lst and emwrap.sh. Then
Code:
echo "<=/sys-devel/gcc-3.3*" >> /etc/portage/package.mask  # prevents further updateing of gcc-3.3.?
gcc-config -l  #check which gcc and select the right one.
sys-build.sh && emwrap.sh -se   # This nails down the TC and should clean up the system libraries
emwrap.sh -r && emwrah.sh -r    # This rebuilds the world files only and by doing it twice should take care
                                #of the world libs.


2nd choice
Code:
 echo "<=/sys-devel/gcc-3.3*" >> /etc/portage/package.mask  # prevents further updateing of gcc-3.3.?
gcc-config -l  #check which gcc and select the right one.
emwrap.sh -seb && emwrap.sh -seb   # builds the TC  and all sys files then does it a second time.
emwrap.sh -r && emwrap.sh -r    # This rebuilds the world files only and by doing it twice should take care
                                #of the world libs

_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Fri Jun 24, 2005 12:47 pm    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Fri Jun 24, 2005 5:47 pm    Post subject: Reply with quote

If you see this yourself, hielvc, you may recall helping me out on another thread yesterday, regarding gcc-config internal logic...

I'm here now because i've started from scratch with a variation on Bob P's Stage 1/3 install, hopefully utilising 'emwrap.sh' :D The reasons for my using a Stage 1 install have been made redundant by the changes in 2005.0, as i now know... :oops:

I've downloaded 'emwrap.sh version 3.0.2', & i have a couple of questions for you, & any other readers who can help, before i "light the blue touch-paper":-

First, the 'verbose' option doesn't appear to work, as it would with 'emerge'. My impression from the 'help' is that it should be available, which i would love, as i'm an avid user of '-pv' :roll:

Second, your script & Bob P's Guide for 2005.0 & GCC-3.4.4 have differing opinions about whether or not 'libstdc++-v3' constitutes an integral component of the toolchain. I'd like to hear the reasoning behind this...

Lastly, as we speak i have not done the initial toolchain-upgrade, & before running the script to do so, i'd like to clarify whether i'd be best advised to use Bob P's suggested 'emerge gcc-config glibc binutils libstdc++-v3 gcc' first, then run the script, by which method i could use conservative FLAGS while the 3.3.5 compiler is building the new one, then go crazy once i've switched to 3.4.4 :twisted:

Any & all help will be enormously appreciated... :wink:

EDIT: Here's something that caused me to raise an eyebrow... After my previous, screwy install, i saved all of the source tarballs that were downloaded during the completed 'emerge -e system', yet when i just ran 'emerge -pv gcc-config glibc binutils libstdc++-v3 gcc', i still needed to download 23Mb for 'libstdc++-v3'... Could that be where everything went tits up before. :?:

EDIT2: I may have discovered something about the previous install - can i draw your attention to this post without being too cheeky?
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Jun 24, 2005 9:08 pm    Post subject: Reply with quote

gcc 3.4.3 used to pull in libstdc++-v3 as a dependency. gcc 3.4.4 doesn't. there's your answer.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


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

PostPosted: Sat Jun 25, 2005 12:53 am    Post subject: Reply with quote

1. I happen to find out the "v" option wasnt working myself last night. After some thought I removed it, as between the output of emwrap + -v there would be to much cluter. It would be easier to run run " emerge -v " AND I wouldnt have to worry about filtering all that gaaabage out. Oh posted new Version 3.0.4 removeing -v, and the script now cleans up after it self now.

2 Thanks Bob, you Jackass :)

3 The primary difference useing "emwrap.sh -set" and the guide is that since --emptytree says everthing needs to be rebuilt it builds linux-headers glibc gcc-config binutils-config binutils gcc glibc binutils gcc. I did the same thing about 5 months ago and I just used Bobs one liner for that first rebuild. Then I set up CFLAGS and USE and then I used emwrap. <Begin Rant> Why, because "emerge system -e" still builds the TC ass bakwards.
    [ebuild N ] sys-devel/patch-2.5.9-r1
    [ebuild N ] sys-libs/zlib-1.2.2
    [ebuild N ] dev-python/python-fchksum-1.7.1
    [ebuild N ] sys-apps/sandbox-1.2.9
    [ebuild N ] sys-libs/gpm-1.20.1-r4
    [ebuild N ] sys-libs/ncurses-5.4.20050319
    [ebuild N ] app-shells/bash-3.0-r11
    [ebuild N ] sys-devel/gnuconfig-20050602
    [ebuild N ] sys-libs/readline-5.0-r2
    [ebuild N ] sys-apps/diffutils-2.8.7-r1
    [ebuild N ] sys-devel/binutils-config-1.8-r3
    [ebuild N ] sys-devel/binutils-2.16.1
    [ebuild N ] sys-devel/m4-1.4.3
    [ebuild N ] sys-devel/bison-2.0
    [ebuild N ] sys-apps/sed-4.1.4
    [ebuild N ] sys-devel/gcc-config-1.3.11-r3
    [ebuild N ] sys-apps/texinfo-4.8
    [ebuild N ] sys-devel/gcc-3.4.4
    [ebuild N ] sys-libs/libstdc++-v3-3.3.4
    [ebuild N ] sys-kernel/linux-headers-2.6.11-r2
    [ebuild N ] sys-libs/glibc-2.3.5
    [ebuild N ] dev-java/java-config-1.2.11-r1
    [ebuild N ] dev-java/blackdown-jre-1.4.2.02
    [ebuild N ] app-arch/unzip-5.52

First 24 lines of "emerge system -e". The tc build order
Quote:
zlib, ncurses, bash, readline, binutils, gcc, linux-headers glibc

Hey Bob or moacha why dont you make a oneliner that builds the TC that way :?: :lol: Because its totally wrong and if a person hasnt updated for 4 to 6 months it could easily break their system. The thing is until you present it this way you dont realize just how dangerous and wrong it is. The other files I listed are either run time deps of glibc and/or important progs for the system. The only reason that it works is because of the TC oneliner that you do before it. <end rant> The other thing about this that its supose to 1 nail down your TC, it doesnt, and rebuild everything with your "nailed down TC". What is really curious is that it seems to work. That begs the question of HOW and WHY which is what I'm addressing in a rewrite of the front page of this thread.

So you could use " emwrap.sh -seb" which builds TC twice and then emerges everything everything else. or I would do this
Code:

emerge linux-headers glibc binutils gcc && emwrap -se
This nails down the TC and rebuilds the rest of the system files with it.

Off to look at your other post and then I have to finish the front page rewrite that goes into more depth about the "emerge system..system..world ..world" bull dinkle :!:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
taipan67
l33t
l33t


Joined: 04 Dec 2004
Posts: 866
Location: England (i'm told...)

PostPosted: Sat Jun 25, 2005 3:24 am    Post subject: Reply with quote

Cheers hielvc, i've posted some interesting reading here - i'd greatly appreciate your insight... :roll:
_________________
"Anyone who goes to see a psychiatrist should have their head examined!"
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 ... 6, 7, 8 ... 28, 29, 30  Next
Page 7 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