<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.sbin/pkg_install/create, branch release/8.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2012-10-02T17:05:20Z</updated>
<entry>
<title>MFC r240682</title>
<updated>2012-10-02T17:05:20Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2012-10-02T17:05:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ecaa422bba0e6789efa80d49dba5eda9f4595427'/>
<id>urn:sha1:ecaa422bba0e6789efa80d49dba5eda9f4595427</id>
<content type='text'>
if a file in plist starts with / then do not prefix it with "prefix" [1]
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]
</content>
</entry>
<entry>
<title>MFC r231300, r231328:</title>
<updated>2012-03-29T23:58:16Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-03-29T23:58:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a7ad8166b25aa8f856e28fbb0ff9551629f17595'/>
<id>urn:sha1:a7ad8166b25aa8f856e28fbb0ff9551629f17595</id>
<content type='text'>
	Permit the use of relative paths for the prefix argument.
	Remove an unnecessary cwd from created plists when -p is specified

Approved by:	cperciva (implicit)
</content>
</entry>
<entry>
<title>MFC r213718:</title>
<updated>2010-11-23T11:31:12Z</updated>
<author>
<name>Martin Matuska</name>
<email>mm@FreeBSD.org</email>
</author>
<published>2010-11-23T11:31:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7b4ccea1dd65361bd29e63052b5272613ff6a030'/>
<id>urn:sha1:7b4ccea1dd65361bd29e63052b5272613ff6a030</id>
<content type='text'>
- Add support for xz compression to pkg_create, bzip2 remains the default
compression algorithm.
- Bump PKG_INSTALL_VERSION to 20101012.

Submitted by:	mm
Approved by:	portmgr (flz)
</content>
</entry>
<entry>
<title>Synchronize pkg_install with HEAD.</title>
<updated>2010-01-22T23:13:46Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2010-01-22T23:13:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=aa780fe9b5a7a37244f9a16673fee962b7cf813a'/>
<id>urn:sha1:aa780fe9b5a7a37244f9a16673fee962b7cf813a</id>
<content type='text'>
</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-test2/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>Enable the -n option of pkg_create(1).</title>
<updated>2008-07-08T03:21:05Z</updated>
<author>
<name>Giorgos Keramidas</name>
<email>keramida@FreeBSD.org</email>
</author>
<published>2008-07-08T03:21:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ce489a99f0705bdef425d1d3c48af45af9f834aa'/>
<id>urn:sha1:ce489a99f0705bdef425d1d3c48af45af9f834aa</id>
<content type='text'>
The changes to make the option work are already in place, but I missed
the patch hunk that adds it to the getopt() option-handling loop.

Pointy hat:	keramida
Approved by:	flz
MFC after:	1 week
</content>
</entry>
<entry>
<title>Remove support for RELENG_4 (__FreeBSD_version &lt; 500039).</title>
<updated>2008-06-16T23:41:11Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2008-06-16T23:41:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=74572e9e635525e04a4e61b8a1e35b8b434da8ed'/>
<id>urn:sha1:74572e9e635525e04a4e61b8a1e35b8b434da8ed</id>
<content type='text'>
MFC after:	1 day
</content>
</entry>
<entry>
<title>- Add long options to pkg_install.</title>
<updated>2008-05-30T14:26:09Z</updated>
<author>
<name>Florent Thoumie</name>
<email>flz@FreeBSD.org</email>
</author>
<published>2008-05-30T14:26:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0b99032d0987c01313bb84e0743afc9ede466187'/>
<id>urn:sha1:0b99032d0987c01313bb84e0743afc9ede466187</id>
<content type='text'>
- Remove check for '-?' as it's not listed in authorized options.
- Bump PKG_INSTALL_VERSION to 20080530.
</content>
</entry>
<entry>
<title>Update usage strings to add a missing -n option.</title>
<updated>2008-05-27T19:06:45Z</updated>
<author>
<name>Giorgos Keramidas</name>
<email>keramida@FreeBSD.org</email>
</author>
<published>2008-05-27T19:06:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c08759cdf4fb78050913e5b66938b82dd4e8f480'/>
<id>urn:sha1:c08759cdf4fb78050913e5b66938b82dd4e8f480</id>
<content type='text'>
Noticed by:	Matthias Apitz, matthias.apitz at oclc.org
</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-test2/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>
