[gentoo-user] how do I keep package from being updated?

2007-01-11 Thread John Covici
Hi.  I just did emerge --pretend --update --deep world, but there is a
package which I don't want to have emerge update automatically -- how
do I accomplish this?

Thanks.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Hans-Werner Hilse
Hi,

On Thu, 11 Jan 2007 09:50:31 -0500 John Covici [EMAIL PROTECTED]
wrote:

 Hi.  I just did emerge --pretend --update --deep world, but there is a
 package which I don't want to have emerge update automatically -- how
 do I accomplish this?

You can mask it in /etc/portage/package.mask, for the syntax have a
look at man 5 portage. For your case, it's basically a line like

pkg-category/package-0.0.1

assuming you want to keep 0.0.1.


-hwh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Boyd Stephen Smith Jr.
On Thursday 11 January 2007 08:50, John Covici [EMAIL PROTECTED] 
wrote about '[gentoo-user] how do I keep package from being updated?':
 Hi.  I just did emerge --pretend --update --deep world, but there is a
 package which I don't want to have emerge update automatically -- how
 do I accomplish this?

Add an appropriate atom to your /etc/portage/package.mask file.  There's a 
good section in the handbook about this, as well as it being documented in 
the various man pages installed with portage, such as man portage, man 
ebuild, and man 5 ebuild.

Very quickly:
If you have cate-gory/package-1.5.3 installed, and 
cate-gory/package-1.6.0_rc2 is available but you don't want to upgrade, 
add =cate-gory/package-1.6* to your package.mask

(If it's a -rX upgrade, or and increase in the 3rd (or later) number in the 
version, you probably want the upgrade.  Really.  The former is an ebuild 
fix that won't change the upstream version you get (so, you will almost 
never encounter upgrade issues); the later is (for most packages) a 
security or bugfix release that should maintain compatibility with 
previous versions (so, you will rarely encounter upgrade issues).)

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgpj7bcuD18k1.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread John covici
OK, thanks I will try that and see what it does.

on Thursday 01/11/2007 Hans-Werner Hilse([EMAIL PROTECTED]) wrote
  Hi,
  
  On Thu, 11 Jan 2007 09:50:31 -0500 John Covici [EMAIL PROTECTED]
  wrote:
  
   Hi.  I just did emerge --pretend --update --deep world, but there is a
   package which I don't want to have emerge update automatically -- how
   do I accomplish this?
  
  You can mask it in /etc/portage/package.mask, for the syntax have a
  look at man 5 portage. For your case, it's basically a line like
  
  pkg-category/package-0.0.1
  
  assuming you want to keep 0.0.1.
  
  
  -hwh
  -- 
  gentoo-user@gentoo.org mailing list

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread John covici
OK, I did put my php version in the /etc/portage/package.mask, but it
still wants to install a new major version -- curiously it says ebuild
-ns rather than just -n or -u.  I put the following line in there
=dev-lang/php-4.4.4-r8

which is my current version of php and emerge said
[ebuild  NS   ] dev-lang/php-5.1.6-r6  USE=berkdb cli crypt gdbm
iconv ipv6 ldap ncurses nls pcre readline reflection session spell spl
ssl truetype unicode xml zlib -adabas -apache -apache2 -bcmath
-birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp -ctype
-curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc
-empress -empress-bcs -esoob -exif -fastbuild -fdftk -filepro
-firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd
-gd-external -gmp -hardenedphp -hash -hyperwave-api -imap -informix
-inifile -interbase -iodbc -java-external -kerberos -libedit -mcve
-memlimit -mhash -ming -msql -mssql -mysql -mysqli -oci8
-oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix
-postgres -qdbm -recode -sapdb -sasl -sharedext -sharedmem -simplexml
-snmp -soap -sockets -solid -sqlite -sybase -sybase-ct -sysvipc
-threads -tidy -tokenizer -vm-goto -vm-switch -wddx -xmlreader -xmlrpc
-xmlwriter -xpm -xsl -yaz -zip

