Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501898 - [PATCH] net-proxy/squid-3.4.3: fix automagic, make esi optional
Summary: [PATCH] net-proxy/squid-3.4.3: fix automagic, make esi optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-02-20 14:29 UTC by Nikoli
Modified: 2014-03-11 21:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for ebuild (esi.patch,1.74 KB, patch)
2014-02-20 14:29 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2014-02-20 14:29:27 UTC
Created attachment 370882 [details, diff]
patch for ebuild

Now net-proxy/squid-3.4.3 ebuild has automagic, /usr/sbin/squid links to libexpat.so.1 and libxml2.so.2, both libs are used for esi only:

squid-3.4.3 $ ./configure --help
...
  --enable-esi            Enable ESI for accelerators. Benefits from expat or
                          libxml2. Enabling ESI will cause squid reverse
                          proxies to be capable of the Edge Acceleration
                          Specification (www.esi.org).
...

squid-3.4.3 $ grep -R -e expat -e libxml src/*
src/cf.data.pre:COMMENT: libxml2|expat|custom
src/esi/Module.cc:    prLibxml = new ESIParser::Register("libxml2", &ESILibxml2Parser::NewParser);
src/esi/Module.cc:    prExpat = new ESIParser::Register("expat", &ESIExpatParser::NewParser);
src/esi/Esi.cc:        /* waiting for expat to finish the buffer we gave it */
src/esi/Esi.cc:        /* waiting for expat to finish the buffer we gave it */
src/esi/Libxml2Parser.h:// parser.h from libxml2 without errors
src/esi/Libxml2Parser.h:#include <libxml/parser.h>
src/esi/Libxml2Parser.h:#include <libxml/HTMLparser.h>
src/esi/Libxml2Parser.h:#include <libxml/HTMLtree.h>
src/esi/ExpatParser.h:#include <expat.h>
src/esi/Context.h:        int parsing:1; /* libexpat is not reentrant on the same context */

Attached patch fixes automagic and makes esi optional, please commit.
Comment 1 Eray Aslan gentoo-dev 2014-03-11 21:03:25 UTC
Added to squid-3.4.4.  Thanks for the report.