On Wed, Aug 12, 2020 at 05:26:04PM +0100, Ken Moffat via blfs-dev wrote:
> On Wed, Aug 12, 2020 at 06:47:35AM +0200, Pierre Labastie via blfs-dev wrote:
> > On Wed, 2020-08-12 at 02:40 +0100, Ken Moffat via blfs-dev wrote:
> > > 
> > > Fedora are using glibc-32 and have a patch against seamonkey-2.53.2:
> > > https://src.fedoraproject.org/rpms/seamonkey/blob/master/f/seamonkey-2.53.2-sysctl.patch
> > > 
> > > looks as if a sed to delete the line from
> > > mozilla/memory/build/mozjemalloc.cpp should do the job, but I
> > > dislike using a sed to delete 3 lines (it's fine until the next
> > > version, then you have to work out if it still does what was
> > > intended), I thoght adding '&& !defined( XP_LINUX)' to the previous
> > > line might do it :
> > > 
> > > sed -i 's/!defined.XP_SOLARIS.*/& \&\& !defined(XP_LINUX)/' \
> > >     mozilla/memory/build/mozjemalloc.cpp
> > > 
> > > But that has the same problem that it is not at all obvious what is
> > > being changed (turned off rather than deleted).  I did a quick
> > > gurgle for deleting lines before and after a match with sed, the
> > > suggestions looked horrendous (and might have memory implications
> > > because sed only works on the current patternspace).
> > 
> > Why not just remove the line with #include? It would leave a #if ...
> > #endif with empty body, which shouldn't be a problem:
> > 
> > sed /sysctl/d -i mozilla/memory/build/mozjemalloc.cpp
> > > 
> 
> I've never tried ab enoty ifdef or similar.  Will try that later.
> 
Works fine.  Thanks.

ĸen
-- 
Juliet's version of cleanliness was next to godliness, which was to
say it was erratic, past all understanding and was seldom seen.
                          -- Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to