on Thursday 01/11/2007 Hans-Werner Hilse([EMAIL PROTECTED]) wrote
  Hi,
  
  On Thu, 11 Jan 2007 09:50:31 -0500 John Covici [EMAIL PROTECTED]
  wrote:
  
   Hi.  I just did emerge --pretend --update --deep world, but there is a
   package which I don't want to have emerge update automatically -- how
   do I accomplish this?
  
  You can mask it in /etc/portage/package.mask, for the syntax have a
  look at man 5 portage. For your case, it's basically a line like
  
  pkg-category/package-0.0.1
  
  assuming you want to keep 0.0.1.
  
  
  -hwh
  -- 
  gentoo-user@gentoo.org mailing list

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Neil Bothwick
On Thu, 11 Jan 2007 16:10:29 +0100, Hans-Werner Hilse wrote:

 You can mask it in /etc/portage/package.mask, for the syntax have a
 look at man 5 portage. For your case, it's basically a line like
 
 pkg-category/package-0.0.1  
 
 assuming you want to keep 0.0.1.

It would be better to use ~pkg-category/package-0.0.1. this allows
patch level updates, such as 0.0.1-r1 while not permitting an update to a
higher upstream version.

Patch level updates, -r1, -r2 etc, install the same version but with some
changes, such as security fixes.


-- 
Neil Bothwick

There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way
is to make it so complicated that there are no obvious deficiencies.
The first method is far more difficult -C.A.R. Hoare


signature.asc
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Hans-Werner Hilse
Hi,

On Thu, 11 Jan 2007 11:38:38 -0500
John covici [EMAIL PROTECTED] wrote:

 OK, I did put my php version in the /etc/portage/package.mask, but it
 still wants to install a new major version -- curiously it says ebuild
 -ns rather than just -n or -u.  I put the following line in there
 =dev-lang/php-4.4.4-r8

you don't want to mask the currently installed version (=), but rather the
versions greater () than it.

 which is my current version of php and emerge said
 [ebuild  NS   ] dev-lang/php-5.1.6-r6  USE=berkdb cli crypt gdbm
 [...]

interesting. Yes, that NS is for a New, Slotted version. I.e., PHP4
will still be on your system, so you might already stop worrying at
this point. In fact, I don't really know how to mask a version in a
different slot. I would have even expected my suggestion to do that
anyway. But this makes much more sense, because there should be a
seperate masking for each of the slots -- and it resembles the
behaviour from the profile's masks. So you might add another line to
your package.mask, following Boyd Stephen's suggestion to mask with
=:

=dev-lang/php-5.0.0



-hwh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 17:47, Neil Bothwick wrote:
 It would be better to use ~pkg-category/package-0.0.1. this allows
 patch level updates, such as 0.0.1-r1 while not permitting an update to a
 higher upstream version.

That isn't a valid atom and it plain doesn't work. Even if it did it wouldn't 
have the intended effect since it would mask -r*...

-- 
Bo Andresen


pgpeF6vSQd6T3.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 16:21, Boyd Stephen Smith Jr. wrote:
 add =cate-gory/package-1.6* to your package.mask

That too isn't a valid atom. Lose the '*'. It's only valid with '=' not '=' 
or '~'... Valid atoms are described in `man 5 ebuild`.

-- 
Bo Andresen


pgp9EzkNnmr9O.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 17:56, Hans-Werner Hilse wrote:
 I don't really know how to mask a version in a different slot. I would have
 even expected my suggestion to do that anyway. But this makes much more
 sense, because there should be a seperate masking for each of the slots --
 and it resembles the behaviour from the profile's masks.

A '' masking will indeed mask later slots. It doesn't require a mask pr. 
slot.

-- 
Bo Andresen


pgpdKXUAxXzCm.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Boyd Stephen Smith Jr.
On Thursday 11 January 2007 11:30, Bo Ørsted Andresen [EMAIL PROTECTED] 
wrote about 'Re: [gentoo-user] how do I keep package from being updated?':
 On Thursday 11 January 2007 16:21, Boyd Stephen Smith Jr. wrote:
  add =cate-gory/package-1.6* to your package.mask

 That too isn't a valid atom. Lose the '*'. It's only valid with '=' not
 '=' or '~'... Valid atoms are described in `man 5 ebuild`.

Ah, fooey, I was hoping I could mix and match, freely.  I clearly don't use 
atoms enough.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh


pgp3ip7BAsmiY.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread John covici
If I have two versions on the systems, how would apache and the cli
pick what version they are going to use?

