You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2022/09/12 17:37:09 UTC

[daffodil] branch main updated: Require EPEL when building Daffodil on CentOS/RHEL

This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new e6475462b Require EPEL when building Daffodil on CentOS/RHEL
e6475462b is described below

commit e6475462b3a9466bf76c81594901789df795a738
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Thu Sep 8 14:11:35 2022 -0400

    Require EPEL when building Daffodil on CentOS/RHEL
    
    The mxml-dependency is available in the EPEL repos for EL 7, 8, and 9.
    Rather than requiring that users build mxml from scratch on CentOS/RHEL,
    modify the build instructions to just require the EPEL repository, and
    provide a link to the instructions.
    
    This also combines the CentOS and Fedora instructions to avoid any
    potential confusion or errors caused by users following Fedora
    instructions to build on RHEL.
    
    DAFFODIL-2710
---
 BUILD.md | 33 +++++----------------------------
 1 file changed, 5 insertions(+), 28 deletions(-)

diff --git a/BUILD.md b/BUILD.md
index ddbfe5fd6..2c5bb71b7 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -43,35 +43,11 @@ commands (or set them to `true` to disable C compilation altogether)
 if you don't want `sbt compile` to call your C compiler with `cc` and
 `ar` as the default commands.
 
-## CentOS 7
+## Fedora/CentOS/RHEL
 
-You can use the `yum` package manager to install most of the tools
-needed to build Daffodil:
-
-    sudo yum install clang gcc git java-11-openjdk-devel llvm make pkgconfig
-
-If you want to use clang instead of gcc, you'll have to set your
-environment variables `CC` and `AR` to the clang binaries' names:
-
-    export CC=clang AR=llvm-ar
-
-However, CentOS has no [mxml-devel][Mini-XML] or [sbt][SBT] packages
-in its own repositories.  You'll have to install the latest [SBT]
-version following its website's instructions and you'll have to build
-the [Mini-XML] library from source:
-
-    git clone -b v3.3 https://github.com/michaelrsweet/mxml.git
-    # ./configure fails if you use CC=clang
-    unset CC AR
-    cd mxml
-    ./configure --prefix=/usr --disable-shared --disable-threads
-    make
-    sudo make install
-
-Now you can build Daffodil from source and the sbt and daffodil
-commands you type will be able to call the C compiler.
-
-## Fedora 35
+When building on CentOS or RHEL, the [EPEL] repository must be enabled by
+following its website's instructions. This is necessary to install the
+[libmxml-devel][Mini-XML] package.
 
 You can use the `dnf` package manager to install most of the tools
 needed to build Daffodil:
@@ -154,3 +130,4 @@ will be able to call the C compiler.
 [SBT]: https://www.scala-sbt.org/
 [clang]: https://clang.llvm.org/get_started.html
 [gcc]: https://linuxize.com/post/how-to-install-gcc-on-ubuntu-20-04/
+[EPEL]: https://docs.fedoraproject.org/en-US/epel/