Re: Updating multiple ports with portmaster

2011-03-28 Thread Doug Barton

On 03/26/2011 09:47, Doug Barton wrote:

On 3/26/2011 8:22 AM, Ron (Lists) wrote:



Is there a way to get portmaster to behave like portupgrade did and only
upgrade what needs to be upgraded?


I reserve the right not only to change my mind, but also to be wrong on 
occasion. :)  I just ran into a situation where having this option would 
be useful, so I added it to the svn version of portmaster, r220121. 
Fortunately it was not as painful as I thought it might have been.


I don't have immediate plans to cut a new release given that 3.6.1 has 
been very stable, and I have a lot of other fish to fry atm. However 
feel free to download the devel version from svn and give it a try.



Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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


Re: Updating multiple ports with portmaster

2011-03-27 Thread perryh
Doug Barton do...@freebsd.org wrote:
 On 03/26/2011 10:00, Matthew Seaman wrote:
  pkg_version -vIL= | awk '/^p5-/ { print $1 }'  | xargs portmaster

 That's a good suggestion, but if you want to use that technique, better 
 would be:  portmaster `pkg_version -vIL= | awk '/^p5-/ { print $1 }'` ...

Unless the number of ports involved is very large, either
should produce exactly the same effect.  Absent a -n or -s
switch, xargs collects up to 5000 args or a ~250KB command
line for each invocation of (in this case) portmaster.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Updating multiple ports with portmaster

2011-03-27 Thread J. Hellenthal


On Sat, 26 Mar 2011 12:47, dougb@ wrote:

On 3/26/2011 8:22 AM, Ron (Lists) wrote:

I have a questions about the use of portmaster when upgrading multiple
ports and how to correctly use wildcards.

For example, I have this from pkg_version:

p5-Digest-SHA-5.50  needs updating (port has 5.61)
p5-IO-Socket-SSL-1.38  needs updating (port has 1.39)
p5-IPC-Cmd-0.68  needs updating (port has 0.70)
p5-Math-BigInt-1.99  needs updating (port has 1.993)
p5-Module-Build-0.3607_1  needs updating (port has 0.3624)
p5-Module-CoreList-2.42  needs updating (port has 2.45)
p5-Module-Load-Conditional-0.38  needs updating (port has 0.44)
p5-Params-Check-0.26_1  needs updating (port has 0.28)
p5-Test-Harness-3.22  needs updating (port has 3.23)
p5-URI-1.56  needs updating (port has 1.58)

When I was using portupgrade, I could type...

portupgrade p5-*

...and it would upgrade only the ports that needed upgrading and
dependancies. But if I try...

portmaster p5-*

=== The following actions will be taken if you choose to proceed:
Re-install p5-Digest-SHA1-2.13
Re-install p5-IO-Compress-2.033
Re-install p5-Compress-Raw-Bzip2-2.033
Re-install p5-Compress-Raw-Zlib-2.033
Re-install p5-HTML-Tagset-3.20
Re-install p5-HTML-Parser-3.68
Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
Re-install p5-Mail-SpamAssassin-3.3.1_3
Re-install p5-Archive-Tar-1.76
Re-install p5-IO-Zlib-1.10_1
Re-install p5-IO-String-1.08
Re-install p5-Package-Constants-0.02
Re-install p5-Encode-Detect-1.01
Re-install p5-ExtUtils-CBuilder-0.2802_1,1
Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
Re-install p5-Locale-Maketext-Simple-0.21
Upgrade p5-Module-Load-Conditional-0.38 to p5-Module-Load-Conditional-0.44
Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
Re-install p5-Module-Load-0.18
Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
Re-install p5-version-0.88
Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
Install devel/p5-CPAN-Meta-YAML
Re-install p5-ExtUtils-Install-1.54
Re-install p5-ExtUtils-ParseXS-2.22.03
Install devel/p5-Module-Metadata
Install devel/p5-Perl-OSType
Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
Re-install p5-Net-DNS-0.66_1
Re-install p5-Net-IP-1.25_2
Re-install p5-IO-Socket-INET6-2.65
Re-install p5-Socket6-0.23
Re-install p5-Digest-HMAC-1.02
Re-install p5-Mail-Tools-2.07
Re-install p5-TimeDate-1.20,1
Re-install p5-NetAddr-IP-4.038
Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
Re-install p5-Net-SSLeay-1.36
Re-install p5-libwww-5.837
Upgrade p5-URI-1.56 to p5-URI-1.58
Re-install p5-YAML-Tiny-1.44
Re-install p5-Time-HiRes-1.9721,1
Re-install p5-Locale-gettext-1.05_3
Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
Re-install p5-ExtUtils-MakeMaker-6.56
Re-install p5-MIME-Base64-3.13
Re-install p5-YAML-0.72
Re-install p5-Error-0.17016
Re-install p5-Net-DNS-Resolver-Programmable-0.003
Re-install p5-Mail-SPF-2.007