on Thursday 01/11/2007 Hans-Werner Hilse([EMAIL PROTECTED]) wrote
  Hi,
  
  On Thu, 11 Jan 2007 11:38:38 -0500
  John covici [EMAIL PROTECTED] wrote:
  
   OK, I did put my php version in the /etc/portage/package.mask, but it
   still wants to install a new major version -- curiously it says ebuild
   -ns rather than just -n or -u.  I put the following line in there
   =dev-lang/php-4.4.4-r8
  
  you don't want to mask the currently installed version (=), but rather the
  versions greater () than it.
  
   which is my current version of php and emerge said
   [ebuild  NS   ] dev-lang/php-5.1.6-r6  USE=berkdb cli crypt gdbm
   [...]
  
  interesting. Yes, that NS is for a New, Slotted version. I.e., PHP4
  will still be on your system, so you might already stop worrying at
  this point. In fact, I don't really know how to mask a version in a
  different slot. I would have even expected my suggestion to do that
  anyway. But this makes much more sense, because there should be a
  seperate masking for each of the slots -- and it resembles the
  behaviour from the profile's masks. So you might add another line to
  your package.mask, following Boyd Stephen's suggestion to mask with
  =:
  
  =dev-lang/php-5.0.0
  
  
  
  -hwh
  -- 
  gentoo-user@gentoo.org mailing list

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Ryan Sims

On 1/11/07, John covici [EMAIL PROTECTED] wrote:

If I have two versions on the systems, how would apache and the cli
pick what version they are going to use?


I think there was just a thread on top-posting, btw.

IIRC, you pass -DPHP5 or -DPHP4 to apache in /etc/conf.d/apache
(or possibly /etc/conf.d/apache2).  As for cli, I'm not sure, I
haven't used it much.


on Thursday 01/11/2007 Hans-Werner Hilse([EMAIL PROTECTED]) wrote
  Hi,
 
  On Thu, 11 Jan 2007 11:38:38 -0500
  John covici [EMAIL PROTECTED] wrote:
 
   OK, I did put my php version in the /etc/portage/package.mask, but it
   still wants to install a new major version -- curiously it says ebuild
   -ns rather than just -n or -u.  I put the following line in there
   =dev-lang/php-4.4.4-r8
 
  you don't want to mask the currently installed version (=), but rather the
  versions greater () than it.
 
   which is my current version of php and emerge said
   [ebuild  NS   ] dev-lang/php-5.1.6-r6  USE=berkdb cli crypt gdbm
   [...]
 
  interesting. Yes, that NS is for a New, Slotted version. I.e., PHP4
  will still be on your system, so you might already stop worrying at
  this point. In fact, I don't really know how to mask a version in a
  different slot. I would have even expected my suggestion to do that
  anyway. But this makes much more sense, because there should be a
  seperate masking for each of the slots -- and it resembles the
  behaviour from the profile's masks. So you might add another line to
  your package.mask, following Boyd Stephen's suggestion to mask with
  =:
 
  =dev-lang/php-5.0.0
 
 
 
  -hwh
  --
  gentoo-user@gentoo.org mailing list

--
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list





--
Ryan W Sims
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 18:56, John covici wrote:
 If I have two versions on the systems, how would apache and the cli
 pick what version they are going to use?

Apparently there's a php-select tool [1]. And I think apache has separate init 
scripts and use flags for each slot. You should have a look at the apache 
docs at [2] too.

[1] http://www.gentoo.org/proj/en/php/php-upgrading.xml
[2] http://www.gentoo.org/doc/en/list.xml

-- 
Bo Andresen


pgpKiOopkXCe8.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread kashani

John Covici wrote:

Hi.  I just did emerge --pretend --update --deep world, but there is a
package which I don't want to have emerge update automatically -- how
do I accomplish this?

Thanks.



Assuming this is going back to the PHP thing, this will allow you to 
update to future versions of 4.x without moving to 5.0 or better.


echo =dev-lang/php-5  /etc/portage/package.mask

kashani
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Neil Bothwick
On Thu, 11 Jan 2007 18:28:51 +0100, Bo Ørsted Andresen wrote:

  It would be better to use ~pkg-category/package-0.0.1. this allows
  patch level updates, such as 0.0.1-r1 while not permitting an update
  to a higher upstream version.  
 
 That isn't a valid atom and it plain doesn't work. Even if it did it
 wouldn't have the intended effect since it would mask -r*...

