[squid-users] using clang to compile squid 4-5
L.P.H. van Belle
belle at bazuin.nl
Wed Jan 30 16:12:14 UTC 2019
Hai,
Good to hear there are more then Luigi :-)
I builded debian packages yesterday for squid 4.5
Which was pretty simple and worked fine in the end.
Get the source of 4.4 ( apt-get source -t unstable squid )
Copy the debian folder from 4.4 into the 4.5 folder.
And changed in the changelog the squid version, builded fine.
Test build failed, my change was.
diff squid-4.4/debian/rules squid-4.5/debian/rules
22c22
< DEB_INSTALL_DOCS_squid-common := debian/copyright CONTRIBUTORS CREDITS QUICKSTART RELEASENOTES.html SPONSORS
---
> DEB_INSTALL_DOCS_squid-common := debian/copyright CONTRIBUTORS CREDITS QUICKSTART SPONSORS
4.5 was missing : RELEASENOTES.html
Uhm must say, i builded the "squid-4.5-20190128-r568e66b7c" version.
Working now on a backport for debian stretch.
Thank for all the good work Amos. ( and Luigi ) !
@Amos, any chance to upload 4.5 to unstable or experimental?
I was hoping that 4.5 would get into buster, im guessing thats not going to happen?
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: squid-users
> [mailto:squid-users-bounces at lists.squid-cache.org] Namens
> Amos Jeffries
> Verzonden: woensdag 30 januari 2019 14:08
> Aan: graf huy; squid-users at lists.squid-cache.org
> Onderwerp: Re: [squid-users] using clang to compile squid 4-5
>
> On 30/01/19 9:38 pm, graf huy wrote:
> > Hi,
> >
> > Using update-alternatives to set clang++ was a success, and export
> > CC=/usr/bin/clang does the job (trying two differents
> methods). Debian
> > project recommended to use export (CC,CCX) for versioning and only
> > update-alternatives for alternative as it says.
> > Anyway compilation with clang was as quick as gcc can do.
> >
>
> Great to know. Nothing to fix on that front for us then.
>
> >
> >>Seconded. With both my Squid Project and Debian pkg-squid
> Team hat's on
> >>I'd like to know why you feel any need to force the compiler?
> >
> > There were errors to patch with memcpy because of the gcc versionĀ
> > 8.2.0-14 Debian wich considers some warnings as errors, besides some
> > targets are BSD's.
> >
>
> I'm not sure I follow that. Are you building with patched GCC? or a
> patched libc? or something else?
>
> I build with the Debian Sid GCC version myself and have not seen these
> in any test builds with that or similar GCC versions. Am trying your
> build options now just to be sure.
>
>
> On the matter of BSD's, since they provide clang as the
> default compiler
> they (FreeBSD at least) build with clan/clang++ without any need for
> CC/CXX setting. We have Jenkins tests for that.
>
>
> >
> > Great to known you are on this package, I thought there was
> only Luigi
> > Gangitano (luigi at debian.org) for ages...
> >
>
> Welcome. There are several of us, with Luigi as team lead.
>
> Amos
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
More information about the squid-users
mailing list