...it wants to upgrade and reinstall every port that I have installed
that begins with p5-*

Is there a way to get portmaster to behave like portupgrade did and only
upgrade what needs to be upgraded?


Not directly. You could mimic the behavior using the -i option with either 
'portmaster -a' or 'portmaster p5-'. And to answer your likely followup 
question, I have no plans to add such an option. :)




Hi Doug, ...Everyone else,

Since were on the (-i) subject here.

Do you have any plans in the near future to implement a way for end-user 
to change the default questioning response from [y] to [n] ?


This would be extremely helpful to those users in these circumstances at 
what seems not that much effort to do so.



[y] makes sense when using (-a) where portmaster will only be upgrading 
what has upgrades available.


[n] makes sense when doing most anything else I can think of since its 
interactive but should be chosen by the user.



This is speaking strictly in the sense of:
=== Update portname-X.Y,Z? y/n [y]

And with the above list of ports I think I would rather hit [Return] 50 
times than [n][Return]




Thanks

--

 Regards,

 J. Hellenthal
 (0x89D8547E)
 JJH48-ARIN

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


Re: Updating multiple ports with portmaster

2011-03-27 Thread Doug Barton

On 03/27/2011 00:26, per...@pluto.rain.com wrote:

Doug Bartondo...@freebsd.org  wrote:

On 03/26/2011 10:00, Matthew Seaman wrote:

pkg_version -vIL= | awk '/^p5-/ { print $1 }'  | xargs portmaster


That's a good suggestion, but if you want to use that technique, better
would be:  portmaster `pkg_version -vIL= | awk '/^p5-/ { print $1 }'` ...


Unless the number of ports involved is very large, either
should produce exactly the same effect.  Absent a -n or -s
switch, xargs collects up to 5000 args or a ~250KB command
line for each invocation of (in this case) portmaster.


Interesting ... not sure how I got it in my mind that xargs always runs 
them one at a time, but thanks for clarifying this. :)



Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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


Re: Updating multiple ports with portmaster

2011-03-27 Thread Doug Barton

On 03/27/2011 03:07, J. Hellenthal wrote:

Hi Doug, ...Everyone else,

Since were on the (-i) subject here.

Do you have any plans in the near future to implement a way for
end-user to change the default questioning response from [y] to [n] ?


No, sorry. I think it would be very confusing to the average user for 
the default to be different in different circumstances.



This is speaking strictly in the sense of:
=== Update portname-X.Y,Z? y/n [y]

And with the above list of ports I think I would rather hit [Return] 50
times than [n][Return]


portmaster is really designed with the idea of keeping all of your ports 
up to date, not cherry-picking updates. If you have specific ports that 
you want to keep at a certain version there are at least 2 other ways 
that you can do that besides -i. I suggest that a thorough reading of 
the man page may be in order. :)



hth,

Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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


Updating multiple ports with portmaster

