[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-octave-devel] large .oct files with latest version in testing



Am Mittwoch, den 11.06.2008, 10:57 +0200 schrieb Michael Creel:
> Hello Octave packagers,
> First of all, thanks for your work on packaging Octave for Debian.
> I've been benefiting from the results for a long time now. I notice
> that .oct files are a lot larger now than they were a few weeks ago,
> using octave3.0 in Lenny. It seems to me that the change occurred when
> moving from octave3.0 package version 1:3.0.1-2 to 1:3.0.1:3. 

During the 2.9 series, we did change mkoctfile to strip .oct files. This
was more of an oversight than by intention, I guess (we wanted to
strip .oct files shipped with Octave itself and the corresponding flag
floated into mkoctfile). This was changed at 2.9.14.

> I have only the octave3.0 and octave3.0-headers packages installed. I
> guess that the new version is not stripping debug information, while
> the previous version did so. If I were compiling a single .oct file, I
> know how to use --strip to solve the problem. My difficulty is that
> I'm compiling a large package that uses a Makefile of its own, and I
> don't see how to do the stripping. The package is MPITB for Octave
> (http://atc.ugr.es/javier-bin/mpitb).

Diff attached, it's against the 2.9.12 directory in
mpitb-beta-FC6-OCT2912-LAM713-OMPI123.tar.bz2


> I don't expect help from this list on how to modify that Makefile,
> that's not your job of course. I just want to make sure that octave3.0
> now includes debug symbols into .oct files by default, and that this
> change is intended. 

This is upstream's (ie John's) default, and it helps me when debugging
other stuff, so yes, it is intended. 

A different option to the diff might be some sort of
	$ find -name "*.oct" -exec strip '{}' \;

Regards
	Thomas
diff --git a/Makefile.inc.LAM b/Makefile.inc.LAM
--- a/Makefile.inc.LAM
+++ b/Makefile.inc.LAM
@@ -5,7 +5,7 @@
 MV     = mv
 #OCONF = octave-config	# not really used, could partially replace
 			# MKOCT functionality. Commented code included
-MKOCT  = mkoctfile
+MKOCT  = mkoctfile --strip
 CXX   := $(shell $(MKOCT) --print CXX)
 DL_LD := $(shell $(MKOCT) --print DL_LD)
 LD_CXX:= $(shell $(MKOCT) --print LD_CXX)
diff --git a/Makefile.inc.OMPI b/Makefile.inc.OMPI
--- a/Makefile.inc.OMPI
+++ b/Makefile.inc.OMPI
@@ -5,7 +5,7 @@
 MV     = mv
 #OCONF = octave-config	# not really used, could partially replace
 			# MKOCT functionality. Commented code included
-MKOCT  = mkoctfile
+MKOCT  = mkoctfile --strip
 CXX   := $(shell $(MKOCT) --print CXX)
 DL_LD := $(shell $(MKOCT) --print DL_LD)
 LD_CXX:= $(shell $(MKOCT) --print LD_CXX)

Reply to: