--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libarchive/patches/libarchive-archive_read_disk.3.patch Tue May 28 11:52:39 2013 -0700
@@ -0,0 +1,93 @@
+This patch is needed to convert BSD-style section numbers to Solaris-style
+section numbers. It has not been fed back to the upstream community. It
+may need to be tweaked slightly for future releases.
+
+--- libarchive/libarchive/archive_read_disk.3.orig Mon Mar 26 19:49:00 2012
++++ libarchive/libarchive/archive_read_disk.3 Fri Nov 9 12:35:02 2012
+@@ -25,7 +25,7 @@
+ .\" $FreeBSD$
+ .\"
+ .Dd February 2, 2012
+-.Dt ARCHIVE_READ_DISK 3
++.Dt ARCHIVE_READ_DISK 3ARCHIVE
+ .Os
+ .Sh NAME
+ .Nm archive_read_disk_new ,
+@@ -138,16 +138,16 @@
+ This convenience function installs a standard set of user
+ and group name lookup functions.
+ These functions use
+-.Xr getpwuid 3
++.Xr getpwuid 3C
+ and
+-.Xr getgrgid 3
++.Xr getgrgid 3C
+ to convert ids to names, defaulting to NULL if the names cannot
+ be looked up.
+ These functions also implement a simple memory cache to reduce
+ the number of calls to
+-.Xr getpwuid 3
++.Xr getpwuid 3C
+ and
+-.Xr getgrgid 3 .
++.Xr getgrgid 3C .
+ .It Fn archive_read_disk_entry_from_file
+ Populates a
+ .Tn struct archive_entry
+@@ -155,7 +155,7 @@
+ The
+ .Tn archive_entry
+ object must have already been created with
+-.Xr archive_entry_new 3
++.Xr archive_entry_new 3ARCHIVE
+ and at least one of the source path or path fields must already be set.
+ (If both are set, the source path will be used.)
+ .Pp
+@@ -196,7 +196,7 @@
+ More information about the
+ .Va struct archive
+ object and the overall design of the library can be found in the
+-.Xr libarchive 3
++.Xr libarchive 3LIB
+ overview.
+ .Sh EXAMPLE
+ The following illustrates basic usage of the library by
+@@ -263,12 +263,12 @@
+ functions.
+ .\"
+ .Sh SEE ALSO
+-.Xr archive_read 3 ,
+-.Xr archive_util 3 ,
+-.Xr archive_write 3 ,
+-.Xr archive_write_disk 3 ,
++.Xr archive_read 3ARCHIVE ,
++.Xr archive_util 3ARCHIVE ,
++.Xr archive_write 3ARCHIVE ,
++.Xr archive_write_disk 3ARCHIVE ,
+ .Xr tar 1 ,
+-.Xr libarchive 3
++.Xr libarchive 3LIB
+ .Sh HISTORY
+ The
+ .Nm libarchive
+@@ -290,9 +290,9 @@
+ The
+ .Dq standard
+ user name and group name lookup functions are not the defaults because
+-.Xr getgrgid 3
++.Xr getgrgid 3C
+ and
+-.Xr getpwuid 3
++.Xr getpwuid 3C
+ are sometimes too large for particular applications.
+ The current design allows the application author to use a more
+ compact implementation when appropriate.
+@@ -310,7 +310,7 @@
+ .Pp
+ This API should provide a set of methods for walking a directory tree.
+ That would make it a direct parallel of the
+-.Xr archive_read 3
++.Xr archive_read 3ARCHIVE
+ API.
+ When such methods are implemented, the
+ .Dq hybrid