Re: How to mass recompile broken packages?

2010-07-30 Thread Volodymyr Kostyrko

30.07.2010 17:04, Unga wrote:

Ok, the portupgrade process was not fully automated, I had to manually compile 
few.

Two packages still get listed in the rebuild file, I removed them and 
recompiled, but still get listed. One of the packages is firefox, but the 
firefox works well. Therefore, I conclude my broken packages recompilation is 
satisfactory.


This is possible. You probably need to recheck your system one more time.

For example let's have 3 libs. Lib A needs Lib B and Lib B needs Lib C. 
If Lib C vanishes and Lib A is not linked with it for the first run 
everything would be fine. But if during the run Lib B gets upgraded and 
old version vanishes Lib A gets broken.


--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-30 Thread Unga
--- On Thu, 7/29/10, Volodymyr Kostyrko  wrote:

> From: Volodymyr Kostyrko 
> Subject: Re: How to mass recompile broken packages?
> To: "Unga" 
> Cc: freebsd-questions@freebsd.org
> Date: Thursday, July 29, 2010, 11:00 PM
> 29.07.2010 17:31, Unga wrote:
> >>> I'm using FreeBSD 8.1 on i386 machine.
> >>>
> >>> I have upgraded a package using portmanager,
> but the
> >> upgrade seems not successful.
> >>>
> >>> The required package is upgraded but all
> packages
> >> depend on the upgraded package were not
> recompiled.
> >>>
> >>> I have two questions regarding this:
> >>> 1. How to list all packages that are broken
> now?
> >>>
> >>> 2. How to mass recompile all broken packages?
> >>
> >> You will need to install libchk from ports. After
> that:
> >>
> >> libchk | grep '^Unresolvable' | sed 's|.* in: ||'
> | xargs
> >> -n1 pkg_info
> >> -W | sed 's|.*by package ||' | sort -u | grep -v
> '^[?]$'
> >>> rebuild
> >>
> >> You'll get 'rebuild' file listing all packages
> with broken
> >> binaries. You
> >> can use portmaster or portupgrade on it.
> >>
> >
> > Hi
> >
> > Thank you very much for the reply.
> >
> > I have 63 packages effected.
> >
> > How do I sort the "rebuild" file in the dependency
> order because the first line itself the compilation fails. I
> used "portupgrade -f pkg".
> 
> You don't need that. portupgrade can handle it. Just give
> it the whole list:
> 
> portupgrade -f `cat rebuild`
> 

Ok, the portupgrade process was not fully automated, I had to manually compile 
few.

Two packages still get listed in the rebuild file, I removed them and 
recompiled, but still get listed. One of the packages is firefox, but the 
firefox works well. Therefore, I conclude my broken packages recompilation is 
satisfactory.

Thank you for all those who helped me.

Best regards
Unga



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-29 Thread RW
On Thu, 29 Jul 2010 01:25:38 -0700 (PDT)
Unga  wrote:

> Hi all
> 
> I'm using FreeBSD 8.1 on i386 machine.
> 
> I have upgraded a package using portmanager, but the upgrade seems
> not successful.
> 
> The required package is upgraded but all packages depend on the
> upgraded package were not recompiled.

I'm guessing you told portmanager to update a specific package. In
that case  it will just update that package and what it depends on.

The normal way to use  portmanager is to let it update everything. If
you want to update piecemeal I would suggest using something else. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-29 Thread Unga
--- On Thu, 7/29/10, Volodymyr Kostyrko  wrote:

