Re: pkg (aka pkgng) 1.0 released

2012-10-15 Thread Bryan Drewery
On 10/14/2012 4:56 PM, Bryan Drewery wrote:
 On 8/30/2012 10:43 AM, John Nielsen wrote:
 Portupgrade doesn't remove the pkgdb.db.lock reliably.
 Portupgrade doesn't handle stale lock files (just waits indefinitely for a 
 nonexistent process to finish). A big problem when combined with the above.
 
 I have not run into these issues. Do you have any more information on
 how to reproduce?

I hit this today.

I'm tracking the issue here:

https://github.com/pkgtools/pkgtools/issues/39

Regards,
Bryan
___
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: pkg (aka pkgng) 1.0 released

2012-10-14 Thread Bryan Drewery
On 8/30/2012 10:43 AM, John Nielsen wrote:
 Portupgrade doesn't remove the pkgdb.db.lock reliably.
 Portupgrade doesn't handle stale lock files (just waits indefinitely for a 
 nonexistent process to finish). A big problem when combined with the above.

I have not run into these issues. Do you have any more information on
how to reproduce?

Thanks,
Bryan
___
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: pkg (aka pkgng) 1.0 released

2012-10-14 Thread Bryan Drewery
On 8/30/2012 10:56 AM, John Nielsen wrote:
 Running ps in another terminal shows pkg query %n-%v. Since the actual pkg 
 is now gone, I suspect this is really /usr/sbin/pkg. I further suspect that 
 it's waiting for y/n input (whether to install the binary pkg) on its 
 nonexistent stdin somewhere. I killed it (pkg) and portupgrade seemed to 
 finish normally.

This waiting is the bootstrapper. Can you see if this is still an issue?

It should be fixed by r239663 and r239664, which were fulled MFC'd to
9-STABLE, 9.1, and 8-STABLE now.

http://svn.freebsd.org/changeset/base/239663
http://svn.freebsd.org/changeset/base/239664


-- 
Regards,
Bryan Drewery
bdrewery@freenode/EFNet
___
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: pkg (aka pkgng) 1.0 released

2012-09-08 Thread Baptiste Daroussin
On Tue, Sep 04, 2012 at 10:53:43PM +0200, Patrick Lamaiziere wrote:
 Le Thu, 30 Aug 2012 16:19:39 +0200,
 Baptiste Daroussin b...@freebsd.org a écrit :
 
 Hello,
 
  After 2 years of development (first commit Tue Sep 7 2010), more
  than 2000 commits, 43 different contibutors.  The pkgng team is proud
  to release pkg-1.0!
 
 Hourrah! Many thanks.
 
 Finally, how the nvidia-driver issue has been solved?
 
 Regards.
 ___
 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

Basically by reverting the logic,
None of mesa/nvidia provides libGL.so.1, but .nvidia/libGL.so.1 and equivalent
for mesa. post-install is taking care of putting the right libGL.so.1 and
pre-install takes care of cleaning up as needed.

http://svnweb.freebsd.org/ports?view=revisionrevision=303429

for details.

regards,
Bapt


pgpUOsZAZc015.pgp
Description: PGP signature


Re: pkg (aka pkgng) 1.0 released

2012-09-04 Thread Patrick Lamaiziere
Le Thu, 30 Aug 2012 16:19:39 +0200,
Baptiste Daroussin b...@freebsd.org a écrit :

Hello,

 After 2 years of development (first commit Tue Sep 7 2010), more
 than 2000 commits, 43 different contibutors.  The pkgng team is proud
 to release pkg-1.0!

Hourrah! Many thanks.

Finally, how the nvidia-driver issue has been solved?

Regards.
___
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: pkg (aka pkgng) 1.0 released

2012-08-31 Thread Alexander Pyhalov

Hello.
Could I ask one stupid question?
So, I've installed pkg from ports. Added WITH_PKGNG=yes to make.conf.
Built some packages with make package-recursive to use as common 
repository for several systems.


Now if I wish to update pkg, what should I do?
So, for example, I'll make portsnap fetch  portsnap update...
But could I make install pkg port after deinstalling it?
As I remember, portmaster do it in the same way: backup  deinstall  
install...


