[lfs-fr] [BLFS-EN] r10186

Robot myou72 at orange.fr
Sam 12 Mai 13:31:47 PDT 2012


Révision 10186

fichiers modifiés :
   introduction/welcome/changelog.xml
   general.ent
   xsoft/other/icedtea-web.xml
   general/prog/llvm.xml
   general/genutils/screen.xml

Log :
Add clang to llvm. Add a note to screen about changing tty gid values.

Le robot a traité 4 % du commit anglais
Index: general.ent
===================================================================
--- general.ent	(revision 10185)
+++ general.ent	(revision 10186)
@@ -942,7 +942,7 @@
 {!ENTITY gparted-version              "0.12.1"}
 {!ENTITY gnash-version                "0.8.10"}
 {!ENTITY gimp-version                 "2.8.0"}
-{!ENTITY icedtea-web-version          "1.0.1"}
+{!ENTITY icedtea-web-version          "1.2"}
 {!ENTITY inkscape-version             "0.48.2"}
 {!ENTITY pan-version                  "0.133"}
 {!ENTITY pidgin-version               "2.10.2"}

Index: general/genutils/screen.xml
===================================================================
--- general/genutils/screen.xml	(revision 10185)
+++ general/genutils/screen.xml	(revision 10186)
@@ -107,6 +107,10 @@
     {para}{parameter}--with-pty-group=4 {/parameter}: This option sets the gid
     to the value used by LFS.{/para}
 