2011-03-26 Thread Ron (Lists)
I have a questions about the use of portmaster when upgrading multiple 
ports and how to correctly use wildcards.


For example, I have this from pkg_version:

p5-Digest-SHA-5.50 needs updating (port has 5.61)
p5-IO-Socket-SSL-1.38  needs updating (port has 1.39)
p5-IPC-Cmd-0.68needs updating (port has 0.70)
p5-Math-BigInt-1.99needs updating (port has 1.993)
p5-Module-Build-0.3607_1   needs updating (port has 
0.3624)

p5-Module-CoreList-2.42needs updating (port has 2.45)
p5-Module-Load-Conditional-0.38needs updating (port has 0.44)
p5-Params-Check-0.26_1 needs updating (port has 0.28)
p5-Test-Harness-3.22   needs updating (port has 3.23)
p5-URI-1.56needs updating (port has 1.58)

When I was using portupgrade, I could type...

portupgrade p5-*

...and it would upgrade only the ports that needed upgrading and 
dependancies.  But if I try...


portmaster p5-*

=== The following actions will be taken if you choose to proceed:
Re-install p5-Digest-SHA1-2.13
Re-install p5-IO-Compress-2.033
Re-install p5-Compress-Raw-Bzip2-2.033
Re-install p5-Compress-Raw-Zlib-2.033
Re-install p5-HTML-Tagset-3.20
Re-install p5-HTML-Parser-3.68
Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
Re-install p5-Mail-SpamAssassin-3.3.1_3
Re-install p5-Archive-Tar-1.76
Re-install p5-IO-Zlib-1.10_1
Re-install p5-IO-String-1.08
Re-install p5-Package-Constants-0.02
Re-install p5-Encode-Detect-1.01
Re-install p5-ExtUtils-CBuilder-0.2802_1,1
Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
Re-install p5-Locale-Maketext-Simple-0.21
	Upgrade p5-Module-Load-Conditional-0.38 to 
p5-Module-Load-Conditional-0.44

Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
Re-install p5-Module-Load-0.18
Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
Re-install p5-version-0.88
Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
Install devel/p5-CPAN-Meta-YAML
Re-install p5-ExtUtils-Install-1.54
Re-install p5-ExtUtils-ParseXS-2.22.03
Install devel/p5-Module-Metadata
Install devel/p5-Perl-OSType
Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
Re-install p5-Net-DNS-0.66_1
Re-install p5-Net-IP-1.25_2
Re-install p5-IO-Socket-INET6-2.65
Re-install p5-Socket6-0.23
Re-install p5-Digest-HMAC-1.02
Re-install p5-Mail-Tools-2.07
Re-install p5-TimeDate-1.20,1
Re-install p5-NetAddr-IP-4.038
Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
Re-install p5-Net-SSLeay-1.36
Re-install p5-libwww-5.837
Upgrade p5-URI-1.56 to p5-URI-1.58
Re-install p5-YAML-Tiny-1.44
Re-install p5-Time-HiRes-1.9721,1
Re-install p5-Locale-gettext-1.05_3
Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
Re-install p5-ExtUtils-MakeMaker-6.56
Re-install p5-MIME-Base64-3.13
Re-install p5-YAML-0.72
Re-install p5-Error-0.17016
Re-install p5-Net-DNS-Resolver-Programmable-0.003
Re-install p5-Mail-SPF-2.007

...it wants to upgrade and reinstall every port that I have installed 
that begins with p5-*


Is there a way to get portmaster to behave like portupgrade did and 
only upgrade what needs to be upgraded?


Thanks, Ron



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


Re: Updating multiple ports with portmaster

2011-03-26 Thread Doug Barton

On 3/26/2011 8:22 AM, Ron (Lists) wrote:

I have a questions about the use of portmaster when upgrading multiple
ports and how to correctly use wildcards.

For example, I have this from pkg_version:

