Issue 29286 - FreeBSD porting: deliver.pl needs strip command
Summary: FreeBSD porting: deliver.pl needs strip command
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1.2
Hardware: Other FreeBSD
: P3 Trivial (vote)
Target Milestone: OOo 1.1.2
Assignee: vg
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-18 01:16 UTC by maho.nakata
Modified: 2006-04-04 21:02 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
add $strip for FreeBSD (373 bytes, patch)
2004-05-18 01:17 UTC, maho.nakata
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description maho.nakata 2004-05-18 01:16:31 UTC
Porting to FreeBSD, 
$Revision: 1.86.18.2 $ of deliver.pl
produces an error like:
% deliver
deliver -- version: 1.50.8.4.2.1
COPY: ../unxfbsd.pro/bin/makedepend ->
/work/ports/editors/openoffice-1.1-devel/work/oo_1.1.2_src/solver/645/unxfbsd.pro/bin/makedepend
deliver:
/work/ports/editors/openoffice-1.1-devel/work/oo_1.1.2_src/soltools/prj/d.lst:
ERROR: Failed to execute 
/work/ports/editors/openoffice-1.1-devel/work/oo_1.1.2_src/solver/645/unxfbsd.pro/bin/makedepend.95711-1084837695

since there's no definition of $strip for FreeBSD
Comment 1 maho.nakata 2004-05-18 01:17:21 UTC
Created attachment 15319 [details]
add $strip for FreeBSD
Comment 2 maho.nakata 2004-05-18 01:23:17 UTC
set several things, target milestone and platform 
Comment 3 pavel 2004-05-18 10:02:19 UTC
I will take care of this.
Comment 4 pavel 2004-05-18 10:04:58 UTC
Accepted.
Comment 5 pavel 2004-05-18 16:28:05 UTC
vg: what about using this instead. Think of other unices like NetBSD...

--- deliver.pl.~1.50.8.4.2.1.~	2004-05-18 17:25:51.000000000 +0200
+++ deliver.pl	2004-05-18 17:26:31.153896272 +0200
@@ -131,13 +131,11 @@
 $opt_deloutput      = 0;            # delete the output tree for the project
once successfully delivered
 
 $gcdynstr	= '';
-$strip = '';
+$strip = 'strip';
 if ($^O eq 'linux') {
     $gcdynstr	= 'elf-gc-dynstr';
-	$strip 		= 'strip';
 };
 $strip 		= '/usr/ccs/bin/strip' if ( $^O eq 'solaris' );
-$strip 		= 'strip' if ( $^O eq "darwin" );
 $upd           = $ENV{'UPD'};
 ($gui		= lc($ENV{GUI})) 		|| die "can't determine GUI";
 
Comment 6 sander_traveling 2004-05-18 16:57:51 UTC
svesik -> pjanik 

Looks like an ok solution, please apply
Comment 7 maho.nakata 2004-05-18 16:58:53 UTC
yes. it is preferable.
however, if some options to GNU strip and BSD strip is different,
how do we do? anyway, your patch is much better than mine.
I'm not sure why it has been changed so ad hoc way...
Comment 8 pavel 2004-05-18 18:14:58 UTC
vg: what is the purpose of $gcdynstr?

With my patch applied, the code is weird even for me who do not speak Perl ;-)
Comment 9 jens-heiner.rechtien 2004-05-18 18:21:14 UTC
$gcdynstr is obsolete and should be removed. At one time the Linux linker was
not able to remove unused smybol strings from the string table when a map file
was employed. We used a tool invented by the mozilla team called elf-gc-dynstr
to streamline our binaries. This is history.

VG->please remove the $gcdynstr stuff.
Comment 10 vg 2004-05-19 13:13:38 UTC
Hi, there is a new version with more general concept for stripping, the 1.50.8.7
Comment 11 quetschke 2004-05-20 16:25:24 UTC
vq->vg: You must not use:

$strip = 'strip' if ($^O ne 'MSWin32');

because $^O only tests the version of the used perl, we support
also the perl that comes with cygwin, and it outputs: "cygwin"

Also in the not so far future there will be a MinGW port, so that
testing only $ENV{"GUI"} is also not correct, I propose testing of
   $ENV{"GUI"} ne "MSC"
.
Comment 12 quetschke 2004-05-20 16:31:45 UTC
Sorry, I meant testing
   $ENV{"COM"} ne "MSC"
.
Comment 13 vg 2004-05-24 08:41:13 UTC
vg->vq: I agree, the your changes are in r1.50.8.8
Comment 14 Martin Hollmichel 2006-04-04 21:02:38 UTC
close issue