<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/pkg_install/create/perform.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-10-31T13:00:35Z</updated>
<entry>
<title>After around 20 years of duty it is time for pkg_install to retire</title>
<updated>2013-10-31T13:00:35Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2013-10-31T13:00:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c92d635ad3fef3b2b8c44c4639ad0fd7c00ff20b'/>
<id>urn:sha1:c92d635ad3fef3b2b8c44c4639ad0fd7c00ff20b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>if a file in plist starts with / then do not prefix it with "prefix" [1]</title>
<updated>2012-09-18T22:09:23Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-09-18T22:09:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8781da230cb24ebba6bfca888ab8c3dbf0685181'/>
<id>urn:sha1:8781da230cb24ebba6bfca888ab8c3dbf0685181</id>
<content type='text'>
pkg info -g returns 1 if a file mismatch [2]
flush stdout in pkg info -g [3]
clean up quiet mode (-q | --quiet) output of pkg_version(1) [4]
fix missing error call in uname check added to pkg_version(1) [5]
fix pkg_add(1) fails to install with -C from bad path [6]
only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7]

PR:		bin/13128 [1]
		bin/139015 [2]
		bin/113702 [3]
		bin/142570 [4]
		bin/146857 [5]
		bin/157543 [6]
Submitted by:	cy [1]
		Anton Yuzhaninov &lt;citrin@citrin.ru&gt; [2]
		Ighighi &lt;ighighi@gmail.com&gt; [3]
		"N.J. Mann" &lt;njm@njm.me.uk&gt; [4]
		gcooper [5]
		David Naylor &lt;naylor.b.david@gmail.com&gt; [6]
		netchild [7]
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix r231300: Use correct test so we only bail out on error instead of on non-error.</title>
<updated>2012-02-10T00:53:39Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-02-10T00:53:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2eb318b31dcb552cabdec6e1f1e8c75f094401ae'/>
<id>urn:sha1:2eb318b31dcb552cabdec6e1f1e8c75f094401ae</id>
<content type='text'>
Also, fix a style bug.

Submitted by:	ache
Approved by:	cperciva
MFC after:	1 month
</content>
</entry>
<entry>
<title>Permit the use of relative paths for the prefix argument.</title>
<updated>2012-02-09T20:51:03Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-02-09T20:51:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=839a18b056ddca32a4063437c56d7456f59398e6'/>
<id>urn:sha1:839a18b056ddca32a4063437c56d7456f59398e6</id>
<content type='text'>
Remove an unnecessary cwd from created plists when -p is specified

PR:		bin/145000
Submitted by:	gcooper
Approved by:	portmgr (flo)
MFC after:	1 month
</content>
</entry>
<entry>
<title>Spelling fixes for usr.sbin/</title>
<updated>2011-12-30T10:58:14Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2011-12-30T10:58:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3df5ecac8c5e0a9105ba0e783bd9e7077df944e7'/>
<id>urn:sha1:3df5ecac8c5e0a9105ba0e783bd9e7077df944e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backout libinstall.a -&gt; libpkg commit.</title>
<updated>2011-05-17T19:11:47Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2011-05-17T19:11:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2eb4b00cbb86ee4591b3a60e96b94e51085c3939'/>
<id>urn:sha1:2eb4b00cbb86ee4591b3a60e96b94e51085c3939</id>
<content type='text'>
Discussed with:	erwin, brooks, bapt
</content>
</entry>
<entry>
<title>- Add support for xz compression to pkg_create, bzip2 remains the default</title>
<updated>2010-10-12T10:04:44Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2010-10-12T10:04:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1784fdea2e1db9f3f4795c0c22d0e86ee6889d62'/>
<id>urn:sha1:1784fdea2e1db9f3f4795c0c22d0e86ee6889d62</id>
<content type='text'>
compression algorithm.
- Bump PKG_INSTALL_VERSION to 20101012.