+    {note}{para}Newer versions of LFS use the value 5 for the tty group.  If
+    you are using the development version of LFS, change the pty-group option
+    to 5.{/para}{/note}
+
     {para}{command}sed -i -e "s%/usr/local/etc/screenrc%/etc/screenrc%"
     {etc,doc}/*{/command}: This command corrects the configuration and
     documentation files to the location that is used here for the global

Index: general/prog/llvm.xml
===================================================================
--- general/prog/llvm.xml	(revision 10185)
+++ general/prog/llvm.xml	(revision 10186)
@@ -9,7 +9,7 @@
   {!ENTITY llvm-md5sum "a8e5f5f1c1adebae7b4a654c376a6005"}
   {!ENTITY llvm-size "9.9 MB"}
   {!ENTITY llvm-buildsize "265 MB"}
-  {!ENTITY llvm-time "13.2 SBU"}
+  {!ENTITY llvm-time "13.2 SBU (add about 7 SBU for clang)"}
 ]}
 
@@ -30,13 +30,16 @@
     {title}Introduction to LLVM{/title}
 
     {para}The {application}llvm{/application} package contains a collection of
-    modular and reusable compiler and toolchain technologies. The LLVM Core
-    libraries provide a modern source- and target-independent optimizer, along
-    with code generation support for many popular CPUs (as well as some less
-    common ones!) These libraries are built around a well specified code
-    representation known as the LLVM intermediate representation ("LLVM
-    IR").{/para}
+    modular and reusable compiler and toolchain technologies. The Low Level
+    Virtual MAchine (LLVM)  Core libraries provide a modern source- and
+    target-independent optimizer, along with code generation support for many
+    popular CPUs (as well as some less common ones!) These libraries are built
+    around a well specified code representation known as the LLVM intermediate
+    representation ("LLVM IR").{/para}
 
+    {para}The optional {application}clang{/application} package provides a
+    new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.{/para}
+
     &lfs71_checked;
 
     {bridgehead renderas="sect3"}Package Information{/bridgehead}
@@ -61,13 +64,26 @@
       {/listitem}
     {/itemizedlist}
 
+    {bridgehead renderas="sect3"}Additional Downloads{/bridgehead}
+    {itemizedlist spacing='compact'}
+      {listitem}
+        {para}Optional package: 
+          {ulink url="http://llvm.org/releases/&llvm-version;/clang-&llvm-version;.tar.gz"/}
+        {/para}
+      {/listitem}
+    {/itemizedlist}
+
     {bridgehead renderas="sect3"}LLVM Dependencies{/bridgehead}
 
+    {bridgehead renderas="sect4"}Recommended{/bridgehead}
+    {para role="recommended"}
+       {xref linkend="libffi"/}
+    {/para}
+
     {bridgehead renderas="sect4"}Optional{/bridgehead}
     {para role="optional"}
-       {xref linkend="doxygen"/},
-       {xref linkend="graphviz"/}, and
-       {xref linkend="libffi"/}
+       {xref linkend="doxygen"/} and 
+       {xref linkend="graphviz"/}
     {/para}
 
@@ -78,51 +94,64 @@
   {sect2 role="installation"}
     {title}Installation of LLVM{/title}
 
+    {para}If you downloaded the optional {application}clang{/application} package,
+    install it into the source tree:{/para}
+
+{screen}{userinput}tar -xf ../clang-3.0.tar.gz -C tools &&
+mv tools/clang-3.0.src tools/clang{/userinput}{/screen}
+
     {para}Install {application}llvm{/application} by running the following
     commands:{/para}
 
-{screen}{userinput}touch tools/edis/EnhancedDisassembly.exports               &&
-./configure --prefix=/opt/llvm                             &&
-find -name Makefile -exec                                  \
-        sed -i -r -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1'  \
-                  -e 's#BUILD_ARCHIVE :*= 1#NO_&#'         \
-                  -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' \
-                  -e 's#^USEDLIBS#LDFLAGS#' {} \;          &&
-sed -i 's#BUILD_ARCHIVE = 1#NO_&#' Makefile.rules          &&
-sed -i 's#x)/docs#x)/share/doc#' Makefile.config           &&
+{screen}{userinput}touch tools/edis/EnhancedDisassembly.exports &&
+
+CFLAGS="$CFLAGS -fno-tree-pre"               &&
+CXXFLAGS="$CXXFLAGS -fno-tree-pre"           &&
+
+sed -i -e 's:\$(PROJ_prefix)/etc/llvm:/etc/llvm:'                      \
+       -e 's:\$(PROJ_prefix)/lib:$(PROJ_prefix)/lib/llvm:'             \
+       -e 's:\$(PROJ_prefix)/docs/llvm:$(PROJ_prefix)/share/doc/llvm:' \
+       Makefile.config.in  &&
+
+sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' Makefile.rules &&
+
+export CPPFLAGS="$CPPFLAGS $(pkg-config --cflags libffi)"                  &&
+
+CC=gcc                                 \
+CXX=g++                                \
+./configure --prefix=/usr              \
+            --libdir=/usr/lib/llvm     \
+            --sysconfdir=/etc          \
+            --enable-shared            \
+            --enable-libffi            \
+            --enable-targets=all       \
+            --disable-expensive-checks \
+            --disable-debug-runtime    \
+            --disable-assertions       \
+            --enable-optimized        &&
+
 make{/userinput}{/screen}
 
     {para}To test the results, issue: {command}make check{/command}.{/para}
-{screen role="root"}{userinput}make install                            &&
-echo "/opt/llvm/lib" }} /etc/ld.so.conf &&
-ldconfig                                &&
-echo "pathappend /usr/share/man MANPATH"      >> /etc/profile.d/extrapaths.sh &&
-echo "pathappend /opt/llvm/share/man MANPATH" >> /etc/profile.d/extrapaths.sh &&
-echo "pathappend /opt/llvm/bin"               >> /etc/profile.d/extrapaths.sh &&
-ln -svf /opt/llvm/share/doc /usr/share/doc/llvm-&llvm-version;{/userinput}{/screen}
+{screen role="root"}{userinput}make install{/userinput}{/screen}
 
   {/sect2}
 
-    {para}{parameter}--prefix=/opt/llvm{/parameter}: This package has a large
-    number of libraries and executables.  This option keeps them
-    separate.{/para}
+    {para}{userinput}CFLAGS=... CXXFLAGS=...{/userinput}:  Build without 
+    -ftree-pre as a workaround for clang segfaulting on x86_64 systems.{/para}
 
-    {para}{userinput}find -name Makefile -exec sed ...{/userinput}: This
-    command ensures that dynamic libraries are built.{/para}
+    {para}{userinput}sed ... Makefile.config.in{/userinput}: This fixes 
+    installation directories.{/para}
 
-    {para}{userinput}sed ... Makefile.rules{/userinput}: This
-    command disables building static libraries.{/para}
+    {para}{userinput}sed ... Makefile.rules{/userinput}: This fixes an insecure
+    rpath that points ot the build directory.{/para}
 
-    {para}{userinput}echo "pathappend ..." >>
-    /etc/profile.d/extrapaths.sh{/userinput}: Set up the user paths properly to
-    find the program executables and man pages.{/para}
-
   {/sect2}
 
   {sect2 role="content"}
@@ -134,9 +163,9 @@
       {segtitle}Installed Directories{/segtitle}
 
       {seglistitem}
-        {seg}numerous programs installed in /opt/llvm/bin{/seg}
-        {seg}numerous libraries installed in /opt/llvm/lib{/seg}
-        {seg}/opt/llvm{/seg}
+        {seg}clang, clang++, and numerous llvm-* build tools{/seg}
+        {seg}numerous custom libraries to support llvm and clang programs{/seg}
+        {seg}/usr/lib/{clang,llvm}, /usr/share/doc/llvm{/seg}
       {/seglistitem}
     {/segmentedlist}
 {!--

Index: introduction/welcome/changelog.xml
===================================================================
--- introduction/welcome/changelog.xml	(revision 10185)
+++ introduction/welcome/changelog.xml	(revision 10186)
@@ -43,9 +43,12 @@
 --}
 
     {listitem}
-      {para}May 12th, 2012{/para}
+      {para}May 12rd, 2012{/para}
       {itemizedlist}
         {listitem}
+          {para}[bdubbs] - Add clang to llvm.{/para}
+        {/listitem}
+        {listitem}
           {para}[rthomsen] - Update to libdrm 2.4.34.{/para}
         {/listitem}
       {/itemizedlist}

Index: xsoft/other/icedtea-web.xml
===================================================================
--- xsoft/other/icedtea-web.xml	(revision 10185)
+++ xsoft/other/icedtea-web.xml	(revision 10186)
@@ -71,15 +71,12 @@
     {para}Install {application}IcedTea-Web{/application} by running the
     following commands:{/para}
 
-{screen}{userinput}sed 's at prefix)/man at mandir)@' \
-    -i Makefile.in &&
-./configure --prefix=${JAVA_HOME}/jre \
+{screen}{userinput}./configure --prefix=${JAVA_HOME}/jre    \
             --with-jdk-home=${JAVA_HOME} \
             --mandir=${JAVA_HOME}/man &&
 make{/userinput}{/screen}
-{!-- {para}To test the results, issue: {command}make test{/command}.{/para} --}
     {para}This package does not come with a test suite.{/para}
 
     {para}Now, as the {systemitem class="username"}root{/systemitem} user:{/para}




More information about the lfs-traducfr mailing list