Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

searchin for ports crashes - freebsd 4.11

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  simple boot question  
Author Message
Marcel Lautenbach

External


Since: Aug 21, 2005
Posts: 3



(Msg. 1) Posted: Sun Aug 21, 2005 8:11 am
Post subject: searchin for ports crashes - freebsd 4.11
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

Hi folks,

well, I have just installed freebsd 4.11 . Then, I read through the
freebsd handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-findin...pplicat

the siete above explains how to search for ports. So, I went to
/usr/ports and did make search lsof

I get a notcie that says something of generating INDEX, please
wait.....

And I waited, and waited..........an well. After 3 cups of coffee I
had 2 problems. First, I was toxicated with coffee *G* and my little
bsd still said:...Pleas wait.

running top showed me that the shell running make was waiting
................but waiting for what?

Well, I then kille the process and tried again, without any luck.

Can anyone help me with this issue? I would like to know, why this
does not work or what I maybe did wrong.

 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Stefan Ollermann

External


Since: May 03, 2006
Posts: 5



(Msg. 2) Posted: Sun Aug 21, 2005 10:14 am
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 21 Aug 2005 08:11:22 +0200
Marcel Lautenbach wrote:

> Hi folks,
>
> well, I have just installed freebsd 4.11 . Then, I read through the
> freebsd handbook.
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-findin...pplicat
>
> the siete above explains how to search for ports. So, I went to
> /usr/ports and did make search lsof
>
> I get a notcie that says something of generating INDEX, please
> wait.....
>
> And I waited, and waited..........an well. After 3 cups of coffee I
> had 2 problems. First, I was toxicated with coffee *G* and my little
> bsd still said:...Pleas wait.
>
> running top showed me that the shell running make was waiting
> ...............but waiting for what?

This takes a while...

> Well, I then kille the process and tried again, without any luck.
>
> Can anyone help me with this issue? I would like to know, why this
> does not work or what I maybe did wrong.

You can get the latest pre-generated version of INDEX by

# make fetchindex

in /usr/ports

Gruß Stefan

--

Fachbegriffe der IT:

38: Windows 95
Das Fortran 77 der Benutzungsoberflächen

 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 3) Posted: Sun Aug 21, 2005 1:59 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-21, Marcel Lautenbach wrote:
> Hi folks,
>
> well, I have just installed freebsd 4.11 . Then, I read through the
> freebsd handbook.
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-findin...pplicat
>
> the siete above explains how to search for ports. So, I went to
> /usr/ports and did make search lsof
>
> I get a notcie that says something of generating INDEX, please
> wait.....
>
> And I waited, and waited..........an well. After 3 cups of coffee I
> had 2 problems. First, I was toxicated with coffee *G* and my little
> bsd still said:...Pleas wait.
>
> running top showed me that the shell running make was waiting
> ...............but waiting for what?
>
> Well, I then kille the process and tried again, without any luck.
>
> Can anyone help me with this issue? I would like to know, why this
> does not work or what I maybe did wrong.

Building your own index takes a long time (hours), and you usually
don't need to do it. Update your ports tree with cvsup and then run
'make fetchindex'.

Kris
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Marcel Lautenbach

External


Since: Aug 21, 2005
Posts: 3



(Msg. 4) Posted: Sun Aug 21, 2005 8:06 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kris Kennaway schrieb:
> On 2005-08-21, Marcel Lautenbach wrote:
>
>>Hi folks,
>>
>>well, I have just installed freebsd 4.11 . Then, I read through the
>>freebsd handbook.
>>
>>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-finding-applications.html
>>
>>the siete above explains how to search for ports. So, I went to
>>/usr/ports and did make search lsof
>>
>>I get a notcie that says something of generating INDEX, please
>>wait.....
>>
>>And I waited, and waited..........an well. After 3 cups of coffee I
>>had 2 problems. First, I was toxicated with coffee *G* and my little
>>bsd still said:...Pleas wait.
>>
>>running top showed me that the shell running make was waiting
>>...............but waiting for what?
>>
>>Well, I then kille the process and tried again, without any luck.
>>
>>Can anyone help me with this issue? I would like to know, why this
>>does not work or what I maybe did wrong.
>
>
> Building your own index takes a long time (hours), and you usually
> don't need to do it. Update your ports tree with cvsup and then run
> 'make fetchindex'.
>
> Kris

