Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Rob Farmer
On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
  libarchive now needs libcrypto and liblzma.

 Modified:
  head/release/amd64/boot_crunch.conf
  head/release/i386/boot_crunch.conf
  head/release/ia64/boot_crunch.conf
  head/release/pc98/boot_crunch.conf
  head/release/powerpc/boot_crunch.conf
  head/release/sparc64/boot_crunch.conf
  head/release/sun4v/boot_crunch.conf

 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010        
 (r208544)
 +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010        
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig

 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail


Does the order of the libs entries matter? Because I just tried on
i386 after this commit and I still get errors related to the sha1,
md5, etc. functions but it worked fine with -llzma -lcrypto at the end
of the last line.

-- 
Rob Farmer
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Garrett Cooper
On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net wrote:
 On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
  libarchive now needs libcrypto and liblzma.

 Modified:
  head/release/amd64/boot_crunch.conf
  head/release/i386/boot_crunch.conf
  head/release/ia64/boot_crunch.conf
  head/release/pc98/boot_crunch.conf
  head/release/powerpc/boot_crunch.conf
  head/release/sparc64/boot_crunch.conf
  head/release/sun4v/boot_crunch.conf

 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010        
 (r208544)
 +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010        
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig

 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail


 Does the order of the libs entries matter? Because I just tried on
 i386 after this commit and I still get errors related to the sha1,
 md5, etc. functions but it worked fine with -llzma -lcrypto at the end
 of the last line.

In theory it shouldn't because the linker should be smart enough
to evaluate the dependencies and link everything properly, but our
copy of binutils isn't intelligent enough to determine the appropriate
order from what I've seen.
Thanks,
-Garrett
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2010/05/26 11:47, Garrett Cooper wrote:
 On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net wrote:
 On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
  libarchive now needs libcrypto and liblzma.

 Modified:
  head/release/amd64/boot_crunch.conf
  head/release/i386/boot_crunch.conf
  head/release/ia64/boot_crunch.conf
  head/release/pc98/boot_crunch.conf
  head/release/powerpc/boot_crunch.conf
  head/release/sparc64/boot_crunch.conf
  head/release/sun4v/boot_crunch.conf

 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010
 (r208544)
 +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig

 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail


 Does the order of the libs entries matter? Because I just tried on
 i386 after this commit and I still get errors related to the sha1,
 md5, etc. functions but it worked fine with -llzma -lcrypto at the end
 of the last line.
 
 In theory it shouldn't because the linker should be smart enough
 to evaluate the dependencies and link everything properly, but our
 copy of binutils isn't intelligent enough to determine the appropriate
 order from what I've seen.

Bad last minute change from me, I overlooked this :-/

Will a newer GNU ld solve this issue?

Cheers,
- -- 
Xin LI delp...@delphij.nethttp://www.delphij.net/
FreeBSD - The Power to Serve!  Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBCAAGBQJL/W+AAAoJEATO+BI/yjfBdYIH/jrMjcdVUba/5R/Y4TbFq15i
kVWRcSj+6R/iqxZ62pKPOKfYim2pJToRVPT+Hx+cTYri3jm25L4U0SQOfWViWU6D
2qQ1BLWwkNTd97hLcdSBePf4pKPq1o49W33zqyE3VAAkvOl5r+HZ9V16xhZ9GnmB
VfweQSYb6Nm0YD2H3fSvYpLoNzKW13POxer6sqvmhnEZcU78CCSeQVSYhdf3M7eM
ulya3Jsxd1Rn9aReFQR8D14+fMq0xfs2q7DGX1HmVHn1hxC/dWhfGZ7Yv36mbPr8
MwVHoeEjVhnRgUE78o9/XQ3vJyvhOSCQCy+a2IZoFIbqTotaymi0EMmif51zudE=
=nD1V
-END PGP SIGNATURE-
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Garrett Cooper
On Wed, May 26, 2010 at 11:59 AM, Xin LI delp...@delphij.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 On 2010/05/26 11:47, Garrett Cooper wrote:
 On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net 
 wrote:
 On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
  libarchive now needs libcrypto and liblzma.

 Modified:
  head/release/amd64/boot_crunch.conf
  head/release/i386/boot_crunch.conf
  head/release/ia64/boot_crunch.conf
  head/release/pc98/boot_crunch.conf
  head/release/powerpc/boot_crunch.conf
  head/release/sparc64/boot_crunch.conf
  head/release/sun4v/boot_crunch.conf

 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010        
 (r208544)
 +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010        
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig

 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail


 Does the order of the libs entries matter? Because I just tried on
 i386 after this commit and I still get errors related to the sha1,
 md5, etc. functions but it worked fine with -llzma -lcrypto at the end
 of the last line.

     In theory it shouldn't because the linker should be smart enough
 to evaluate the dependencies and link everything properly, but our
 copy of binutils isn't intelligent enough to determine the appropriate
 order from what I've seen.

 Bad last minute change from me, I overlooked this :-/

 Will a newer GNU ld solve this issue?

Juli informed me (off-list) that GNU ld _does_ in fact do this, but
only if you specify --start-group and --end-group in the linker
arguments (which she claimed required more RAM).

It might just be better to switch the linker library ordering as this
would fix the issue cleanly and quickly.

Thanks,
-Garrett
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread M. Warner Losh
In message: aanlktimc39jxryaaqnxi5qjhnihlwczcpn22r8xmn...@mail.gmail.com
Garrett Cooper yanef...@gmail.com writes:
: On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net wrote:
:  On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
:  Author: delphij
:  Date: Tue May 25 17:48:17 2010
:  New Revision: 208545
:  URL: http://svn.freebsd.org/changeset/base/208545
: 
:  Log:
:   libarchive now needs libcrypto and liblzma.
: 
:  Modified:
:   head/release/amd64/boot_crunch.conf
:   head/release/i386/boot_crunch.conf
:   head/release/ia64/boot_crunch.conf
:   head/release/pc98/boot_crunch.conf
:   head/release/powerpc/boot_crunch.conf
:   head/release/sparc64/boot_crunch.conf
:   head/release/sun4v/boot_crunch.conf
: 
:  Modified: head/release/amd64/boot_crunch.conf
:  
==
:  --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010        
(r208544)
:  +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010        
(r208545)
:  @@ -39,6 +39,6 @@ progs ppp
:   progs sysinstall
:   progs usbconfig
: 
:  -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
:  +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
:   libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
:  -libs -lbsdxml -larchive -lbz2 -lusb -ljail
:  +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail
: 
: 
:  Does the order of the libs entries matter? Because I just tried on
:  i386 after this commit and I still get errors related to the sha1,
:  md5, etc. functions but it worked fine with -llzma -lcrypto at the end
:  of the last line.
: 
: In theory it shouldn't because the linker should be smart enough
: to evaluate the dependencies and link everything properly, but our
: copy of binutils isn't intelligent enough to determine the appropriate
: order from what I've seen.

the linker has never been that smart.  Unless you tell it to link in
everything, which we don't do.

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


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Kostik Belousov
On Wed, May 26, 2010 at 11:59:12AM -0700, Xin LI wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 On 2010/05/26 11:47, Garrett Cooper wrote:
  On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net 
  wrote:
  On Tue, May 25, 2010 at 10:48 AM, Xin LI delp...@freebsd.org wrote:
  Author: delphij
  Date: Tue May 25 17:48:17 2010
  New Revision: 208545
  URL: http://svn.freebsd.org/changeset/base/208545
 
  Log:
   libarchive now needs libcrypto and liblzma.
 
  Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf
 
  Modified: head/release/amd64/boot_crunch.conf
  ==
  --- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010
  (r208544)
  +++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010
  (r208545)
  @@ -39,6 +39,6 @@ progs ppp
   progs sysinstall
   progs usbconfig
 
  -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
  +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
   libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
  -libs -lbsdxml -larchive -lbz2 -lusb -ljail
  +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail
 
 
  Does the order of the libs entries matter? Because I just tried on
  i386 after this commit and I still get errors related to the sha1,
  md5, etc. functions but it worked fine with -llzma -lcrypto at the end
  of the last line.
  
  In theory it shouldn't because the linker should be smart enough
  to evaluate the dependencies and link everything properly, but our
  copy of binutils isn't intelligent enough to determine the appropriate
  order from what I've seen.
 
 Bad last minute change from me, I overlooked this :-/
 
 Will a newer GNU ld solve this issue?