p5-Digest-SHA-5.50  needs updating (port has 5.61)
p5-IO-Socket-SSL-1.38  needs updating (port has 1.39)
p5-IPC-Cmd-0.68  needs updating (port has 0.70)
p5-Math-BigInt-1.99  needs updating (port has 1.993)
p5-Module-Build-0.3607_1  needs updating (port has 0.3624)
p5-Module-CoreList-2.42  needs updating (port has 2.45)
p5-Module-Load-Conditional-0.38  needs updating (port has 0.44)
p5-Params-Check-0.26_1  needs updating (port has 0.28)
p5-Test-Harness-3.22  needs updating (port has 3.23)
p5-URI-1.56  needs updating (port has 1.58)

When I was using portupgrade, I could type...

portupgrade p5-*

...and it would upgrade only the ports that needed upgrading and
dependancies. But if I try...

portmaster p5-*

=== The following actions will be taken if you choose to proceed:
Re-install p5-Digest-SHA1-2.13
Re-install p5-IO-Compress-2.033
Re-install p5-Compress-Raw-Bzip2-2.033
Re-install p5-Compress-Raw-Zlib-2.033
Re-install p5-HTML-Tagset-3.20
Re-install p5-HTML-Parser-3.68
Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
Re-install p5-Mail-SpamAssassin-3.3.1_3
Re-install p5-Archive-Tar-1.76
Re-install p5-IO-Zlib-1.10_1
Re-install p5-IO-String-1.08
Re-install p5-Package-Constants-0.02
Re-install p5-Encode-Detect-1.01
Re-install p5-ExtUtils-CBuilder-0.2802_1,1
Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
Re-install p5-Locale-Maketext-Simple-0.21
Upgrade p5-Module-Load-Conditional-0.38 to p5-Module-Load-Conditional-0.44
Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
Re-install p5-Module-Load-0.18
Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
Re-install p5-version-0.88
Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
Install devel/p5-CPAN-Meta-YAML
Re-install p5-ExtUtils-Install-1.54
Re-install p5-ExtUtils-ParseXS-2.22.03
Install devel/p5-Module-Metadata
Install devel/p5-Perl-OSType
Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
Re-install p5-Net-DNS-0.66_1
Re-install p5-Net-IP-1.25_2
Re-install p5-IO-Socket-INET6-2.65
Re-install p5-Socket6-0.23
Re-install p5-Digest-HMAC-1.02
Re-install p5-Mail-Tools-2.07
Re-install p5-TimeDate-1.20,1
Re-install p5-NetAddr-IP-4.038
Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
Re-install p5-Net-SSLeay-1.36
Re-install p5-libwww-5.837
Upgrade p5-URI-1.56 to p5-URI-1.58
Re-install p5-YAML-Tiny-1.44
Re-install p5-Time-HiRes-1.9721,1
Re-install p5-Locale-gettext-1.05_3
Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
Re-install p5-ExtUtils-MakeMaker-6.56
Re-install p5-MIME-Base64-3.13
Re-install p5-YAML-0.72
Re-install p5-Error-0.17016
Re-install p5-Net-DNS-Resolver-Programmable-0.003
Re-install p5-Mail-SPF-2.007

...it wants to upgrade and reinstall every port that I have installed
that begins with p5-*

Is there a way to get portmaster to behave like portupgrade did and only
upgrade what needs to be upgraded?


Not directly. You could mimic the behavior using the -i option with 
either 'portmaster -a' or 'portmaster p5-'. And to answer your likely 
followup question, I have no plans to add such an option. :)



hth,

Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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


Re: Updating multiple ports with portmaster