Submitted by:	mm
MFC after:	1 month
</content>
</entry>
<entry>
<title>- Take libinstall.a out of pkg_install and make it a proper shared library.</title>
<updated>2010-04-23T11:07:43Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2010-04-23T11:07:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=762c7db2e8f714203a9766492a631d0ea310bd78'/>
<id>urn:sha1:762c7db2e8f714203a9766492a631d0ea310bd78</id>
<content type='text'>
- Rework the wrapper support to check libpkg version as well as pkg_install
version.
- Add libfetch to _prebuild_libs.
- There are no new features introduced.

Notes: the API is not stable, so basically, do not use libpkg in your
projects for now. Also there's no manpage for libpkg yet, because the API
will change drastically. I repeat, do not use libpkg for now.
</content>
</entry>
<entry>
<title>When running pkg_add -r, check &amp; install our dependencies for each</title>
<updated>2009-06-19T17:07:38Z</updated>
<author>
<name>Brian Somers</name>
<email>brian@FreeBSD.org</email>
</author>
<published>2009-06-19T17:07:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f345b422d1238f2bf7fa261da253223e74d21179'/>
<id>urn:sha1:f345b422d1238f2bf7fa261da253223e74d21179</id>
<content type='text'>
package rather than expecting our top level package to get all of
the dependencies correct.

Previously, the code depended on the top level package having all
of the pkgdep lines in +CONTENTS correct and in the right order,
but that doesn't always happen due to code such as this (in
security/gnutls/Makefile):

    .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) &amp;&amp; !defined(WITHOUT_LZO)
    LIB_DEPENDS+=           lzo2:${PORTSDIR}/archivers/lzo2
    ....

With such conditional dependencies, my 'sophox-packages' package won't
install.  The dependency tree looks like this:

    sophox-packages
      ...
      x11/gnome2
        x11/gnome-applets
          net/libgweather
            devel/libsoup
              security/gnutls
                security/libgcrypt
                  security/libgpg-error
      ...
      x11/gnome2
        archivers/file-roller
          archivers/gtar
            archivers/lzop
              archivers/lzo2
      ...

gnutls doesn't depend on lzo2 initially, but lzo2 is dragged into the
mix via other dependencies and is built by the initial 'make'.  The
subsequent package generation for gnutls adds a pkgdep line for lzo2
to gnutls' +CONTENTS but the pkgdeps in sophox-packages' +CONTENTS
has gnutls *before* lzo2.

As a result, sophox-packages cannot install; gnutls fails because lzo2
is missing, 82 more packages fail because gnutls is missing and the
whole thing spirals into a super-confusing mess!

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Add a -n option to pkg_create(1), to inhibit duplicate work.</title>
<updated>2008-05-27T05:10:54Z</updated>
<author>
<name>Giorgos Keramidas</name>
<email>keramida@FreeBSD.org</email>
</author>
<published>2008-05-27T05:10:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bea08b23d338c7d5c067b99567b1b94fae3bff50'/>
<id>urn:sha1:bea08b23d338c7d5c067b99567b1b94fae3bff50</id>
<content type='text'>
When run without this option, multiple runs of `pkg_create -Rb' will
recreate common packages multiple times.  This can take a lot of time
for large packages.  With the -n option `pkg_create -b' checks with
stat(2) and skips packages that already exist.

Note that this may *not* be safe of the existing output file is not
really a package, or if it has been corrupted, modified or otherwise
tinkered with between subsequent pkg_create runs.  For this and POLA
reasons, the default behavior is to *rebuild* the packages, and the -n
option can be used when we know it is `safe' to run in no-regenerate
mode.

Inspired by:	A post to freebsd-questions
	 	by Matthias Apitz &amp;lt; matthias.apitz at oclc.org &amp;gt;
Reviewed by:	marcus, flz
Approved by:	marcus
MFC after:	2 weeks
</content>
</entry>
</feed>