O.K.: Supid question: Why does ist take so long? I mean, what is the
system exactly doing that it can take hours to generate an index?

Marcel
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Christopher Nehren

External


Since: Jun 20, 2005
Posts: 6



(Msg. 5) Posted: Sun Aug 21, 2005 8:06 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-21, Marcel Lautenbach scribbled these
curious markings:
> O.K.: Supid question: Why does ist take so long? I mean, what is the
> system exactly doing that it can take hours to generate an index?

The system has to recurse into every port's directory and
perform multiple operations on each port (that's somewhere on
the order of ~13000 * $number_of_operations). And none of those
suboperations is atomic either, calling subprograms and
subprograms thereof and so forth...

Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask questions of idiots, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Michel Talon

External


Since: Sep 05, 2003
Posts: 76



(Msg. 6) Posted: Sun Aug 21, 2005 8:06 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marcel Lautenbach wrote:
> O.K.: Supid question: Why does ist take so long? I mean, what is the
> system exactly doing that it can take hours to generate an index?
>
> Marcel

It runs recursive make to descend in the ports tree and extract the necessary
information from the Makefiles. This means forking a huge quantity of make,
etc. In the past there has been a python script doing the same job ten
times faster, but it has been retired by its author (and python is not
especially fast).


--

Michel TALON
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 7) Posted: Sun Aug 21, 2005 8:06 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-21, Michel Talon wrote:
> Marcel Lautenbach wrote:
>> O.K.: Supid question: Why does ist take so long? I mean, what is the
>> system exactly doing that it can take hours to generate an index?
>>
>> Marcel
>
> It runs recursive make to descend in the ports tree and extract the necessary
> information from the Makefiles. This means forking a huge quantity of make,
> etc. In the past there has been a python script doing the same job ten
> times faster, but it has been retired by its author (and python is not
> especially fast).

Actually that did something slightly different (incremental index
builds), and now there is a perl port that tries to do the same thing.
I've not evaluated it yet to see whether it avoids all of the pitfalls
in this problem.

Kris
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Marcel Lautenbach

External


Since: Aug 21, 2005
Posts: 3



(Msg. 8) Posted: Sun Aug 21, 2005 11:04 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michel Talon schrieb:
> Marcel Lautenbach wrote:
>
>>O.K.: Supid question: Why does ist take so long? I mean, what is the
>>system exactly doing that it can take hours to generate an index?
>>
>>Marcel
>
>
> It runs recursive make to descend in the ports tree and extract the necessary
> information from the Makefiles. This means forking a huge quantity of make,
> etc. In the past there has been a python script doing the same job ten
> times faster, but it has been retired by its author (and python is not
> especially fast).
>
>
Michael, Christopher,

thanks for your deep insight of this procedure. This gives me some
further understanding, at least Smile

So, I think it is faster to do as cvs and then fetchindex, isn't it?
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Christopher Nehren

External


Since: Jun 20, 2005
Posts: 6



(Msg. 9) Posted: Sun Aug 21, 2005 11:36 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-21, Marcel Lautenbach scribbled these
curious markings:
> Michael, Christopher,
>
> thanks for your deep insight of this procedure. This gives me some
> further understanding, at least Smile

Of course. Glad to help.

> So, I think it is faster to do as cvs and then fetchindex, isn't it?

Faster, certainly. I'm not sure if it's as up-to-date as the
`make index` strategy, as I've only used fetchindex once or
twice. A correction would be appreciated.

Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask questions of idiots, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Bill Vermillion

External


Since: Sep 11, 2004
Posts: 32



(Msg. 10) Posted: Mon Aug 22, 2005 12:25 am
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Michel Talon wrote:
>Marcel Lautenbach wrote:
>> O.K.: Supid question: Why does ist take so long? I mean, what is the
>> system exactly doing that it can take hours to generate an index?
>>
>> Marcel
>
>It runs recursive make to descend in the ports tree and extract the necessary
>information from the Makefiles. This means forking a huge quantity of make,
>etc. In the past there has been a python script doing the same job ten
>times faster, but it has been retired by its author (and python is not
>especially fast).

You can possibly speed things up by adding this line to
your /etc/make.conf file

INDEX_JOBS=8

Default in the Makefile in the /usr/ports directory is INDEX_JOBS=2

Bill

--
Bill Vermillion - bv @ wjv . com
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 11) Posted: Mon Aug 22, 2005 12:26 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-22, Bill Vermillion wrote:
> In article ,
> Michel Talon wrote:
>>Marcel Lautenbach wrote:
>>> O.K.: Supid question: Why does ist take so long? I mean, what is the
>>> system exactly doing that it can take hours to generate an index?
>>>
>>> Marcel
>>
>>It runs recursive make to descend in the ports tree and extract the necessary
>>information from the Makefiles. This means forking a huge quantity of make,
>>etc. In the past there has been a python script doing the same job ten
>>times faster, but it has been retired by its author (and python is not
>>especially fast).
>
> You can possibly speed things up by adding this line to
> your /etc/make.conf file
>
> INDEX_JOBS=8
>
> Default in the Makefile in the /usr/ports directory is INDEX_JOBS=2

This is only likely to be of significant benefit if you have your
ports tree on an extremely fast filesystem (e.g. fast SCSI disks, or
the ports tree already in RAM), and an SMP machine with 4 or more
CPUs. The main bottleneck in building INDEX is filesystem access.

Kris
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 12) Posted: Mon Aug 22, 2005 12:27 pm
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-21, Christopher Nehren wrote:
> On 2005-08-21, Marcel Lautenbach scribbled these
> curious markings:
>> Michael, Christopher,
>>
>> thanks for your deep insight of this procedure. This gives me some
>> further understanding, at least Smile
>
> Of course. Glad to help.
>
>> So, I think it is faster to do as cvs and then fetchindex, isn't it?
>
> Faster, certainly. I'm not sure if it's as up-to-date as the
> `make index` strategy, as I've only used fetchindex once or
> twice. A correction would be appreciated.

It's never more than an hour out of sync with the CVS tree, unless
INDEX is unbuildable, in which case you probably can't build it any
way you try anyway.

Kris
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Christopher Nehren

External


Since: Jun 20, 2005
Posts: 6



(Msg. 13) Posted: Tue Aug 23, 2005 2:28 am
Post subject: Re: searchin for ports crashes - freebsd 4.11 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-08-22, Kris Kennaway scribbled these
curious markings:
> On 2005-08-21, Christopher Nehren wrote:
>> A correction would be appreciated.
>
> It's never more than an hour out of sync with the CVS tree, unless
> INDEX is unbuildable, in which case you probably can't build it any
> way you try anyway.

Aha, thanks.

Best Regards,
Christopher Nehren
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask questions of idiots, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.
 >> Stay informed about: searchin for ports crashes - freebsd 4.11 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[FreeBSD-Announce] FreeBSD 5.3-RELEASE Announcement - This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig59305AECC7EFDF2CAA9A02BA Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit It is my great pleasure and privilege to announce the..

Ports and packages - About a week and a half ago I loaded FreeBSD 6.0 on my ThinkPad laptop with a 1 GHz processor. This machine is for email and web surfing (KDE), word processing (OpenOffice), and some light Java development (Eclipse)... other than that there isn't any..

FreeBSD From Scratch (ie. My Own Custom FreeBSD) -

Advice about cvsup ports-all upgrading - Hallo guys, it's going to be a long mail, I apologize for my poor english*. I'd like to have an advice about how to behave in case I want to upgrade some port because of new vulnerabilities. I'm not interested in having all my portsa always upgraded to...

ports upgrade question 4.10 stable - I am a new FreeBSD user coming from Debian Linux. I think I have finally got the upgrading process done right. I just need to know if I am missing anything or have something configured wrong. I have gotten bits and pieces from this forum, FreeBSD..
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]