2011-03-26 Thread b. f.
 I have a questions about the use of portmaster when upgrading multiple
  ports and how to correctly use wildcards.

  For example, I have this from pkg_version:

  p5-Digest-SHA-5.50 needs updating (port has 5.61)
  p5-IO-Socket-SSL-1.38  needs updating (port has 1.39)
  p5-IPC-Cmd-0.68needs updating (port has 0.70)
  p5-Math-BigInt-1.99needs updating (port has 1.993)
  p5-Module-Build-0.3607_1   needs updating (port has
  0.3624)
  p5-Module-CoreList-2.42needs updating (port has 2.45)
  p5-Module-Load-Conditional-0.38needs updating (port has 0.44)
  p5-Params-Check-0.26_1 needs updating (port has 0.28)
  p5-Test-Harness-3.22   needs updating (port has 3.23)
  p5-URI-1.56needs updating (port has 1.58)

  When I was using portupgrade, I could type...

  portupgrade p5-*

  ...and it would upgrade only the ports that needed upgrading and
  dependancies.  But if I try...

  portmaster p5-*

  === The following actions will be taken if you choose to proceed:
 Re-install p5-Digest-SHA1-2.13
 Re-install p5-IO-Compress-2.033
 Re-install p5-Compress-Raw-Bzip2-2.033
 Re-install p5-Compress-Raw-Zlib-2.033
 Re-install p5-HTML-Tagset-3.20
 Re-install p5-HTML-Parser-3.68
 Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
 Re-install p5-Mail-SpamAssassin-3.3.1_3
 Re-install p5-Archive-Tar-1.76
 Re-install p5-IO-Zlib-1.10_1
 Re-install p5-IO-String-1.08
 Re-install p5-Package-Constants-0.02
 Re-install p5-Encode-Detect-1.01
 Re-install p5-ExtUtils-CBuilder-0.2802_1,1
 Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
 Re-install p5-Locale-Maketext-Simple-0.21
 Upgrade p5-Module-Load-Conditional-0.38 to
  p5-Module-Load-Conditional-0.44
 Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
 Re-install p5-Module-Load-0.18
 Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
 Re-install p5-version-0.88
 Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
 Install devel/p5-CPAN-Meta-YAML
 Re-install p5-ExtUtils-Install-1.54
 Re-install p5-ExtUtils-ParseXS-2.22.03
 Install devel/p5-Module-Metadata
 Install devel/p5-Perl-OSType
 Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
 Re-install p5-Net-DNS-0.66_1
 Re-install p5-Net-IP-1.25_2
 Re-install p5-IO-Socket-INET6-2.65
 Re-install p5-Socket6-0.23
 Re-install p5-Digest-HMAC-1.02
 Re-install p5-Mail-Tools-2.07
 Re-install p5-TimeDate-1.20,1
 Re-install p5-NetAddr-IP-4.038
 Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
 Re-install p5-Net-SSLeay-1.36
 Re-install p5-libwww-5.837
 Upgrade p5-URI-1.56 to p5-URI-1.58
 Re-install p5-YAML-Tiny-1.44
 Re-install p5-Time-HiRes-1.9721,1
 Re-install p5-Locale-gettext-1.05_3
 Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
 Re-install p5-ExtUtils-MakeMaker-6.56
 Re-install p5-MIME-Base64-3.13
 Re-install p5-YAML-0.72
 Re-install p5-Error-0.17016
 Re-install p5-Net-DNS-Resolver-Programmable-0.003
 Re-install p5-Mail-SPF-2.007

  ...it wants to upgrade and reinstall every port that I have installed
  that begins with p5-*

  Is there a way to get portmaster to behave like portupgrade did and
  only upgrade what needs to be upgraded?


