Hi, I run my own pkgng repo (via poudriere) and it seems to work great. However, I've got more questions... - when PHP got updated to 5.3.21 (from 5.3.20), all the other stuff that depends on it (PECL-*, pear-*) got rebuilt, too. (In my ports-tree, I just imported the update of PHP and nothing else) - but on the client, when I ran pkg upgrade, only the php-packages got upgraded. Is that correct? Shouldn't it also update the PECL and pear packages? - how do I re-install all packages? I will soon upgrade some systems from 8.3 to 9.1 and I want to reduce the number of systems I build packages for. Before pkgng, I would just pkg_delete everything then re-install and do a diff on the output of pkg_info |cut -f 1 -d " ". I though there might be an easier way... - is there a make.conf switch to completely disable pkg_* or do I have to remove the binaries myself? Will they re-appear after a freebsd-update -r or even after a simple freebsd-update? If I install postfix, there is a switch in rc.conf do disable it completely and I think there should be something similar. Best Regards, Rainer
On Mon, Jan 28, 2013 at 11:51:20AM +0100, Rainer Duffner wrote:> Hi, > > I run my own pkgng repo (via poudriere) and it seems to work great. > However, I've got more questions...Glad to hear it works well :)> > - when PHP got updated to 5.3.21 (from 5.3.20), all the other stuff > that depends on it (PECL-*, pear-*) got rebuilt, too. > (In my ports-tree, I just imported the update of PHP and nothing > else) > - but on the client, when I ran pkg upgrade, only the php-packages got > upgraded. Is that correct? Shouldn't it also update the PECL and pear > packages?What happen is that poudriere always want to make sure that you have sane packages, so what it does is rebuilding everything that depends on something that has been upgraded, so that it always have working packages and do not fall into the pcre/png/$pickyourfavorite problem when shlib are bumped and not all the need revision bump has be done. pkg itself does not care about that and trust the revision number to only what as changed is really updated. So force updating everything that depends on php a simple pkg install -fR php should do it correctly for you.> - how do I re-install all packages? I will soon upgrade some systems > from 8.3 to 9.1 and I want to reduce the number of systems I build > packages for. Before pkgng, I would just pkg_delete everything then > re-install and do a diff on the output of pkg_info |cut -f 1 -d " ". > I though there might be an easier way...pkg upgrade -f will upgrade everything. to avoid you to shoot yourself when upgrading from 8.3 to 9.1 we also provide a pkg-static binary so that even if pkg itself is linked against libraries that has disappeared in 9.1 you can still reisntall everything.> - is there a make.conf switch to completely disable pkg_* or do I have > to remove the binaries myself? Will they re-appear after a > freebsd-update -r or even after a simple freebsd-update? If I install > postfix, there is a switch in rc.conf do disable it completely and I > think there should be something similar.WITHOUT_PKGTOOLS will remove all the pkg_* tools if you are building world, but nothing like this in binary upgrade like freebsd-update what you can do is manually rm /usr/sbin/pkg_* regards, Bapt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130128/828cb64d/attachment.sig>
Am 28.01.2013 um 18:31 schrieb Glen Barber <gjb at FreeBSD.org>:> On Mon, Jan 28, 2013 at 06:28:02PM +0100, Rainer Duffner wrote: >> I go from PERL 5.10 to PERL 5.16, for example and it complains that >> perl5.16 conflicts with perl5.10... >> >> This I needed, too: >> >> pkg set -o long/perl5.10:lang/perl5.16 >> pkg remove perl >> pkg set -o devel/pkg-config:devel/pkgconf >> pkg remove -f pkg-config >> > > Hmm, you should not have needed to remove perl or pkg-config. They > should have been upgraded as any other package. >I tried it without and it said it conflicted. It wanted to install perl5.16, without doing anything to 5.10. Maybe it is because I already had PERL_VERSION=5.16.2 in /etc/make.conf? I still have a couple of those to upgrade. I can send pkg_info etc. and the commands I ran from the next server on Wednesday night.
I just wanted to add that when I today went about upgrading a computer I had a very similar thing happen (with pkg-1.0.6 on 9.1-RELEASE): The new version of the package reported conflicts with the old one. Best regards Andreas On Mon, Jan 28, 2013 at 7:59 PM, Rainer Duffner <rainer at ultra-secure.de>wrote:> > Am 28.01.2013 um 18:31 schrieb Glen Barber <gjb at FreeBSD.org>: > > > On Mon, Jan 28, 2013 at 06:28:02PM +0100, Rainer Duffner wrote: > >> I go from PERL 5.10 to PERL 5.16, for example and it complains that > >> perl5.16 conflicts with perl5.10... > >> > >> This I needed, too: > >> > >> pkg set -o long/perl5.10:lang/perl5.16 > >> pkg remove perl > >> pkg set -o devel/pkg-config:devel/pkgconf > >> pkg remove -f pkg-config > >> > > > > Hmm, you should not have needed to remove perl or pkg-config. They > > should have been upgraded as any other package. > > > > > I tried it without and it said it conflicted. It wanted to install > perl5.16, without doing anything to 5.10. > Maybe it is because I already had PERL_VERSION=5.16.2 in /etc/make.conf? > > I still have a couple of those to upgrade. > I can send pkg_info etc. and the commands I ran from the next server on > Wednesday night. > > > > > > _______________________________________________ > freebsd-stable at freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" >
On Jan 28, 2013, at 1:59 PM, Rainer Duffner <rainer at ultra-secure.de> wrote:> > Am 28.01.2013 um 18:31 schrieb Glen Barber <gjb at FreeBSD.org>: > >> On Mon, Jan 28, 2013 at 06:28:02PM +0100, Rainer Duffner wrote: >>> I go from PERL 5.10 to PERL 5.16, for example and it complains that >>> perl5.16 conflicts with perl5.10... >>> >>> This I needed, too: >>> >>> pkg set -o long/perl5.10:lang/perl5.16 >>> pkg remove perl >>> pkg set -o devel/pkg-config:devel/pkgconf >>> pkg remove -f pkg-config >>> >> >> Hmm, you should not have needed to remove perl or pkg-config. They >> should have been upgraded as any other package. >> > > > I tried it without and it said it conflicted. It wanted to install perl5.16, without doing anything to 5.10.The lang/perl5.10 and lang/perl5.16 ports are separate ports that are marked in their respective Makefiles as conflicting (because they install files into common places). Perl 5.16 is not an "upgrade" of Perl 5.10 in the standard ports sense. That is why both the Makefile and pkgng will complain if you try and install both (e.g., installing Perl 5.16 when Perl 5.10 is still installed). If you want to switch to lang/perl5.16 from lang/perl5.10 you could follow a procedure like that outlined in the 20120630 entry of /usr/ports/UPDATING. Cheers, Paul.