bug-gnu-utils
[Top][All Lists]
Advanced

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

Allow Gprof to be built with the sources mounted on a r/o filesystem


From: Nick Clifton
Subject: Allow Gprof to be built with the sources mounted on a r/o filesystem
Date: 02 May 2002 09:14:33 +0100

Hi Guys,

  I have recently started to try building various tools using sources
  mounted as read-only over a NFS link.  Gprof was failing to build
  because it tries to build the .gmo files in the source directory.

  I am applying the patch below to detect this case and just issue a
  message, but not fail.  This allows the gprof build to complete.

Cheers
        Nick

2002-05-02  Nick Clifton  <address@hidden>

        * po/Make-in (.po.gmo): Do not attempt to create a .gmo file if
        the sources are read-only.

Index: gprof/po/Make-in
===================================================================
RCS file: /cvs/src/src/gprof/po/Make-in,v
retrieving revision 1.1.1.1
diff -c -3 -p -w -r1.1.1.1 Make-in
*** gprof/po/Make-in    3 May 1999 07:29:11 -0000       1.1.1.1
--- gprof/po/Make-in    2 May 2002 08:13:16 -0000
*************** INSTOBJEXT = @INSTOBJEXT@
*** 70,76 ****
  
  .po.gmo:
        file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
!         && rm -f $$file && $(GMSGFMT) -o $$file $<
  
  .po.cat:
        sed -f ../intl/po2msg.sed < $< > $*.msg \
--- 70,78 ----
  
  .po.gmo:
        file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
!         && test -w $$file \
!         && (rm -f $$file && $(GMSGFMT) -o $$file $< ) \
!         || echo "$$file is not writable"
  
  .po.cat:
        sed -f ../intl/po2msg.sed < $< > $*.msg \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]