Re: makepkg

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



That export patch failed and generated more error lines than the original
PKGBUILD had.  I put that export line as the first line of the prepare
section in the PKGBUILD as a test.


-- Jude <jdashiel at panix dot com> "There are four boxes to be used in
defense of liberty: soap, ballot, jury, and ammo. Please use in that
order." Ed Howdershelt 1940.

On Thu, 23 Nov 2023, Jelle van der Waa wrote:

> Hi,
>
> On 23/11/2023 14:39, Jude DaShiell wrote:
> > cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
> > -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
> > -fstack-clash-protection -fcf-protection -Wall -Wno-unused
> > -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX     -c -o fetchmail.o
> > fetchmail.c
> > fetchmail.c: In function ‘scanFolder’:
> > fetchmail.c:859:51: error: format not a string literal and no format
> > arguments [-Werror=format-security]
> >    859 |                         if(!isInteractive) printf(inputline);
> >        |                                                   ^~~~~~~~~
> > fetchmail.c:1016:59: error: format not a string literal and no format
> > arguments [-Werror=format-security]
> >   1016 |                                 if(!isInteractive)
> > printf(inputline);
> >        |
> > ^~~~~~~~~
> > fetchmail.c:1081:51: error: format not a string literal and no format
> > arguments [-Werror=format-security]
> >   1081 |                         if(!isInteractive) printf(inputline);
> >        |                                                   ^~~~~~~~~
>
> Bad advice:
>
> [jelle@t14s][~/projects/cockpit/main]%grep "Werror=format-security"
> /etc/makepkg.conf
>         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
>
> Change that, but it will affect all packages build locally of course which is
> undesired.
>
> Better advice:
>
> export CFLAGS="${CFLAGS} -Wno-format-security" in the PKGBUILD
>
> Best advice:
>
> Report this issue upstream, it should be a trivial patch to write.
>
>




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux