Skip to content
Snippets Groups Projects
Unverified Commit 8618a0f5 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

packaging: fix snapcraft.yml and remove deprecated submodules

Change-Id: I351d4c964967340277891b7e541e37615304f80c
parent c3cf4d59
No related branches found
No related tags found
No related merge requests found
[submodule "client-android"] [submodule "client-android"]
path = client-android path = client-android
url = https://review.jami.net/jami-client-android url = https://review.jami.net/jami-client-android
[submodule "client-gnome"]
path = client-gnome
url = https://review.jami.net/jami-client-gnome
[submodule "daemon"] [submodule "daemon"]
path = daemon path = daemon
url = https://review.jami.net/jami-daemon url = https://review.jami.net/jami-daemon
[submodule "lrc"]
path = lrc
url = https://review.jami.net/jami-libclient
[submodule "client-macosx"] [submodule "client-macosx"]
path = client-macosx path = client-macosx
url = https://review.jami.net/jami-client-macos url = https://review.jami.net/jami-client-macos
[submodule "client-ios"] [submodule "client-ios"]
path = client-ios path = client-ios
url = https://review.jami.net/jami-client-ios url = https://review.jami.net/jami-client-ios
[submodule "client-uwp"]
path = client-uwp
url = https://review.jami.net/jami-client-uwp
[submodule "client-qt"] [submodule "client-qt"]
path = client-qt path = client-qt
url = https://review.jami.net/jami-client-qt url = https://review.jami.net/jami-client-qt
[submodule "plugins"] [submodule "plugins"]
path = plugins path = plugins
url = https://review.jami.net/jami-plugins url = https://review.jami.net/jami-plugins
[submodule "lrc-gnome"]
path = lrc-gnome
url = https://review.jami.net/jami-libclient
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
// - Allow publishing from any node, to avoid relying on a single machine. // - Allow publishing from any node, to avoid relying on a single machine.
// Configuration globals. // Configuration globals.
def SUBMODULES = ['daemon', 'lrc', 'client-qt'] def SUBMODULES = ['daemon', 'client-qt']
def TARGETS = [:] def TARGETS = [:]
def REMOTE_HOST = env.SSH_HOST_DL_RING_CX def REMOTE_HOST = env.SSH_HOST_DL_RING_CX
def REMOTE_BASE_DIR = '/srv/repository/ring' def REMOTE_BASE_DIR = '/srv/repository/ring'
...@@ -138,8 +138,8 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration_client ...@@ -138,8 +138,8 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration_client
sh """git checkout ${params.CHANNEL} sh """git checkout ${params.CHANNEL}
git reset --hard origin/${params.CHANNEL} git reset --hard origin/${params.CHANNEL}
# Submodules are generally not managed by merging # Submodules are generally not managed by merging
git merge -X theirs --no-commit FETCH_HEAD
git status git status
git merge -X theirs --no-commit FETCH_HEAD
""" """
} }
} }
......
...@@ -395,7 +395,7 @@ def run_init(): ...@@ -395,7 +395,7 @@ def run_init():
for name in module_names: for name in module_names:
copy_file("./scripts/commit-msg", ".git/modules/"+name+"/hooks") copy_file("./scripts/commit-msg", ".git/modules/"+name+"/hooks")
module_names_to_format = ['daemon', 'lrc', 'client-qt', 'plugins'] module_names_to_format = ['daemon', 'client-qt', 'plugins']
for name in module_names_to_format: for name in module_names_to_format:
execute_script( execute_script(
['./scripts/format.sh --install %(path)s'], ['./scripts/format.sh --install %(path)s'],
......
client-gnome @ d493e44f
Subproject commit d493e44ff3fd106456df85d0e73f6b3c08ecd38c
client-uwp @ 4b639e9a
Subproject commit 4b639e9a903931bab09292b4d93a4de6d531ae4c
lrc @ 48db64cb
Subproject commit 48db64cbcd3a8d7a12cad940694ce9239b8db576
lrc-gnome @ 74fcb074
Subproject commit 74fcb074357421dad30181ee5b46cebd79166ca9
...@@ -243,8 +243,6 @@ parts: ...@@ -243,8 +243,6 @@ parts:
- -usr/share/doc/libldap-common/changelog.Debian.gz - -usr/share/doc/libldap-common/changelog.Debian.gz
build-environment: build-environment:
- QT_BASE_DIR: "/usr/lib/libqt-jami" - QT_BASE_DIR: "/usr/lib/libqt-jami"
- QTDIR: "$QT_BASE_DIR"
- QTVER: "6.2.0"
- PATH: "$QT_BASE_DIR/bin:$PATH" - PATH: "$QT_BASE_DIR/bin:$PATH"
- LD_LIBRARY_PATH: "$QT_BASE_DIR/lib:$LD_LIBRARY_PATH" - LD_LIBRARY_PATH: "$QT_BASE_DIR/lib:$LD_LIBRARY_PATH"
- PKG_CONFIG_PATH: "$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH" - PKG_CONFIG_PATH: "$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
...@@ -286,11 +284,10 @@ parts: ...@@ -286,11 +284,10 @@ parts:
cd $SNAPCRAFT_PART_BUILD/client-qt cd $SNAPCRAFT_PART_BUILD/client-qt
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ cmake .. -DENABLE_LIBWRAP=true \
-DCMAKE_PREFIX_PATH=$SNAPCRAFT_PART_INSTALL/usr \
-DENABLE_STATIC=true -DENABLE_LIBWRAP=true \ \
-DLIBJAMI_BUILD_DIR=$SNAPCRAFT_PART_BUILD/daemon/src \ -DLIBJAMI_BUILD_DIR=$SNAPCRAFT_PART_BUILD/daemon/src \
-DQT6_VER=$QTVER -DQT6_PATH=$QTDIR -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
DESTDIR=$SNAPCRAFT_PART_INSTALL make install DESTDIR=$SNAPCRAFT_PART_INSTALL make install
build-packages: build-packages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment