Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-06 Thread Matt Thyer
On Feb 6, 2012 3:50 AM, Radio młodych bandytów radiomlodychbandy...@o2.pl
wrote:

 I wonder if I'm the only one thinking about a decentralised package
management
 First, a decentralised transport layer. Torrents are faster and more
reliable than servers.
 Second, decentralised management when anybody can upload a port directly
into the system.

 --
 Twoje radio


Such a system would need to support traditional protocols such as FTP 
HTTP due to many corporate environments not allowing anything else.

I'm all for a distributed system but you can't forget the corporate users.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-06 Thread Radio młodych bandytów

On 2012-02-06 08:40, Matt Thyer wrote:


On Feb 6, 2012 3:50 AM, Radio młodych bandytów 
radiomlodychbandy...@o2.pl mailto:radiomlodychbandy...@o2.pl wrote:


 I wonder if I'm the only one thinking about a decentralised package 
management
 First, a decentralised transport layer. Torrents are faster and more 
reliable than servers.
 Second, decentralised management when anybody can upload a port 
directly into the system.


 --
 Twoje radio


Such a system would need to support traditional protocols such as FTP 
 HTTP due to many corporate environments not allowing anything else.


I'm all for a distributed system but you can't forget the corporate users.

True. While some corporations are moving to P2P software distribution 
already, it's a long way before it becomes standard.


--
Twoje radio

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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-05 Thread Radio młodych bandytów
I wonder if I'm the only one thinking about a decentralised package 
management
First, a decentralised transport layer. Torrents are faster and more 
reliable than servers.
Second, decentralised management when anybody can upload a port directly 
into the system.


--
Twoje radio

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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-05 Thread Chris Rees
2012/2/5 Radio młodych bandytów radiomlodychbandy...@o2.pl:
 I wonder if I'm the only one thinking about a decentralised package
 management
 First, a decentralised transport layer. Torrents are faster and more
 reliable than servers.
 Second, decentralised management when anybody can upload a port directly
 into the system.

You're not, but no-one has written one for FreeBSD yet

/hint

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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-04 Thread Justin Hibbits

Hi Baptiste,

On Jan 30, 2012, at 7:39 AM, Baptiste Daroussin wrote:


Hi,

pkgng has just reached the beta phase, and has now found its way to  
the

ports tree (disabled by default).

snip everything down


I'll file an issue on github as well, but wanted to note it here,  
too.  Seems pkgng segfaults reproducibly on powerpc, at least as pkg- 
static so it fails to even install.  I'll post the backrace I got in  
the github issue.


- Justin

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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-02 Thread Conrad J. Sabatier
On Mon, 30 Jan 2012 13:39:30 +0100
Baptiste Daroussin b...@freebsd.org wrote:

 Hi,
 
 pkgng has just reached the beta phase, and has now found its way to
 the ports tree (disabled by default).

[remainder of announcement snipped for brevity]

A feature request:

I've long wished that pkg_info -g would set the return value to
indicate whether or not a package's plist contained any errors, rather
than always returning 0.  This would be extremely helpful when using
pkg_info in a script.

Thanks!

-- 
Conrad J. Sabatier
conr...@cox.net
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-02-01 Thread Andrey Zonov

On 30.01.2012 16:39, Baptiste Daroussin wrote:

Hi,

pkgng has just reached the beta phase, and has now found its way to the
ports tree (disabled by default).

1/ Why pkgng?


Hi,

What about pkgng support in tinderbox?

--
Andrey Zonov

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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-31 Thread Baptiste Daroussin
On Wed, Feb 01, 2012 at 09:23:35AM +0400, Andrey Zonov wrote:
 On 30.01.2012 16:39, Baptiste Daroussin wrote:
  Hi,
 
  pkgng has just reached the beta phase, and has now found its way to the
  ports tree (disabled by default).
 
  1/ Why pkgng?
  
 Hi,
 
 What about pkgng support in tinderbox?
 

beat and I are working on it, just some typos left to figure out, should be
there pretty much soon.

regards,
Bapt


pgpNG6QZgFMQC.pgp
Description: PGP signature


[HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Baptiste Daroussin
Hi,

pkgng has just reached the beta phase, and has now found its way to the
ports tree (disabled by default).

1/ Why pkgng?


Our current pkg_install tools are showing their age, are hard to maintain,
and they lack features:

- missing metadata
- no upgrade support
- no repository support
- no fine dependency tracking
- no modern binary package management
- and many others

Having old tools makes it hard to improve the ports infrastructure, as a
result lots of hacks have found their way into the different Mk/bsd.*.mk
files to work around pkg_install limitations plus there are lots of hacks
in the packages metadata itself such as @comment which are not comments,
and so forth.

We have people writing tools to improve the situation (portmaster and
portupgrade to name two), but they are limited by and can become quite
complicated to maintain because of the pkg_install limitations.

2/ What it is?
--

It is a tool that is designed to replace pkg_install and provide modern
features to advance package management on FreeBSD.

It has been done with compatibility in mind.  Most of the ports tree are
able to build on pkgng without modification (21500 successful packages is
the highest pkgng score so far).  The missing ones will be easily fixed
with pkgng in ports.

It has been done with ease of migration in mind.  It is easy to migrate
from pkg_install to pkgng.  (Please note that going backwards is not
possible.)

It has been done with FreeBSD features in mind: it supports chroot, jails,
rcng, etc.

It has been done with scripting features in mind: 'pkg query' will allow
you to query almost everything from the pkgng database in a script friendly
way.

It has been done with improvement in mind: it doesn't require a privileged
account to create packages with root files in it; it is already able to
package from a stage/fakeroot/name_it_like_you_want directory; it is also
able to fake the package creation to directly install the package from that
fake/stage/whatever directory.

It has been done with human readability in mind: the new metadata is
stored in YAML format; the plist keywords can be extended with YAML (for
the ports).

It has been our thinking that the pkg binary is not able to please
everyone's needs, so it has been written on top of a library which can be
used by any other third party tools.  (Think about packagekit, or ruby
binding for portupgrade for example, or any other usage like these).

pkgng is the result of my long studies and reflection about packaging
(studying what is done elsewhere: apt/dpkg, yum/rpm, pacman, aix, solaris,
netbsd, openbsd) and how to have something that tries to take the good
ideas from them, but tries not to take the *over engineered* complicated
parts. And most importantly, tries to do it the FreeBSD way: which means
it should work with the ports tree as-is (and help improve it in the future).

3/ Roadmap
--

We plan a very long beta phase with lots of beta versions, released as
often as possible to ease testing and help improve the tool as much as
possible.

The goal, now that we are in beta is to not break anything for users, which
means that pkgng will be able to safely upgrade itself.  (No real breakage
occurred during the alpha phase; expect even less in beta.)

Most of the big features are implemented, so now if you have a
revolutionary idea that breaks everything, it won't find its way into pkgng
1.0.  You can still provide it for pkgng 2.0.

1.0 is not revolutionary because of the way that it is full of workarounds
to allow compatibility with the current ports tree.  At some future time
(TBD), once we have dropped pkg_install support, things will be able to
move forward faster.

pkgng will live in the ports tree, so it will evolve with the
infrastructure, allowing us not to have to wait for the EOL of a release to
be able to move forward to new features.

The library API is currently not considered stable; it will be designated
stable as of pkgng 2.0.  Therefore, if you are going to use the library in
a third party project, you can expect some breakage from time to time.  Of
course, we will avoid breakage as much as possible.

The plan is to have pkgng 1.0 ready and rock solid for 10.0-RELEASE and
9.1-RELEASE.

The more testers/contributors we have, the faster we can go, and the faster
we go, the faster we can drop pkg_install and improve our port
infrastructure.

(Note: due to limitations in FreeBSD 7.x, we do not plan to backport
there.)

4/ pkgng itself


pkg add: add packages the old way (should be avoided by users)

pkg audit: audit the installed packages for vulnerabilities

pkg autoremove: interactively propose packages to be removed that were
installed automatically (as a dependency) and not depended on anymore

pkg check: check the installed packages database, prompting for
inconsistency and proposing to try to fix it

pkg clean: cleanup the package cache from binary installation (from
repositories)

pkg 

Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread wen heping
Cool !

wen

2012/1/30 Baptiste Daroussin b...@freebsd.org

 Hi,

 pkgng has just reached the beta phase, and has now found its way to the
 ports tree (disabled by default).

 1/ Why pkgng?
 

 Our current pkg_install tools are showing their age, are hard to maintain,
 and they lack features:



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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Baptiste Daroussin
On Mon, Jan 30, 2012 at 08:43:58AM -0800, Jos Backus wrote:
 Hi Baptiste,
 
 This looks great!
 
 On Mon, Jan 30, 2012 at 4:39 AM, Baptiste Daroussin b...@freebsd.orgwrote:
 
 
  Sample output of pkg info:
 
  $ pkg info -f libreoffice:
  Name   : libreoffice
  Version: 3.4.4
  Origin : editors/libreoffice
  Prefix : /usr/local
  Categories : editors
  Licenses   : MPL  LGPL3
  Maintainer : off...@freebsd.org
  WWW: http://www.libreoffice.org/
  Comment: Full integrated office productivity suite
  Options:
 DEBUG: off
 GNOME: off
 GTK: on
 JAVA: off
 KDE4: off
 MMEDIA: off
 PYUNO: off
 SDK: off
 SYSTRAY: off
 WEBDAV: off
  Flat size  : 319 MB
  Description:
  LibreOffice is the free power-packed Open Source personal productivity
  suite for
  Windows, Macintosh and Linux, that gives you six feature-rich applications
  for
  all your document production and data processing needs: Writer, Calc,
  Impress,
  Draw, Math and Base.
 
  WWW:http://www.libreoffice.org/
 
 
 
 
 I haven't checked if  `pkg query' can do this yet, but how about emitting
 the above output in YAML as well? It would still be very readable for
 humans.
 
 Anyway, I'll try this out.
 

No pkg query can't do this, but this would be a nice addition (something like
raw output for info or query) I do like the idea, please create an issue on the
github :))