On 08/30/2012 18:19, Baptiste Daroussin wrote:

Hi all,

Since Julien Laffaye and I started pkgng lots of things has happened and here we
are now.


--
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University
___
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: pkg (aka pkgng) 1.0 released

2012-08-31 Thread Chris Rees
On 31 August 2012 15:26, Alexander Pyhalov a...@rsu.ru wrote:
 Hello.
 Could I ask one stupid question?
 So, I've installed pkg from ports. Added WITH_PKGNG=yes to make.conf.
 Built some packages with make package-recursive to use as common
 repository for several systems.

 Now if I wish to update pkg, what should I do?
 So, for example, I'll make portsnap fetch  portsnap update...
 But could I make install pkg port after deinstalling it?
 As I remember, portmaster do it in the same way: backup  deinstall 
 install...

Yes, have a look at ports-mgmt/pkg;

.if !exists(${LOCALBASE}/sbin/pkg)
PKG_BIN=${WRKSRC}/pkg-static/pkg-static
.endif

pkgng uses the pkg-static binary that is built to do the installation etc.

Chris
___
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: pkg (aka pkgng) 1.0 released

2012-08-31 Thread Alexander Pyhalov

Thank you, Baptiste and other for your work on pkgng. It's amazing.
I've got local repository up and running in less then an hour.

The only inconvenience is a necessity of bootstrapping clients. I've 
just installed pkg*tbz package from ftp.freebsd.org and run pkg2ng. I'm 
sure it could be done more transparent.


On 08/30/2012 18:19, Baptiste Daroussin wrote:

Hi all,

Since Julien Laffaye and I started pkgng lots of things has happened and here we
are now.



--
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University
___
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


pkg (aka pkgng) 1.0 released

2012-08-30 Thread Baptiste Daroussin
Hi all,

Since Julien Laffaye and I started pkgng lots of things has happened and here we
are now.

After 2 years of development (first commit Tue Sep 7 2010), more than 2000
commits, 43 different contibutors.  The pkgng team is proud to release pkg-1.0!

Before going further I would like to thanks any one that has been involved in
pkgng providing code: Alberto Villa, Andrej Zverev, Andrey Zonov, Arthur
Gautier, Ashish SHUKLA, Beat Gaetzi, Brad Davis, Bryan Drewery, Chris Rees,
Craig Rodrigues, Daniel Shahaf, David Forsythe, David Naylor, Eitan Adler,
Florent Thoumie, Frederic Culot, Garrett Cooper, Glen Barber, Jonathan Anderson,
Koop Mast, Lars Engels, Joffrey Lassignardie, Marco Steinbach, Marin Atanasov
Nikolov, Matthew Seaman, Maxim Ignatenko, Michael Brune, Philippe Pepiot, Pietro
Cerutti, Rolf Grossmann, Roman Naumann, Sofian Brabez, Sunpoet Po-Chuan Hsieh,
Toni Ylenius, Will Andrews, Yuri Pankov

There are also some people I would like to thanks in particular:
- Will Andrews, who has been the first to join the project after the first
presentation at BSDCan 2010.

- Jilles Tjoelker, who has been continuously reviewing commit, spotted mistake,
provided advices.

- Matthew Seaman and Bryan Drewery who have become two of the most active
developers in a very short time and have improved pkgng a lot!

- Marin Atanasov Nikolov, who has been working heavily on multirepository 
support,
providing continuous integration environement, and many more.

- All the portmgr from prior my election as member of that team, they invited us
to BSDCan to present our early version of pkgng (which was a really early
version :D), they trusted in pkgng and motivated us a lot!

Thanks to all the testers/reviewers, early adopters.

So,

1/ Why pkg?


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.

2/ What it is?
--

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

The ports tree is already able to transparently switch to pkgng by default by
adding WITH_PKGNG=yes to your make.conf

It provides a pkg2ng tool to help converting from an old installation to a new
one.

Test repositories are available on http://pkgbeta.freebsd.org/ (I try to update
them as fast as I can)

It will live forever in the ports tree (with a binary bootstrap in 9 and 10)

Third party tools
-