This is documented in the portmaster(1) manpage.  You can use -a to
update all ports that need to be updated.  To update a subset of
those, you could  (1) use -i with -a or a glob (by the way, the *
isn't needed with portmaster -- see the portmaster(1) manpage), and
respond in the negative to prompts to update or re-install those you
wish to exclude; (2) use -x with -a or a glob, to exclude certain
ports; or (3) feed portmaster a list of globs that match only those
ports that you want to be updated.  In your case, for (3), if you only
wanted to update those p5-* ports that need to be updated, but not
other ports that need to be updated, you could use something like:

pkg_version -qos p5- -l '' | xargs portmaster

Of course, since some new versions of p5-* ports may depend upon new
versions of other, non p5-* ports, updating only the p5-* ports isn't
guaranteed to work.

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


Re: Updating multiple ports with portmaster

2011-03-26 Thread Matthew Seaman
On 26/03/2011 16:47, Doug Barton wrote:
 On 3/26/2011 8:22 AM, Ron (Lists) wrote:
 I have a questions about the use of portmaster when upgrading multiple
 ports and how to correctly use wildcards.

 For example, I have this from pkg_version:

 p5-Digest-SHA-5.50  needs updating (port has 5.61)
 p5-IO-Socket-SSL-1.38  needs updating (port has 1.39)
 p5-IPC-Cmd-0.68  needs updating (port has 0.70)
 p5-Math-BigInt-1.99  needs updating (port has 1.993)
 p5-Module-Build-0.3607_1  needs updating (port has 0.3624)
 p5-Module-CoreList-2.42  needs updating (port has 2.45)
 p5-Module-Load-Conditional-0.38  needs updating (port has 0.44)
 p5-Params-Check-0.26_1  needs updating (port has 0.28)
 p5-Test-Harness-3.22  needs updating (port has 3.23)
 p5-URI-1.56  needs updating (port has 1.58)

 When I was using portupgrade, I could type...

 portupgrade p5-*

 ...and it would upgrade only the ports that needed upgrading and
 dependancies. But if I try...

 portmaster p5-*

 === The following actions will be taken if you choose to proceed:
 Re-install p5-Digest-SHA1-2.13
 Re-install p5-IO-Compress-2.033
 Re-install p5-Compress-Raw-Bzip2-2.033
 Re-install p5-Compress-Raw-Zlib-2.033
 Re-install p5-HTML-Tagset-3.20
 Re-install p5-HTML-Parser-3.68
 Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
 Re-install p5-Mail-SpamAssassin-3.3.1_3
 Re-install p5-Archive-Tar-1.76
 Re-install p5-IO-Zlib-1.10_1
 Re-install p5-IO-String-1.08
 Re-install p5-Package-Constants-0.02
 Re-install p5-Encode-Detect-1.01
 Re-install p5-ExtUtils-CBuilder-0.2802_1,1
 Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
 Re-install p5-Locale-Maketext-Simple-0.21
 Upgrade p5-Module-Load-Conditional-0.38 to
 p5-Module-Load-Conditional-0.44
 Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
 Re-install p5-Module-Load-0.18
 Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
 Re-install p5-version-0.88
 Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
 Install devel/p5-CPAN-Meta-YAML
 Re-install p5-ExtUtils-Install-1.54
 Re-install p5-ExtUtils-ParseXS-2.22.03
 Install devel/p5-Module-Metadata
 Install devel/p5-Perl-OSType
 Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
 Re-install p5-Net-DNS-0.66_1
 Re-install p5-Net-IP-1.25_2
 Re-install p5-IO-Socket-INET6-2.65
 Re-install p5-Socket6-0.23
 Re-install p5-Digest-HMAC-1.02
 Re-install p5-Mail-Tools-2.07
 Re-install p5-TimeDate-1.20,1
 Re-install p5-NetAddr-IP-4.038
 Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
 Re-install p5-Net-SSLeay-1.36
 Re-install p5-libwww-5.837
 Upgrade p5-URI-1.56 to p5-URI-1.58
 Re-install p5-YAML-Tiny-1.44
 Re-install p5-Time-HiRes-1.9721,1
 Re-install p5-Locale-gettext-1.05_3
 Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
 Re-install p5-ExtUtils-MakeMaker-6.56
 Re-install p5-MIME-Base64-3.13
 Re-install p5-YAML-0.72
 Re-install p5-Error-0.17016
 Re-install p5-Net-DNS-Resolver-Programmable-0.003
 Re-install p5-Mail-SPF-2.007

 ...it wants to upgrade and reinstall every port that I have installed
 that begins with p5-*

 Is there a way to get portmaster to behave like portupgrade did and only
 upgrade what needs to be upgraded?
 
 Not directly. You could mimic the behavior using the -i option with
 either 'portmaster -a' or 'portmaster p5-'. And to answer your likely
 followup question, I have no plans to add such an option. :)
 

