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

Re: libdb5, mips and squeeze



On Mon, Aug 23, 2010 at 05:23:39PM +0200, Aurelien Jarno wrote:
> On Thu, Aug 12, 2010 at 11:15:14AM +0200, Marco d'Itri wrote:
> > libdb5 has been failing to build on mips and mipsel for over 5 weeks,
> > and apparently nobody cares.
> > I have multiple packages linked to it which have not been able to move
> > to testing, should I rebuild them for tpu or can I expect this to be
> > solved in a reasonable timeframe?
> > 
> 
> The problem is that the Versions script on mips doesn't contains the
> symbols gcc fails to find at link time. There is a problem with the
> regular expressions used to build this file, I'll try to write a patch
> asap.
> 

I don't know exactly why, but on mips, some of the data appear in the
"D" section (initialized data) instead on the "R" section (read only
data). Thus it is necessary to update the regex as in the following
patch:

--- db-5.0.26/debian/patches/debian-changes-5.0.26-1
+++ db-5.0.26/debian/patches/debian-changes-5.0.26-1
@@ -110,7 +110,7 @@
 +Versions: $(C_OBJS)
 +	rm -f $@
 +	printf "DB5_0 {\n  global:\n" > $@
-+	nm $$(sed -n "/^pic_object='\(.*\)'$$/ { s//\1/;s,.libs/,,;p;}" $(C_OBJS)) | grep " [TR] " | cut -d" " -f3 | sed -e 's/$$/;/' >> $@
++	nm $$(sed -n "/^pic_object='\(.*\)'$$/ { s//\1/;s,.libs/,,;p;}" $(C_OBJS)) | grep " [TRD] " | cut -d" " -f3 | sed -e 's/$$/;/' >> $@
 +	printf "local: *; };\n" >> $@
 +
  # Shared C library.

Note that it is a patch generated by gcc, not sure if it should be
modified here on included in a debian-changes-5.0.26-2 patch.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: