Changeset e34c9a40 for general/prog


Ignore:
Timestamp:
10/11/2023 04:20:41 PM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
e0b726d
Parents:
418edc0
git-author:
Xi Ruoyao <xry111@…> (10/11/2023 04:14:19 PM)
git-committer:
Xi Ruoyao <xry111@…> (10/11/2023 04:20:41 PM)
Message:

vala: Fix a crash building NetworkManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/vala.xml

    r418edc0 re34c9a40  
    9595    <title>Installation of Vala</title>
    9696
     97    <!-- https://gitlab.gnome.org/GNOME/vala/-/issues/1485 -->
     98    <para>
     99      At first, fix an issue causing <command>vapigen</command> to crash
     100      building some packages (for example NetworkManager):
     101    </para>
     102
     103<screen><userinput>sed -e "/next_pos =/s/$/ \
     104        char buf[16]; \
     105        Memory.copy (buf, next_pos, \
     106        (end - next_pos >= buf.length ? buf.length - 1 : end - next_pos));/" \
     107    -e 's/(string) next_pos/(string) buf/' \
     108    -i vala/valamarkupreader.vala</userinput></screen>
     109
    97110    <para>
    98111      Install <application>Vala</application> by running the following
     
    101114
    102115<screen><userinput>./configure --prefix=/usr &amp;&amp;
    103 make</userinput></screen>
     116make bootstrap</userinput></screen>
    104117
    105118    <para>
     
    119132
    120133    <para>
     134      <parameter>bootstrap</parameter>: This <command>make</command>
     135      target forces the building system to build the package twice and use
     136      the <command>vala</command> executable produced in the first build
     137      to regenerate the <filename class="extension">.c</filename> files
     138      from the <filename class="extension">.vala</filename> files if needed.
     139      Since the <command>vala</command> executable is not installed yet,
     140      this is necessary for really fixing the crash because the fix has
     141      modified a <filename class="extension">.vala</filename> file.
     142    </para>
     143
     144    <para>
    121145      <option>--disable-valadoc</option>: This option is
    122146      required if <xref linkend="graphviz"/> is not installed.
    123147    </para>
    124 
    125148  </sect2>
    126149
Note: See TracChangeset for help on using the changeset viewer.