Dragora GNU/Linux-Libre

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:81e238272002204b29fe46635775da2a9102c891
Date: 2017-10-06 17:50:01
User: selk
Comment:build gawk without libsigsegv which was causing segfaults due to the shared libraries; also, include a patch to solve a warning on getopt.c
Tags And Properties
Context
2017-10-06
18:34
[148bb72e16] reconfigure xkeyboard-config (user: selk, tags: trunk)
17:50
[81e2382720] build gawk without libsigsegv which was causing segfaults due to the shared libraries; also, include a patch to solve a warning on getopt.c (user: selk, tags: trunk)
17:48
[94b437b1fa] compile libsigsegv without shared libraries (the default) (user: selk, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added patches/gawk/getopt_header.diff.





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
--- gawk-4.1.4/getopt.c.orig	2016-05-30 18:54:03.000000000 -0300
+++ gawk-4.1.4/getopt.c	2017-10-05 21:28:38.408048353 -0300
@@ -30,6 +30,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C

Changes to recipes/tools/gawk/recipe.

36
37
38
39
40
41
42



43
44
45
46
47
48


49
50
51
52
53
54
55
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"




    ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
     $configure_args \
     --libdir=/usr/lib${libSuffix} \
     --infodir=$infodir \
     --mandir=$mandir \
     --docdir=$docsdir \


     --build="$(cc -dumpmachine)"

    make -j${jobs} V=1
    make -j${jobs} DESTDIR="$destdir" install

    # Replace hard link with a soft link
    (







>
>
>






>
>







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
    set -e

    unpack "${tardir}/$tarname"

    cd "$srcdir"

    # Patch to include a missing header in getopt.c
    patch -Np1 -i "${worktree}/patches/gawk/getopt_header.diff"

    ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
     $configure_args \
     --libdir=/usr/lib${libSuffix} \
     --infodir=$infodir \
     --mandir=$mandir \
     --docdir=$docsdir \
     --without-libsigsegv-prefix \
     --disable-nls \
     --build="$(cc -dumpmachine)"

    make -j${jobs} V=1
    make -j${jobs} DESTDIR="$destdir" install

    # Replace hard link with a soft link
    (