[nautilus/wip/oholy/dockerfile-uncrustify] ci: Build uncrustify from sources




commit 78dc9867c24b3d8a4ee78134aecaee61cf023798
Author: Ondrej Holy <oholy redhat com>
Date:   Wed Jul 14 09:36:07 2021 +0200

    ci: Build uncrustify from sources
    
    The following fix is needed:
    https://github.com/uncrustify/uncrustify/pull/3235

 .gitlab/Dockerfile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab/Dockerfile b/.gitlab/Dockerfile
index 8043417d4..570349c6b 100644
--- a/.gitlab/Dockerfile
+++ b/.gitlab/Dockerfile
@@ -1,6 +1,6 @@
 FROM fedora:rawhide
 
-RUN dnf install --nogpg -y dnf-plugins-core uncrustify findutils git libportal-devel tracker3-miners 
python3-gobject dbus-daemon libhandy1-devel \
+RUN dnf install --nogpg -y dnf-plugins-core findutils git libportal-devel tracker3-miners python3-gobject 
dbus-daemon libhandy1-devel \
  && dnf builddep --nogpg -y nautilus \
  && dnf clean all
 
@@ -24,3 +24,17 @@ RUN dnf builddep --nogpg -y libhandy \
  && ninja -C _build install \
  && cd .. \
  && rm -rf libhandy
+
+RUN dnf builddep --nogpg -y uncrustify \
+ && dnf clean all \
+ && git clone https://github.com/uncrustify/uncrustify.git \
+ && git fetch origin pull/3235/head:fix \
+ && git checkout fix \
+ && cd uncrustify \
+ && mkdir build \
+ && cd build \
+ && cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
+ && make \
+ && make install \
+ && cd ../.. \
+ && rm -rf uncrustify


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]