The behaviour is the standard for any unix linker I ever saw.
Static libraries participate in symbol resolution only at the point
they appear on the command line. Linker makes as many passes over
the single library as needed to not have any unresolved symbols that
can be resolved from the archive, then moves to the next.

There are facilities that allow to change the behaviour, either by
grouping the libraries, see --start-group switch, or by repeating
the library several times at the proper place in the command line.

Comments about linker not being smart enough are nonsense.


pgp2v6tiiDxzD.pgp
Description: PGP signature


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-26 Thread Tim Kientzle

Kostik Belousov wrote:

On 2010/05/26 11:47, Garrett Cooper wrote:

On Wed, May 26, 2010 at 11:28 AM, Rob Farmer rfar...@predatorlabs.net wrote:

Does the order of the libs entries matter? ...


In theory it shouldn't because the linker should be smart enough
to evaluate the dependencies and link everything properly, but our
copy of binutils isn't intelligent enough to determine the appropriate
order from what I've seen.


Comments about linker not being smart enough are nonsense.


In fact, library link ordering is quite
critical in some places, since it allows you to
override functions provided by later libraries.

Many people use this to override the system
malloc() (for debugging or code size purposes)
by simply linking against another library before
libc.  I've also used this trick to override
getpwnam() so as to avoid the 1/2 megabyte of
libc networking code that gets pulled in by
the standard implementation.

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


svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Xin LI
Author: delphij
Date: Tue May 25 17:48:17 2010
New Revision: 208545
URL: http://svn.freebsd.org/changeset/base/208545

Log:
  libarchive now needs libcrypto and liblzma.

Modified:
  head/release/amd64/boot_crunch.conf
  head/release/i386/boot_crunch.conf
  head/release/ia64/boot_crunch.conf
  head/release/pc98/boot_crunch.conf
  head/release/powerpc/boot_crunch.conf
  head/release/sparc64/boot_crunch.conf
  head/release/sun4v/boot_crunch.conf

Modified: head/release/amd64/boot_crunch.conf
==
--- head/release/amd64/boot_crunch.conf Tue May 25 17:43:23 2010
(r208544)
+++ head/release/amd64/boot_crunch.conf Tue May 25 17:48:17 2010
(r208545)
@@ -39,6 +39,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
-libs -lbsdxml -larchive -lbz2 -lusb -ljail
+libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail

Modified: head/release/i386/boot_crunch.conf
==
--- head/release/i386/boot_crunch.conf  Tue May 25 17:43:23 2010
(r208544)
+++ head/release/i386/boot_crunch.conf  Tue May 25 17:48:17 2010
(r208545)
@@ -39,6 +39,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
-libs -lbsdxml -larchive -lbz2 -lusb -ljail
+libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail

Modified: head/release/ia64/boot_crunch.conf
==
--- head/release/ia64/boot_crunch.conf  Tue May 25 17:43:23 2010
(r208544)
+++ head/release/ia64/boot_crunch.conf  Tue May 25 17:48:17 2010
(r208545)
@@ -44,6 +44,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs -ldevinfo
-libs -lgeom -lbsdxml -larchive -lbz2 -lusb -ljail
+libs -lgeom -lbsdxml -larchive -lbz2 -llzma -lusb -ljail

Modified: head/release/pc98/boot_crunch.conf
==
--- head/release/pc98/boot_crunch.conf  Tue May 25 17:43:23 2010
(r208544)
+++ head/release/pc98/boot_crunch.conf  Tue May 25 17:48:17 2010
(r208545)
@@ -38,6 +38,6 @@ progs arp
 progs ppp
 progs sysinstall
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2 -ljail
+libs -larchive -lbz2 -llzma -ljail