> From: Volodymyr Kostyrko 
> Subject: Re: How to mass recompile broken packages?
> To: "Unga" 
> Cc: freebsd-questions@freebsd.org
> Date: Thursday, July 29, 2010, 11:00 PM
> 29.07.2010 17:31, Unga wrote:
> >>> I'm using FreeBSD 8.1 on i386 machine.
> >>>
> >>> I have upgraded a package using portmanager,
> but the
> >> upgrade seems not successful.
> >>>
> >>> The required package is upgraded but all
> packages
> >> depend on the upgraded package were not
> recompiled.
> >>>
> >>> I have two questions regarding this:
> >>> 1. How to list all packages that are broken
> now?
> >>>
> >>> 2. How to mass recompile all broken packages?
> >>
> >> You will need to install libchk from ports. After
> that:
> >>
> >> libchk | grep '^Unresolvable' | sed 's|.* in: ||'
> | xargs
> >> -n1 pkg_info
> >> -W | sed 's|.*by package ||' | sort -u | grep -v
> '^[?]$'
> >>> rebuild
> >>
> >> You'll get 'rebuild' file listing all packages
> with broken
> >> binaries. You
> >> can use portmaster or portupgrade on it.
> >>
> >
> > Hi
> >
> > Thank you very much for the reply.
> >
> > I have 63 packages effected.
> >
> > How do I sort the "rebuild" file in the dependency
> order because the first line itself the compilation fails. I
> used "portupgrade -f pkg".
> 
> You don't need that. portupgrade can handle it. Just give
> it the whole list:
> 
> portupgrade -f `cat rebuild`
> 

Thank you very much again. The compilation is now progressing, it may take a 
while to complete. I'll update the you and the list on the outcome.

Best regards
Unga






  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-29 Thread Volodymyr Kostyrko

29.07.2010 17:31, Unga wrote:

I'm using FreeBSD 8.1 on i386 machine.

I have upgraded a package using portmanager, but the

upgrade seems not successful.


The required package is upgraded but all packages

depend on the upgraded package were not recompiled.


I have two questions regarding this:
1. How to list all packages that are broken now?

2. How to mass recompile all broken packages?


You will need to install libchk from ports. After that:

libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs
-n1 pkg_info
-W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$'

rebuild


You'll get 'rebuild' file listing all packages with broken
binaries. You
can use portmaster or portupgrade on it.



Hi

Thank you very much for the reply.

I have 63 packages effected.

How do I sort the "rebuild" file in the dependency order because the first line itself 
the compilation fails. I used "portupgrade -f pkg".


You don't need that. portupgrade can handle it. Just give it the whole list:

portupgrade -f `cat rebuild`

--
Sphinx of black quartz judge my vow.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-29 Thread Unga
--- On Thu, 7/29/10, Volodymyr Kostyrko  wrote:

> From: Volodymyr Kostyrko 
> Subject: Re: How to mass recompile broken packages?
> To: "Unga" 
> Cc: freebsd-questions@freebsd.org
> Date: Thursday, July 29, 2010, 7:34 PM
> 29.07.2010 11:25, Unga wrote:
> > Hi all
> >
> > I'm using FreeBSD 8.1 on i386 machine.
> >
> > I have upgraded a package using portmanager, but the
> upgrade seems not successful.
> >
> > The required package is upgraded but all packages
> depend on the upgraded package were not recompiled.
> >
> > I have two questions regarding this:
> > 1. How to list all packages that are broken now?
> >
> > 2. How to mass recompile all broken packages?
> 
> You will need to install libchk from ports. After that:
> 
> libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs
> -n1 pkg_info 
> -W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$'
> > rebuild
> 
> You'll get 'rebuild' file listing all packages with broken
> binaries. You 
> can use portmaster or portupgrade on it.
> 

Hi

Thank you very much for the reply.

I have 63 packages effected.

How do I sort the "rebuild" file in the dependency order because the first line 
itself the compilation fails. I used "portupgrade -f pkg".

Best regards
Unga




  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to mass recompile broken packages?

2010-07-29 Thread Volodymyr Kostyrko

29.07.2010 11:25, Unga wrote:

Hi all

I'm using FreeBSD 8.1 on i386 machine.

I have upgraded a package using portmanager, but the upgrade seems not 
successful.

The required package is upgraded but all packages depend on the upgraded 
package were not recompiled.

I have two questions regarding this:
1. How to list all packages that are broken now?

2. How to mass recompile all broken packages?


You will need to install libchk from ports. After that:

libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs -n1 pkg_info 
-W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$' > rebuild


You'll get 'rebuild' file listing all packages with broken binaries. You 
can use portmaster or portupgrade on it.


--
Sphinx of black quartz judge my vow.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"