pkg_version -vIL= | awk '/^p5-/ { print $1 }'  | xargs portmaster


Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Updating multiple ports with portmaster

2011-03-26 Thread Matthias Andree

Am 26.03.2011 17:58, schrieb b. f.:

I have a questions about the use of portmaster when upgrading multiple
  ports and how to correctly use wildcards.

  For example, I have this from pkg_version:

  p5-Digest-SHA-5.50needs updating (port has 5.61)
  p5-IO-Socket-SSL-1.38needs updating (port has 1.39)
  p5-IPC-Cmd-0.68needs updating (port has 0.70)
  p5-Math-BigInt-1.99needs updating (port has 1.993)
  p5-Module-Build-0.3607_1needs updating (port has
  0.3624)
  p5-Module-CoreList-2.42needs updating (port has 2.45)
  p5-Module-Load-Conditional-0.38needs updating (port has 0.44)
  p5-Params-Check-0.26_1needs updating (port has 0.28)
  p5-Test-Harness-3.22needs updating (port has 3.23)
  p5-URI-1.56needs updating (port has 1.58)

  When I was using portupgrade, I could type...

  portupgrade p5-*

  ...and it would upgrade only the ports that needed upgrading and
  dependancies.  But if I try...

  portmaster p5-*

  ===  The following actions will be taken if you choose to proceed:
 Re-install p5-Digest-SHA1-2.13
 Re-install p5-IO-Compress-2.033
 Re-install p5-Compress-Raw-Bzip2-2.033
 Re-install p5-Compress-Raw-Zlib-2.033
 Re-install p5-HTML-Tagset-3.20
 Re-install p5-HTML-Parser-3.68
 Upgrade p5-Digest-SHA-5.50 to p5-Digest-SHA-5.61
 Re-install p5-Mail-SpamAssassin-3.3.1_3
 Re-install p5-Archive-Tar-1.76
 Re-install p5-IO-Zlib-1.10_1
 Re-install p5-IO-String-1.08
 Re-install p5-Package-Constants-0.02
 Re-install p5-Encode-Detect-1.01
 Re-install p5-ExtUtils-CBuilder-0.2802_1,1
 Upgrade p5-IPC-Cmd-0.68 to p5-IPC-Cmd-0.70
 Re-install p5-Locale-Maketext-Simple-0.21
 Upgrade p5-Module-Load-Conditional-0.38 to
  p5-Module-Load-Conditional-0.44
 Upgrade p5-Module-CoreList-2.42 to p5-Module-CoreList-2.45
 Re-install p5-Module-Load-0.18
 Upgrade p5-Params-Check-0.26_1 to p5-Params-Check-0.28
 Re-install p5-version-0.88
 Upgrade p5-Module-Build-0.3607_1 to p5-Module-Build-0.3624
 Install devel/p5-CPAN-Meta-YAML
 Re-install p5-ExtUtils-Install-1.54
 Re-install p5-ExtUtils-ParseXS-2.22.03
 Install devel/p5-Module-Metadata
 Install devel/p5-Perl-OSType
 Upgrade p5-Test-Harness-3.22 to p5-Test-Harness-3.23
 Re-install p5-Net-DNS-0.66_1
 Re-install p5-Net-IP-1.25_2
 Re-install p5-IO-Socket-INET6-2.65
 Re-install p5-Socket6-0.23
 Re-install p5-Digest-HMAC-1.02
 Re-install p5-Mail-Tools-2.07
 Re-install p5-TimeDate-1.20,1
 Re-install p5-NetAddr-IP-4.038
 Upgrade p5-IO-Socket-SSL-1.38 to p5-IO-Socket-SSL-1.39
 Re-install p5-Net-SSLeay-1.36
 Re-install p5-libwww-5.837
 Upgrade p5-URI-1.56 to p5-URI-1.58
 Re-install p5-YAML-Tiny-1.44
 Re-install p5-Time-HiRes-1.9721,1
 Re-install p5-Locale-gettext-1.05_3
 Upgrade p5-Math-BigInt-1.99 to p5-Math-BigInt-1.993
 Re-install p5-ExtUtils-MakeMaker-6.56
 Re-install p5-MIME-Base64-3.13
 Re-install p5-YAML-0.72
 Re-install p5-Error-0.17016
 Re-install p5-Net-DNS-Resolver-Programmable-0.003
 Re-install p5-Mail-SPF-2.007

  ...it wants to upgrade and reinstall every port that I have installed
  that begins with p5-*

  Is there a way to get portmaster to behave like portupgrade did and
  only upgrade what needs to be upgraded?



