Changeset d282f88 for chapter08


Ignore:
Timestamp:
01/21/2024 04:27:45 PM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
943f225
Parents:
619e4d9
git-author:
Xi Ruoyao <xry111@…> (01/19/2024 04:47:33 AM)
git-committer:
Xi Ruoyao <xry111@…> (01/21/2024 04:27:45 PM)
Message:

ncurses: Modify the header to always use the ABI of ncursesw

instead of the 8-bit ncurses.

We don't provide the 8-bit ncurses library and we are "faking" it using
ncursesw. Thus innocent package may be compiled with the 8-bit ABI
(because it does not know what we are doing and so it does not use
the "expected" preprocessor definitions to enable the wide ABI) but
linked against ncursesw, causing a potential ABI mismatch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

    r619e4d9 rd282f88  
    132132    from the library file.  Install the package with
    133133    <literal>DESTDIR</literal>, and replace the library file correctly using
    134     <command>install</command> command:</para>
     134    <command>install</command> command (the header
     135    <filename>curses.h</filename> is also edited to ensure the
     136    wide-character ABI to be used as what we've done in
     137    <xref linkend='ch-tools-ncurses'/>):</para>
    135138
    136139<screen><userinput remap="install">make DESTDIR=$PWD/dest install
    137140install -vm755 dest/usr/lib/libncursesw.so.&ncurses-version; /usr/lib
    138141rm -v  dest/usr/lib/libncursesw.so.&ncurses-version;
     142sed -e 's/^#if.*XOPEN.*$/#if 1/' \
     143    -i dest/usr/include/curses.h
    139144cp -av dest/* /</userinput></screen>
    140145
Note: See TracChangeset for help on using the changeset viewer.