regards,
Bapt


pgpF4zg1P4Uiy.pgp
Description: PGP signature


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Jos Backus
Hi Baptiste,

This looks great!

On Mon, Jan 30, 2012 at 4:39 AM, Baptiste Daroussin b...@freebsd.orgwrote:


 Sample output of pkg info:

 $ pkg info -f libreoffice:
 Name   : libreoffice
 Version: 3.4.4
 Origin : editors/libreoffice
 Prefix : /usr/local
 Categories : editors
 Licenses   : MPL  LGPL3
 Maintainer : off...@freebsd.org
 WWW: http://www.libreoffice.org/
 Comment: Full integrated office productivity suite
 Options:
DEBUG: off
GNOME: off
GTK: on
JAVA: off
KDE4: off
MMEDIA: off
PYUNO: off
SDK: off
SYSTRAY: off
WEBDAV: off
 Flat size  : 319 MB
 Description:
 LibreOffice is the free power-packed Open Source personal productivity
 suite for
 Windows, Macintosh and Linux, that gives you six feature-rich applications
 for
 all your document production and data processing needs: Writer, Calc,
 Impress,
 Draw, Math and Base.

 WWW:http://www.libreoffice.org/




I haven't checked if  `pkg query' can do this yet, but how about emitting
the above output in YAML as well? It would still be very readable for
humans.

Anyway, I'll try this out.

Jos
-- 
Jos Backus
jos at catnook.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Jos Backus
On Mon, Jan 30, 2012 at 9:10 AM, Baptiste Daroussin b...@freebsd.orgwrote:

No pkg query can't do this, but this would be a nice addition (something
 like
 raw output for info or query) I do like the idea, please create an issue
 on the
 github :))

 regards,

Bapt


I just created issue #128, thanks Baptiste!

Cheers,
Jos
-- 
Jos Backus
jos at catnook.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Baptiste Daroussin
On Mon, Jan 30, 2012 at 09:21:37AM -0800, Jos Backus wrote:
 On Mon, Jan 30, 2012 at 9:10 AM, Baptiste Daroussin b...@freebsd.orgwrote:
 
 No pkg query can't do this, but this would be a nice addition (something
  like
  raw output for info or query) I do like the idea, please create an issue
  on the
  github :))
 
  regards,
 
 Bapt
 
 
 I just created issue #128, thanks Baptiste!
 
 Cheers,
 Jos

The time you did  that I implemented it :)

pkg info -R will be in beta2.

Thank you,
regards,
Bapt


pgpHeVkA9PKhI.pgp
Description: PGP signature


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Yuri Pankov
On Mon, Jan 30, 2012 at 01:39:30PM +0100, Baptiste Daroussin wrote:
[...] 
 to use pkgng:
 
 echo WITH_PKGNG=yes  /etc/make.conf
 make -C /usr/ports/ports-mgmt/pkg install clean
 
 Some links: 
 http://wiki.FreeBSD.org/pkgng
 http://github.com/pkgng/pkgng
 
 Note that on github you can find a patch for portmaster (against 3.10)

The patch seems to have typos in it (usr_pkgng):
https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L514
https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L528

And most stupid question for today - how do I actually tell portmaster
to use pkgng after applying the patch?


Thanks,
Yuri


pgpgyEl5n3IwB.pgp
Description: PGP signature


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Alberto Villa
On Tuesday 31 January 2012 00:52:25 Alberto Villa wrote:
 Set use_pkgng=yes in /usr/local/etc/portmaster.conf.

Sorry, portmaster.rc.
-- 
Alberto Villa, FreeBSD committer avi...@freebsd.org
http://people.FreeBSD.org/~avilla

The government of the United States is not in any sense founded on the
Christian Religion
-- George Washington


signature.asc
Description: This is a digitally signed message part.


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Alberto Villa
On Monday 30 January 2012 23:34:59 Yuri Pankov wrote:
 The patch seems to have typos in it (usr_pkgng):
 https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L514
 https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L528

Please, take the patch from here:
https://github.com/xzhavilla/pkgng/blob/master/ports/portmaster.patch

It should be pulled into the main repository soon.

 And most stupid question for today - how do I actually tell portmaster
 to use pkgng after applying the patch?

Set use_pkgng=yes in /usr/local/etc/portmaster.conf.
-- 
Alberto Villa, FreeBSD committer avi...@freebsd.org
http://people.FreeBSD.org/~avilla

Depend on the rabbit's foot if you will,
but remember, it didn't help the rabbit.
-- R. E. Shay


signature.asc
Description: This is a digitally signed message part.


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Alberto Villa
On Tuesday 31 January 2012 00:52:25 Alberto Villa wrote:
 On Monday 30 January 2012 23:34:59 Yuri Pankov wrote:
  The patch seems to have typos in it (usr_pkgng):
  https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L514
  https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L528
 
 Please, take the patch from here:
 https://github.com/xzhavilla/pkgng/blob/master/ports/portmaster.patch
 
 It should be pulled into the main repository soon.

Just a quick note to say that I pushed some updates (now it works with 
portmaster 3.11 *only*) which have yet to be checked by pkgng masters, so, 
unless you want to test the new version, please get it from here:
https://github.com/xzhavilla/pkgng/blob/64ec7f352964b186b08aaa6b480afce8da625cb4/ports/portmaster.patch
-- 
Alberto Villa, FreeBSD committer avi...@freebsd.org
http://people.FreeBSD.org/~avilla

Heisenberg may have slept here.


signature.asc
Description: This is a digitally signed message part.


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Jos Backus
On Mon, Jan 30, 2012 at 9:32 AM, Baptiste Daroussin b...@freebsd.orgwrote:

 On Mon, Jan 30, 2012 at 09:21:37AM -0800, Jos Backus wrote:
  On Mon, Jan 30, 2012 at 9:10 AM, Baptiste Daroussin b...@freebsd.org
 wrote:
 
  No pkg query can't do this, but this would be a nice addition (something
   like
   raw output for info or query) I do like the idea, please create an
 issue
   on the
   github :))
  
   regards,
 
  Bapt
  
 
  I just created issue #128, thanks Baptiste!
 
  Cheers,
  Jos

 The time you did  that I implemented it :)

 pkg info -R will be in beta2.


Merci beaucoup :)

Salut,
Jos


 Thank you,
 regards,
 Bapt




-- 
Jos Backus
jos at catnook.com
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Julian Elischer

On 1/30/12 4:39 AM, Baptiste Daroussin wrote:

Hi,

pkgng has just reached the beta phase, and has now found its way to the
ports tree (disabled by default).

1/ Why pkgng?


the name sucks though
it would be good to fix it before it's built in everywhere.

like windows NT, which it is no longer NT.


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


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Baptiste Daroussin
On Mon, Jan 30, 2012 at 10:16:00PM -0800, Julian Elischer wrote:
 On 1/30/12 4:39 AM, Baptiste Daroussin wrote:
  Hi,
 
  pkgng has just reached the beta phase, and has now found its way to the
  ports tree (disabled by default).
 
  1/ Why pkgng?
  
 the name sucks though
 it would be good to fix it before it's built in everywhere.
 
 like windows NT, which it is no longer NT.
 

Well if you have better proposition, pkgng is just for now a code name :)
the binary itself the library and the port are named simply pkg.

bsd.pkgng.mk remain pkgng because when we will have pkg_install dead it will be
merged into bsd.port.mk

regards,
Bapt


pgpGEeTAvb7HD.pgp
Description: PGP signature


Re: [HEADSUP][CFT] pkgng beta1 is out

2012-01-30 Thread Baptiste Daroussin
On Tue, Jan 31, 2012 at 03:27:20AM +0100, Alberto Villa wrote:
 On Tuesday 31 January 2012 00:52:25 Alberto Villa wrote:
  On Monday 30 January 2012 23:34:59 Yuri Pankov wrote:
   The patch seems to have typos in it (usr_pkgng):
   https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L514
   https://github.com/pkgng/pkgng/blob/master/ports/portmaster.patch#L528
  
  Please, take the patch from here:
  https://github.com/xzhavilla/pkgng/blob/master/ports/portmaster.patch
  
  It should be pulled into the main repository soon.
 
 Just a quick note to say that I pushed some updates (now it works with 
 portmaster 3.11 *only*) which have yet to be checked by pkgng masters, so, 
 unless you want to test the new version, please get it from here:
 https://github.com/xzhavilla/pkgng/blob/64ec7f352964b186b08aaa6b480afce8da625cb4/ports/portmaster.patch
 -- 
 Alberto Villa, FreeBSD committer avi...@freebsd.org
 http://people.FreeBSD.org/~avilla
 
 Heisenberg may have slept here.

This has been merged thank you very much, portmaster 3.11 seems to be full
working for me.

regards,
Bapt


pgpptPCPZ7Ywi.pgp
Description: PGP signature