I tested it before posting and it did work. It didn't mask -r*, allowing
a upgrade.


-- 
Neil Bothwick

What colour is a chameleon on a mirror?


signature.asc
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 21:32, Neil Bothwick wrote:
   It would be better to use ~pkg-category/package-0.0.1. this allows
   patch level updates, such as 0.0.1-r1 while not permitting an update
   to a higher upstream version.  
 
  That isn't a valid atom and it plain doesn't work. Even if it did it
  wouldn't have the intended effect since it would mask -r*...

 I tested it before posting and it did work. It didn't mask -r*, allowing
 a upgrade.

It doesn't work at all. Nothing gets masked. It's simply ignored:

# cat /etc/portage/package.mask
~dev-lang/php-4.4.4
# emerge -p php
[SNIP]
[ebuild  N] dev-lang/php-5.1.6-r6  USE=...

# cat /etc/portage/package.mask
dev-lang/php-4.4.4-r
# emerge -p php
[SNIP]
[ebuild  N] dev-lang/php-4.4.4-r6  USE=...

That goes for both stable and ~arch portage.


-- 
Bo Andresen


pgpG32TLg1EjY.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread John covici
Also, what did work was dev-lang/php-5 I wish there was a way to see
what it was ignoring, etc.

on Thursday 01/11/2007 Bo Ørsted Andresen([EMAIL PROTECTED]) wrote
  On Thursday 11 January 2007 21:32, Neil Bothwick wrote:
 It would be better to use ~pkg-category/package-0.0.1. this allows
 patch level updates, such as 0.0.1-r1 while not permitting an update
 to a higher upstream version.  
   
That isn't a valid atom and it plain doesn't work. Even if it did it
wouldn't have the intended effect since it would mask -r*...
  
   I tested it before posting and it did work. It didn't mask -r*, allowing
   a upgrade.
  
  It doesn't work at all. Nothing gets masked. It's simply ignored:
  
  # cat /etc/portage/package.mask
  ~dev-lang/php-4.4.4
  # emerge -p php
  [SNIP]
  [ebuild  N] dev-lang/php-5.1.6-r6  USE=...
  
  # cat /etc/portage/package.mask
  dev-lang/php-4.4.4-r
  # emerge -p php
  [SNIP]
  [ebuild  N] dev-lang/php-4.4.4-r6  USE=...
  
  That goes for both stable and ~arch portage.
  
  
  -- 
  Bo Andresen

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread kashani

John covici wrote:

Also, what did work was dev-lang/php-5 I wish there was a way to see
what it was ignoring, etc.



emerge eix
eix -pv php

kashani

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Bo Ørsted Andresen
On Thursday 11 January 2007 22:43, John covici wrote:
 Also, what did work was dev-lang/php-5 I wish there was a way to see
 what it was ignoring, etc.

An invalid atom like e.g.: =dev-lang/php-4* will make portage 2.1.2 spit 
out a warning about it being an invalid atom. I do consider the fact that it 
completely ignores ~ atoms rather than spitting out a warning to be a bug. 

In other words portage is moving towards more validation and unit tests so 
eventually it will catch all sorts of invalid input... In the mean time
`man 5 ebuild` describes valid atoms.

PS: Please stop top-posting.

-- 
Bo Andresen


pgptQW9olSqn1.pgp
Description: PGP signature


Re: [gentoo-user] how do I keep package from being updated?

2007-01-11 Thread Neil Bothwick
On Thu, 11 Jan 2007 21:43:34 +0100, Bo Ørsted Andresen wrote:

  I tested it before posting and it did work. It didn't mask -r*,
  allowing a upgrade.  
 
 It doesn't work at all. Nothing gets masked. It's simply ignored:

You're right, I didn't test very effectively. I should have just checked
the man pages. Apologies for the noise.

Portage usually complains about invalid atoms. Why did it wait until I
was about to make a prat of myself before deciding not to do so? :(


-- 
Neil Bothwick

Give a man a fish and you feed him for a day;
Teach him to use the Net and he won't bother you for weeks.


signature.asc
Description: PGP signature