Tools supporting natively pkgng
  - ports-mgmt/portupgrade-devel (soon the main portupgrade will support)
  - ports-mgmt/pkg_cutleaves
  - ports-mgmt/poudriere
  - ports-mgmt/poudriere-devel
  - ports-mgmt/portdowngrade
  - ports-mgmt/tinderbox-devel (support can be improved)
  - ports-mgmt/portbuilder
  - sysutils/bsdstats

Tools supporting pkgng via a patch (I hope it will be reviewed/integrated soon)
  - ports-mgmt/portmaster 
(https://github.com/pkgng/pkgng/blob/master/ports/patch-portmaster-pkgng)

Tools being worked on (or I heard people are interested) :
  - salt support (in version 0.10) 
http://docs.saltstack.org/en/latest/ref/states/all/salt.states.pkgng.html and 
http://docs.saltstack.org/en/latest/ref/modules/all/salt.modules.pkgng.html
  - cfengine support (http://unix-heaven.org/cfengine3-freebsd-pkgng)
  - puppet support: (https://github.com/xaque208/puppet-pkgng)
  - ruby bindings: (https://github.com/baloo/libpkg-ruby/)
  - PackageKit

Howto:
  - Continuous integration and package building: 
http://unix-heaven.org/continuous-package-building-with-poudriere-and-jenkins
  - Maintaining your own pkgng repository with tinderbox: 
http://www.glenbarber.us/2012/06/11/Maintaining-Your-Own-pkgng-Repository.html

Links
-
  - http://wiki.freebsd.org/PkgPrimer
  - http://wiki.freebsd.org/pkgng
  - https://github.com/pkgng/pkgng/blob/master/FAQ.md

Please report bugs in the github issue tracker:
  - http://github.com/pkgng/pkgng

Please note the http://pkgbeta.freebsd.org is updated on best effort, there is 
still a lot of work needed, to be able to automatically and update on regular 
basis the package sets.

regards,
Bapt


pgpZNAPH67X3q.pgp
Description: PGP signature


Re: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
Thanks to everyone involved.

I've been lightly testing pkg for a little while, but I still mainly use ports. 
This announcement prompted me to switch from portupgrade to portupgrade-devel 
(20120827 version) to see how it works with PKGNG. I encountered a couple 
issues:

Portupgrade doesn't remove the pkgdb.db.lock reliably.
Portupgrade doesn't handle stale lock files (just waits indefinitely for a 
nonexistent process to finish). A big problem when combined with the above.
Running portupgrade pkg failed. It stalled trying to unregister the package 
installation after the old pkg was removed. I didn't dig too deeply but it 
seems like a dependency chicken-and-egg problem.

I was able to reinstall using /usr/sbin/pkg, and I also tested make  make 
deinstall  make reinstall of ports-mgmt/pkg successfully, so it may just be 
a portupgrade issue.

JN

On Aug 30, 2012, at 8:19 AM, Baptiste Daroussin b...@freebsd.org wrote:

 After 2 years of development (first commit Tue Sep 7 2010), more than 2000
 commits, 43 different contibutors.  The pkgng team is proud to release 
 pkg-1.0!
 
 [...]
 
 Tools supporting natively pkgng
  - ports-mgmt/portupgrade-devel (soon the main portupgrade will support)
 [...]

___
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: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 9:43 AM, John Nielsen li...@jnielsen.net wrote:

 Thanks to everyone involved.
 
 I've been lightly testing pkg for a little while, but I still mainly use 
 ports. This announcement prompted me to switch from portupgrade to 
 portupgrade-devel (20120827 version) to see how it works with PKGNG. I 
 encountered a couple issues:
 
 Portupgrade doesn't remove the pkgdb.db.lock reliably.
 Portupgrade doesn't handle stale lock files (just waits indefinitely for a 
 nonexistent process to finish). A big problem when combined with the above.
 Running portupgrade pkg failed. It stalled trying to unregister the package 
 installation after the old pkg was removed. I didn't dig too deeply but it 
 seems like a dependency chicken-and-egg problem.

I tried this again so I could provide some more details. This is what shows in 
the terminal when it stalls:
---  Backing up the old version
---  Uninstalling the old version
USING PKGNG
---  Deinstalling 'pkg-1.0'
---  Preserving /usr/local/lib/libpkg.so.0 as 
/usr/local/lib/compat/pkg/libpkg.so.0
The following packages will be deinstalled:

pkg-1.0

The deinstallation will free 7 MB
Deleting pkg-1.0... done
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... 

Running ps in another terminal shows pkg query %n-%v. Since the actual pkg is 
now gone, I suspect this is really /usr/sbin/pkg. I further suspect that it's 
waiting for y/n input (whether to install the binary pkg) on its nonexistent 
stdin somewhere. I killed it (pkg) and portupgrade seemed to finish normally.

 I was able to reinstall using /usr/sbin/pkg, and I also tested make  make 
 deinstall  make reinstall of ports-mgmt/pkg successfully, so it may just 
 be a portupgrade issue.
 
 JN
 
 On Aug 30, 2012, at 8:19 AM, Baptiste Daroussin b...@freebsd.org wrote:
 
 After 2 years of development (first commit Tue Sep 7 2010), more than 2000
 commits, 43 different contibutors.  The pkgng team is proud to release 
 pkg-1.0!
 
 [...]
 
 Tools supporting natively pkgng
 - ports-mgmt/portupgrade-devel (soon the main portupgrade will support)
 [...]
 
 ___
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
 

___
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: pkg (aka pkgng) 1.0 released

2012-08-30 Thread Olivier Smedts
2012/8/30 John Nielsen li...@jnielsen.net:
 Running ps in another terminal shows pkg query %n-%v. Since the actual pkg 
 is now gone, I suspect this is really /usr/sbin/pkg. I further suspect that 
 it's waiting for y/n input (whether to install the binary pkg) on its 
 nonexistent stdin somewhere. I killed it (pkg) and portupgrade seemed to 
 finish normally.

This is the first example where renaming pkg to pkg-bootstrap would
have been useful.

-- 
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: oliv...@gid0.org- against HTML email  vCards  X
www: http://www.gid0.org- against proprietary attachments / \

  Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas.
___
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: pkg (aka pkgng) 1.0 released

2012-08-30 Thread Bryan Drewery
On 8/30/2012 10:43 AM, John Nielsen wrote:
 Thanks to everyone involved.
 
 I've been lightly testing pkg for a little while, but I still mainly use 
 ports. This announcement prompted me to switch from portupgrade to 
 portupgrade-devel (20120827 version) to see how it works with PKGNG. I 
 encountered a couple issues:
 
 Portupgrade doesn't remove the pkgdb.db.lock reliably.
 Portupgrade doesn't handle stale lock files (just waits indefinitely for a 
 nonexistent process to finish). A big problem when combined with the above.
 Running portupgrade pkg failed. It stalled trying to unregister the package 
 installation after the old pkg was removed. I didn't dig too deeply but it 
 seems like a dependency chicken-and-egg problem.
 
 I was able to reinstall using /usr/sbin/pkg, and I also tested make  make 
 deinstall  make reinstall of ports-mgmt/pkg successfully, so it may just 
 be a portupgrade issue.
 

Thank you. I'll add some sort of check to prevent this.


 JN
 

Bryan (portupgrade maintainer)

___
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: pkg (aka pkgng) 1.0 released

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 10:06 AM, Olivier Smedts oliv...@gid0.org wrote:

 2012/8/30 John Nielsen li...@jnielsen.net:
 Running ps in another terminal shows pkg query %n-%v. Since the actual pkg 
 is now gone, I suspect this is really /usr/sbin/pkg. I further suspect that 
 it's waiting for y/n input (whether to install the binary pkg) on its 
 nonexistent stdin somewhere. I killed it (pkg) and portupgrade seemed to 
 finish normally.
 
 This is the first example where renaming pkg to pkg-bootstrap would
 have been useful.

I think this is a bug in portupgrade, but removing /usr/sbin/pkg does have the 
side effect of allowing portupgrade to continue (with an empty pkgdb briefly):

Deleting pkg-1.0... done
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... pkg: not found
- 0 packages found (-163 +0)  nothing to do]
---  Installing the new version via the port
...
===   Registering installation for pkg-1.0
Installing pkg-1.0... done
===  Cleaning for pkg-1.0
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 163 packages found 
(-0 +163) 
100...
 done]


JN

___
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