Modified: head/release/powerpc/boot_crunch.conf
==
--- head/release/powerpc/boot_crunch.conf   Tue May 25 17:43:23 2010
(r208544)
+++ head/release/powerpc/boot_crunch.conf   Tue May 25 17:48:17 2010
(r208545)
@@ -44,6 +44,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lkiconv -lsbuf -lufs
-libs -lgeom -lbsdxml -larchive -lbz2 -lusb -ljail
+libs -lgeom -lbsdxml -larchive -lbz2 -llzma -lusb -ljail

Modified: head/release/sparc64/boot_crunch.conf
==
--- head/release/sparc64/boot_crunch.conf   Tue May 25 17:43:23 2010
(r208544)
+++ head/release/sparc64/boot_crunch.conf   Tue May 25 17:48:17 2010
(r208545)
@@ -39,6 +39,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2 -lusb -ljail
+libs -larchive -lbz2 -llzma -lusb -ljail

Modified: head/release/sun4v/boot_crunch.conf
==
--- head/release/sun4v/boot_crunch.conf Tue May 25 17:43:23 2010
(r208544)
+++ head/release/sun4v/boot_crunch.conf Tue May 25 17:48:17 2010
(r208545)
@@ -39,6 +39,6 @@ progs ppp
 progs sysinstall
 progs usbconfig
 
-libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
+libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
 libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -lbsdxml
-libs -larchive -lbz2 -lusb -ljail
+libs -larchive -lbz2 -llzma -lusb -ljail
___

Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Jung-uk Kim
On Tuesday 25 May 2010 01:48 pm, Xin LI wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
   libarchive now needs libcrypto and liblzma.

 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf

misc/146904?

Jung-uk Kim
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Garrett Cooper
On Tue, May 25, 2010 at 11:10 AM, Jung-uk Kim j...@freebsd.org wrote:
 On Tuesday 25 May 2010 01:48 pm, Xin LI wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
   libarchive now needs libcrypto and liblzma.

 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf

 misc/146904?

joerg brought up an interesting item on #bsddev:

@joerg seeing Xin Li's last commit: does libmd contain SHA256 and SHA512?

lzma doesn't use SHA512, but it does use SHA256.

So does it actually need libcrypto now that libmd is included, or was
it a bad analysis by your's truly?

Thanks,
-Garrett
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Marius Strobl
On Tue, May 25, 2010 at 05:48:18PM +, Xin LI wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545
 
 Log:
   libarchive now needs libcrypto and liblzma.
 
 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf
 
 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf   Tue May 25 17:43:23 2010
 (r208544)
 +++ head/release/amd64/boot_crunch.conf   Tue May 25 17:48:17 2010
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig
  
 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail
 

Hrm, wasn't the idea to keep libcrypto and crypto in general
out of the install image (see the RELEASE_CRUNCH bits in various
Makefiles) in order to be able use them regardless of crypto
export/import restrictions?

Marius

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


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2010/05/25 11:35, Marius Strobl wrote:
 On Tue, May 25, 2010 at 05:48:18PM +, Xin LI wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
   libarchive now needs libcrypto and liblzma.

 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf

 Modified: head/release/amd64/boot_crunch.conf
 ==
 --- head/release/amd64/boot_crunch.conf  Tue May 25 17:43:23 2010
 (r208544)
 +++ head/release/amd64/boot_crunch.conf  Tue May 25 17:48:17 2010
 (r208545)
 @@ -39,6 +39,6 @@ progs ppp
  progs sysinstall
  progs usbconfig
  
 -libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lz -lnetgraph
 +libs -ll -ledit -lutil -lmd -lcrypt -lcrypto -lftpio -lz -lnetgraph
  libs -ldialog -lncurses -ldisk -lcam -lsbuf -lufs -ldevinfo
 -libs -lbsdxml -larchive -lbz2 -lusb -ljail
 +libs -lbsdxml -larchive -lbz2 -llzma -lusb -ljail

 
 Hrm, wasn't the idea to keep libcrypto and crypto in general
 out of the install image (see the RELEASE_CRUNCH bits in various
 Makefiles) in order to be able use them regardless of crypto
 export/import restrictions?

Ah...  I'm not sure about the crypto export/import restrictions :-/

