Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 22:50:29 GMT
From:      nemysis <nemysis@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/186466: [PATCH] book.xml Stripping Binaries and Shared Libraries
Message-ID:  <201402042250.s14MoTPI080268@oldred.freebsd.org>
Resent-Message-ID: <201402042300.s14N00m9064001@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402042250.s14MoTPI080268>