This is documented in the portmaster(1) manpage.  You can use -a to
update all ports that need to be updated.  To update a subset of
those, you could  (1) use -i with -a or a glob (by the way, the *
isn't needed with portmaster -- see the portmaster(1) manpage), and
respond in the negative to prompts to update or re-install those you
wish to exclude; (2) use -x with -a or a glob, to exclude certain
ports; or (3) feed portmaster a list of globs that match only those
ports that you want to be updated.  In your case, for (3), if you only
wanted to update those p5-* ports that need to be updated, but not
other ports that need to be updated, you could use something like:

pkg_version -qos p5- -l '' | xargs portmaster

Of course, since some new versions of p5-* ports may depend upon new
versions of other, non p5-* ports, updating only the p5-* ports isn't
guaranteed to work.


portmaster takes care of that, except if there are downstream 
dependencies that stop working with updated ports on your list -- but 
that's rather rarely observed and usually documented in 
/usr/ports/UPDATING -- but even then, portmaster -a -i would likely help.


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


Re: Updating multiple ports with portmaster

2011-03-26 Thread b. f.
Matthias Andree wrote:
...
Is there a way to get portmaster to behave like portupgrade did and
only upgrade what needs to be upgraded?
 
 
  This is documented in the portmaster(1) manpage.  You can use -a to
  update all ports that need to be updated.  To update a subset of
  those, you could  (1) use -i with -a or a glob (by the way, the *
  isn't needed with portmaster -- see the portmaster(1) manpage), and
  respond in the negative to prompts to update or re-install those you
  wish to exclude; (2) use -x with -a or a glob, to exclude certain
  ports; or (3) feed portmaster a list of globs that match only those
  ports that you want to be updated.  In your case, for (3), if you only
  wanted to update those p5-* ports that need to be updated, but not
  other ports that need to be updated, you could use something like:
 
  pkg_version -qos p5- -l '' | xargs portmaster
 
  Of course, since some new versions of p5-* ports may depend upon new
  versions of other, non p5-* ports, updating only the p5-* ports isn't
  guaranteed to work.

 portmaster takes care of that, except if there are downstream

It tries to take care of it, and usually succeeds for (1) and (3).
But not necessarily for (2), if one of the ports that should be
updated is excluded.

 dependencies that stop working with updated ports on your list -- but
 that's rather rarely observed and usually documented in
 /usr/ports/UPDATING -- but even then, portmaster -a -i would likely help.

Yes, that's something that should also be taken into consideration.
Rarely, maybe, but more often than one would like -- and sometimes
undocumented.

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


Re: Updating multiple ports with portmaster

2011-03-26 Thread Doug Barton

On 03/26/2011 10:00, Matthew Seaman wrote:

pkg_version -vIL= | awk '/^p5-/ { print $1 }'  | xargs portmaster


That's a good suggestion, but if you want to use that technique, better 
would be:  portmaster `pkg_version -vIL= | awk '/^p5-/ { print $1 }'` so 
that you can take advantage of the internal caching that portmaster does.



Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

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