However, in 2004, there was a discussion [1] about making crypto
integrated part of the base system (the 'crypto' distribution was
removed in Aug 2004).

Could someone familiar with US laws chime in this?

[1] http://docs.freebsd.org/cgi/mid.cgi?6.1.0.6.1.20040427094029.03d3d218

Cheers,
- -- 
Xin LI delp...@delphij.nethttp://www.delphij.net/
FreeBSD - The Power to Serve!  Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBCAAGBQJL/CQeAAoJEATO+BI/yjfBe9AH/jrTPHw84gWwPHMb25tHM4BC
PIr4DP3CB8nzr3DDaJXMF172eoctDO7+C4xMr0OjU/rfq+xVtwEZ5Pig8ZN7Yg5Z
NfCxQpKc0v7wZe5ljQwx7mhovZKKPK1c+Jj/P5X1Jg90n5KbPHL64nzEASojfTR1
mREIiRwG2DzDIOLRC2wYD+JJPFJFLurRUDhjqbeDNxUYKnDq8dUFFx0Hb/ibQ66C
Tdb2mdZGOTgqCrmG3/ibS3m+/Xl9JUWWV7VZhPbf5aCiinbPiajVlkYnv7cNv2ZB
OtY+7JxjRJB9X9ebwH7CaiGdjDfQAcdbnR7g0sUgT9iNPwHux2qXIkEMToNQkiw=
=uMvC
-END PGP SIGNATURE-
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r208545 - in head/release: amd64 i386 ia64 pc98 powerpc sparc64 sun4v

2010-05-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2010/05/25 11:34, Garrett Cooper wrote:
 On Tue, May 25, 2010 at 11:10 AM, Jung-uk Kim j...@freebsd.org wrote:
 On Tuesday 25 May 2010 01:48 pm, Xin LI wrote:
 Author: delphij
 Date: Tue May 25 17:48:17 2010
 New Revision: 208545
 URL: http://svn.freebsd.org/changeset/base/208545

 Log:
   libarchive now needs libcrypto and liblzma.

 Modified:
   head/release/amd64/boot_crunch.conf
   head/release/i386/boot_crunch.conf
   head/release/ia64/boot_crunch.conf
   head/release/pc98/boot_crunch.conf
   head/release/powerpc/boot_crunch.conf
   head/release/sparc64/boot_crunch.conf
   head/release/sun4v/boot_crunch.conf

 misc/146904?
 
 joerg brought up an interesting item on #bsddev:
 
 @joerg seeing Xin Li's last commit: does libmd contain SHA256 and SHA512?
 
 lzma doesn't use SHA512, but it does use SHA256.
 
 So does it actually need libcrypto now that libmd is included, or was
 it a bad analysis by your's truly?

No, it's not about lzma but because libarchive's mtree support.  For
some reason our config_freebsd.h designates the OpenSSL symbols rather
than libmd implementation of MD5, etc., which are used in libarchive's
mtree.  I'm not going to touch libarchive yet since I'm not familiar
with the code enough to under the consequences if we switch over to
libmd's implementation.

Cheers,
- -- 
Xin LI delp...@delphij.nethttp://www.delphij.net/
FreeBSD - The Power to Serve!  Live free or die
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBCAAGBQJL/C25AAoJEATO+BI/yjfBShAH/0gc/KjjVZCMgM+7LHYt9PYN
W3fEqGPA2D78rM9ypWG24Je2jno6belyXAmN9ljgEQwYYwk5LWaxL53hLFFl5oMb
I8sQrGQoQME2fPIh/9vX2Uooud448iqnWCLiB3uiFgQV4Kq/P0F26AZdR1o5jayk
kdPYsPDI5tgpVk1EsudS8iAdTdCFZJpRGJ1ZDeJEg5zgYjIEsMvVuxydaU9OB6/8
dbD4OuVNo+o6LidXUim2aWzEZ5s+bWLSzWN+XVKjJhTxqbVOvF+I79j6VbD4BOYn
2jQFnW1uVlQA9tzONRw8KvN1TzZiC/o4UGX3S5ZLiSY43wBDilvYKa5BfoinYLc=
=KTmH
-END PGP SIGNATURE-
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org