Date: Tue, 04 Feb 2014 18:21:24 -0500 From: Allan Jude <freebsd@allanjude.com> To: freebsd-doc@freebsd.org Subject: Re: docs/186466: [PATCH] book.xml Stripping Binaries and Shared Libraries Message-ID: <52F175F4.5000005@allanjude.com> In-Reply-To: <201402042250.s14MoTPI080268@oldred.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 2014-02-04 17:50, nemysis wrote:
> Number: 186466
> Category: docs
> Synopsis: [PATCH] book.xml Stripping Binaries and Shared Libraries
> Confidential: no
> Severity: non-critical
> Priority: low
> Responsible: freebsd-doc
> State: open
> Quarter:
> Keywords:
> Date-Required:
> Class: change-request
> Submitter-Id: current-users
> Arrival-Date: Tue Feb 04 23:00:00 UTC 2014
> Closed-Date:
> Last-Modified:
> Originator: nemysis
> Release: FreeBSD 9.2-RELEASE amd64
> Organization:
> Environment:
> FreeBSD 9.2-RELEASE-p8 #0: Mon Sep 23 16:26:45 UTC 2013
>> Description:
> Here I have changed so that the user can see how to patch for striping executables and libraries on more than one file.
>
> Porter's Handbook
>
> 5.15.2. Stripping Binaries and Shared Libraries
>> How-To-Repeat:
>> Fix:
> Please commit enclosed porters-handbook_book.xml.diff
>
> I have sent one email to freebsd-doc@ but here is newer diff. Please use only this.
>
> Patch attached with submission follows:
>
> Index: en_US.ISO8859-1/books/porters-handbook/book.xml
> ===================================================================
> --- en_US.ISO8859-1/books/porters-handbook/book.xml (revision 43779)
> +++ en_US.ISO8859-1/books/porters-handbook/book.xml (working copy)
> @@ -5096,8 +5096,16 @@
> example:</para>
>
> <programlisting>post-install:
> - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl</programlisting>
> + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}</programlisting>
>
> + <para>If you need to strip more files, here shared libraries.
> + For example:</para>
> +
> + <programlisting>post-install:
> + .for l in geometry media body track world
> + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so.0
> + .endfor</programlisting>
> +
> <para>Use the &man.file.1; command on the installed executable
> to check whether the binary is stripped or not. If it does
> not say <literal>not stripped</literal>, it is stripped.
>
>
>> Release-Note:
>> Audit-Trail:
>> Unformatted:
> _______________________________________________
> freebsd-doc@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-doc
> To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
That should probably read as:
If you need to strip more files, such as shared libraries for example:
--
Allan Jude
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJS8XX3AAoJEJrBFpNRJZKfRZ0QAIR3zj+7wxXPvIucl/z6wShy
GA+D2OvdFS9hOB1yuvnFH+5+yIwVBZpFtMRs7CS0yQKDTdlaFl5GljMuuVPd/bZ8
QI8EYl9k1oYnZ+341bWl3HyEmN+ygT0g/tK9jxzZDvA3ck2HbjynTOPFdRD7cJLk
cKsqEBnORZYPxO5l0Br2Calz+3H9H1zV7qT7vSaoyDsXglOhaqtweWS1NB0QLaQr
7eDSYvHoPUhQPyQ5VM1xUWOl7eyGAJvslMaF7Zx1XjFDaJXxfAU3lqEJufReWzWP
i2GgNchDapsBWfS1+0Oho0GLK4GBEVSIY+u/7MmoQ6dddEG+hcZxnDZhxSSxRHcO
QzEukkj4RESrnClecYZIBxRfHzeKc4jaBppyQ2dNVyOQUcDvfYlrQDlBiD9BOTNI
ERmvBp2SK5p3UDQBGrbBTktU+DuVMQnvfmilu2c71TgdqwwoTAy2vH+R3YnWGsh/
Q/CL6C3ZVO6n4G6E65yitKWZAC0sD7AcxTREbyZHA54e6glTYdzkP2VGgNRnJRyp
D8HSNxyqelcvRxCT3A/H0hlnahw+a6KNMT017hMFLX/zBlH1OBDpQVx1YWdwg7Ce
wnDCT+hpAo/OjHXFaG+yJHcRARAocWEDyc31Z1xThR+EZb2DNCRd/t37jKT0Fa2H
wMY2J2Vn9bXRpZaL8/I+
=E1lb
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52F175F4.5000005>
