From 00c3f7aae2bdda6e444380a14eaf35fedff7f9eae54b6440cc1852f15d6d6a66 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Fri, 17 May 2024 11:13:00 +0000 Subject: [PATCH 1/5] Accepting request 1174684 from home:dziobian:gulgul-ultron:19 - Use bundled sqlcipher to work around symbol collision through mozilla-nss (gh#sqlcipher/sqlcipher#385) - Ship app unpacked instead of using asar - Remove development-only files that should not be shipped (bsc#1224133) - prepare.sh: * Ship dependencies as node_modules tree for patching possibility (yarn offline does not support patching) * Work around non-reproducible hakModules dependencies (gh#element-hq/element-desktop#1634) (hak-remove-devdependencies.patch) * Remove non-free binaries from archive * Remove vendored openssl copy from archive * Put everything into one archive - Use correct CFLAGS and RUSTFLAGS * add cc-link-lib-no-static.patch - Fix various build errors with electron-builder * 7za-path.patch * remove-fuses.patch - BuildRequire app-builder instead of using a non-free binary - Add standard Electron module load %check - Clean up unneeded BuildRequires - Drop unused electron-web source copy - Fix build error on ix86 and arm - Fix unresolvable build on Fedora OBS-URL: https://build.opensuse.org/request/show/1174684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=58 --- 7za-path.patch | 14 ++ cc-link-lib-no-static.patch | 18 +++ element-desktop.changes | 27 ++++ element-desktop.sh | 2 +- element-desktop.spec | 238 ++++++++++++++++++++---------- element-web-1.11.65.tar.gz | 3 - hak-remove-devdependencies.patch | 29 ++++ hak.tar.gz | 3 - npm-packages-offline-cache.tar.gz | 3 - prepare.sh | 101 ++++++++----- remove-fuses.patch | 35 +++++ vendor.tar.zst | 3 + 12 files changed, 345 insertions(+), 131 deletions(-) create mode 100644 7za-path.patch create mode 100644 cc-link-lib-no-static.patch delete mode 100644 element-web-1.11.65.tar.gz create mode 100644 hak-remove-devdependencies.patch delete mode 100644 hak.tar.gz delete mode 100644 npm-packages-offline-cache.tar.gz create mode 100644 remove-fuses.patch create mode 100644 vendor.tar.zst diff --git a/7za-path.patch b/7za-path.patch new file mode 100644 index 0000000..3c09a11 --- /dev/null +++ b/7za-path.patch @@ -0,0 +1,14 @@ +7-zip is not actually used during build + +--- vendor/node_modules/builder-util/out/7za.js.orig 2024-05-15 21:11:29.747999000 +0200 ++++ vendor/node_modules/builder-util/out/7za.js 2024-05-15 23:22:09.712045854 +0200 +@@ -4,8 +4,7 @@ exports.getPath7x = exports.getPath7za = + const _7zip_bin_1 = require("7zip-bin"); + const fs_extra_1 = require("fs-extra"); + async function getPath7za() { +- await (0, fs_extra_1.chmod)(_7zip_bin_1.path7za, 0o755); +- return _7zip_bin_1.path7za; ++ return '/bin/false' + } + exports.getPath7za = getPath7za; + async function getPath7x() { diff --git a/cc-link-lib-no-static.patch b/cc-link-lib-no-static.patch new file mode 100644 index 0000000..a5d3a1c --- /dev/null +++ b/cc-link-lib-no-static.patch @@ -0,0 +1,18 @@ +Do not make cc emit "static" to cargo, that option is broken (rustc tries to repact LTO objects and corrupts them in the process leading to missing symbols). +Make rustc believe everything foreign is a “dylib”. (It's not, but that makes it pass them to intact to GCC to do the linking) + +--- vendor/.hak/hakModules/matrix-seshat/vendor/cc/src/lib.rs.orig 2024-05-16 18:44:16.828468243 +0200 ++++ vendor/.hak/hakModules/matrix-seshat/vendor/cc/src/lib.rs 2024-05-16 19:04:27.036595422 +0200 +@@ -1100,10 +1100,10 @@ impl Build { + } + + if self.link_lib_modifiers.is_empty() { +- self.print(&format!("cargo:rustc-link-lib=static={}", lib_name)); ++ self.print(&format!("cargo:rustc-link-lib={}", lib_name)); + } else { + let m = self.link_lib_modifiers.join(","); +- self.print(&format!("cargo:rustc-link-lib=static:{}={}", m, lib_name)); ++ self.print(&format!("cargo:rustc-link-lib:{}={}", m, lib_name)); + } + self.print(&format!("cargo:rustc-link-search=native={}", dst.display())); + diff --git a/element-desktop.changes b/element-desktop.changes index a6da1a0..3de00a3 100644 --- a/element-desktop.changes +++ b/element-desktop.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Thu May 16 19:47:15 UTC 2024 - Bruno Pitrus + +- Use bundled sqlcipher to work around symbol collision through mozilla-nss + (gh#sqlcipher/sqlcipher#385) +- Ship app unpacked instead of using asar +- Remove development-only files that should not be shipped (bsc#1224133) +- prepare.sh: + * Ship dependencies as node_modules tree for patching possibility + (yarn offline does not support patching) + * Work around non-reproducible hakModules dependencies + (gh#element-hq/element-desktop#1634) (hak-remove-devdependencies.patch) + * Remove non-free binaries from archive + * Remove vendored openssl copy from archive + * Put everything into one archive +- Use correct CFLAGS and RUSTFLAGS + * add cc-link-lib-no-static.patch +- Fix various build errors with electron-builder + * 7za-path.patch + * remove-fuses.patch +- BuildRequire app-builder instead of using a non-free binary +- Add standard Electron module load %check +- Clean up unneeded BuildRequires +- Drop unused electron-web source copy +- Fix build error on ix86 and arm +- Fix unresolvable build on Fedora + ------------------------------------------------------------------- Tue Apr 23 13:54:23 UTC 2024 - Dominik Heidler diff --git a/element-desktop.sh b/element-desktop.sh index d52fda8..bcb6729 100644 --- a/element-desktop.sh +++ b/element-desktop.sh @@ -1,3 +1,3 @@ #!/bin/sh -exec electron /usr/share/element/app.asar "$@" +exec electron /usr/share/element/app "$@" diff --git a/element-desktop.spec b/element-desktop.spec index 41b69c8..09b66d3 100644 --- a/element-desktop.spec +++ b/element-desktop.spec @@ -23,143 +23,217 @@ Summary: A glossy Matrix collaboration client - desktop License: Apache-2.0 URL: https://github.com/vector-im/element-desktop Source0: https://github.com/vector-im/element-desktop/archive/v%{version}.tar.gz#/element-desktop-%{version}.tar.gz -Source1: https://github.com/vector-im/element-web/archive/v%{version}.tar.gz#/element-web-%{version}.tar.gz -Source2: npm-packages-offline-cache.tar.gz +Source2: vendor.tar.zst Source3: io.element.Element.desktop Source4: element-desktop.sh Source5: prepare.sh -Source6: hak.tar.gz +Patch0: hak-remove-devdependencies.patch +Patch1: 7za-path.patch +Patch2: cc-link-lib-no-static.patch +Patch3: remove-fuses.patch BuildRequires: element-web = %{version} +BuildRequires: app-builder +BuildRequires: cargo BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: jq -BuildRequires: moreutils BuildRequires: nodejs-electron-devel -BuildRequires: yarn -BuildRequires: rust -BuildRequires: cargo -BuildRequires: python3 -BuildRequires: sqlcipher-devel -BuildRequires: libsecret-devel -BuildRequires: gcc-c++ -BuildRequires: ccache -BuildRequires: zlib-devel -BuildRequires: asar -Requires: element-web = %{version} -Requires: nodejs-electron -%if 0%{?suse_version} <= 1540 -BuildRequires: nodejs18 +BuildRequires: pkgconfig(openssl) +BuildRequires: zstd +%if 0%{?fedora} +BuildRequires: rust-srpm-macros +%else +%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 +BuildRequires: cargo-packaging >= 1.2.0+3 +%else +BuildRequires: rust-packaging +%endif +BuildRequires: cargo-auditable +%endif + +BuildRequires: libsecret-devel +BuildRequires: gcc-c++ +Requires: element-web = %{version} +Requires: nodejs-electron%{_isa} + +#x86 electron requires SSE2 +%ifarch %ix86 +ExclusiveArch: i586 i686 +BuildArch: i686 +%{expand:%%global optflags %(echo "%optflags") -march=pentium4 -mtune=generic} +%{expand:%%global build_rustflags %(echo "%build_rustflags") -C target-cpu=pentium4 -Z tune-cpu=generic} %endif -# hak*.tar.gz only available for those architectures -ExclusiveArch: x86_64 aarch64 %description A glossy Matrix collaboration client - desktop %prep -%setup -q -a1 -a2 -a6 +%setup -q -a2 %autopatch -p1 -SYSTEM_ELECTRON_VERSION=$(<%{_libdir}/electron/version) -jq -c '.build["electronVersion"]="'$SYSTEM_ELECTRON_VERSION'" | .build["electronDist"]="%{_libdir}/electron"' < package.json | sponge package.json -jq -c '.build["linux"]["target"]="dir"' < package.json | sponge package.json -cat package.json -jq '.piwik=false | .update_base_url=null' < element.io/release/config.json | sponge element.io/release/config.json -# build tools expect python3 interpreter behind "python" -mkdir -p $HOME/bin -ln -sf /usr/bin/python3 $HOME/bin/python +# https://blogs.gnome.org/mcatanzaro/2020/05/18/patching-vendored-rust-dependencies/ +for i in cc libloading libsqlite3-sys openssl-src rustix seshat vcpkg; do +pushd .hak/hakModules/matrix-seshat/vendor/$i +jq -cj '.files={}' .cargo-checksum.json >tmp && mv tmp .cargo-checksum.json && popd +done + + +jq -cj '.piwik=false | .update_base_url=null' < element.io/release/config.json > tmp && mv -v tmp element.io/release/config.json -%ifarch aarch64 -mv -v .hak/matrix-seshat/x86_64-unknown-linux-gnu .hak/matrix-seshat/aarch64-unknown-linux-gnu -mv -v .hak/keytar/x86_64-unknown-linux-gnu .hak/keytar/aarch64-unknown-linux-gnu -%endif %build -echo 'yarn-offline-mirror "./npm-packages-offline-cache"' >> .yarnrc -echo 'nodedir %{_includedir}/electron' >> .yarnrc - +export CFLAGS="%{optflags} -fpic -fno-semantic-interposition -fno-fat-lto-objects -fvisibility=hidden" +export CXXFLAGS="%{optflags} -fpic -fno-semantic-interposition -fno-fat-lto-objects -fvisibility=hidden" +export LDFLAGS="%{?build_ldflags}" +export MAKEFLAGS="%{_smp_mflags}" export ELECTRON_SKIP_BINARY_DOWNLOAD=1 export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 +export USE_SYSTEM_APP_BUILDER=true +export OPENSSL_NO_VENDOR=1 +# The `cc` crate tries to be too clever and passes some default cflags when building sqlcipher. +# Disable these and use only the ones from CFLAGS env. variable +export CRATE_CC_NO_DEFAULTS=1 -yarn install --offline --pure-lockfile -export PATH="$(pwd)/node_modules/.bin:${HOME}/bin:${PATH}" -#export ELECTRON_BUILDER_CACHE="$(pwd)/electron-builder-offline-cache/" +%ifarch %ix86 +export RUSTC_BOOTSTRAP=1 +%endif +#I want to actually see the build logs for Cargo. Especially the gcc command line for dependent modules. +export RUSTC_LOG='rustc_codegen_ssa::back::link=info' +export RUSTFLAGS="%{build_rustflags} --verbose -Cstrip=none" +export CARGO_TERM_VERBOSE=true -yarn run hak build -yarn run hak copyandlink +%electron_rebuild -yarn run build:native -yarn run build:universal -pushd dist/linux-universal-unpacked/resources/ -# provide the app.asar.unpacked folder like pre 1.11.54 -mkdir -p app.asar.unpacked/node_modules/keytar/build/Release/ -asar ef app.asar .hak/hakModules/keytar/build/Release/keytar.node -mv keytar.node app.asar.unpacked/node_modules/keytar/build/Release/ - -mkdir -p app.asar.unpacked/node_modules/matrix-seshat/ -asar ef app.asar .hak/hakModules/matrix-seshat/index.node -mv index.node app.asar.unpacked/node_modules/matrix-seshat/ - -# repackage the asar file with the pre 1.11.54 format -asar e app.asar app.asar.repak -cp -av app.asar.repak/.hak/hakModules/* app.asar.repak/node_modules/ -asar p app.asar.repak/ app.asar -rm -r app.asar.repak/ +#We do manually the rough equivalent of `hak build` to inject correct optflags +pushd .hak/hakModules/keytar +%electron_rebuild popd +pushd .hak/hakModules/matrix-seshat +%if 0%{?suse_version} +auditable='auditable -vv' +%endif +cargo -vv $auditable rustc --offline --release --features=bundled-sqlcipher --lib --crate-type cdylib +ln -Tv target/release/*.so index.node +popd + + +#Compare definition of `build:universal` in package.json +npm run build:ts +npm run build:res +npx --no-install electron-builder --linux dir --universal -c.electronDist=%{_libdir}/electron -c.asar=false -c.nodeGypRebuild=false -c.npmRebuild=false + + + + %install +#Remove sources an other files that should not be shipped +pushd dist/linux-universal-unpacked/resources/app +rm -rf node_modules/matrix-seshat/{.cargo,false,src,target,test,vendor,Cargo.lock,Cargo.toml} +find -name '*.c' -type f -print -delete +find -name '*.cc' -type f -print -delete +find -name '*.cpp' -type f -print -delete +find -name '*.h' -type f -print -delete +find -name '*.m' -type f -print -delete +find -name '*.map' -type f -print -delete +find -name '*.ts' -type f -print -delete +find -name '*.tsx' -type f -print -delete +find -name '*.gyp' -type f -print -delete +find -name '*.gypi' -type f -print -delete +find -name '*.mk' -type f -print -delete +find -name '*.Makefile' -type f -print -delete +find -name '.eslint*' -type f -print -delete +find -name .editorconfig -type f -print -delete +find -name .nvmrc -type f -print -delete +find -name .nycrc -type f -print -delete +find -name Makefile -type f -print -delete +find -name '.jscs*' -type f -print -delete +find -name obj.target -print0 |xargs -r0 -- rm -rvf -- +find -name '*.d' -type f -print -delete + +#Documentation +find -name '*.md' -type f -print -delete +find -name '*.markdown' -type f -print -delete +find -name '*.bnf' -type f -print -delete +find -name '*.mli' -type f -print -delete +find -name CHANGES -type f -print -delete +find -name TODO -type f -print -delete +find -name usage.txt -type f -print -delete + +# Remove empty directories +find . -type d -empty -print -delete + +# fix file mode +find . -type f -exec chmod 0644 {} \; +find . -name '*.node' -exec chmod 0755 {} \; +popd + + + # Install the app content, replace the webapp with a symlink to the system package -install -d -m 0755 "%{buildroot}%{_datadir}/element/" -cp -av dist/linux-universal-unpacked/resources/* "%{buildroot}%{_datadir}/element/" -ln -s %{_datadir}/webapps/element "%{buildroot}%{_datadir}/element/webapp" +install -vd -m 0755 "%{buildroot}%{_datadir}/element/" +cp -lrv dist/linux-universal-unpacked/resources/* -t "%{buildroot}%{_datadir}/element/" +ln -vs %{_datadir}/webapps/element "%{buildroot}%{_datadir}/element/webapp" # Install binaries to /usr/lib -install -d -m 0755 "%{buildroot}%{_prefix}/lib/element/" -install -m0755 dist/linux-universal-unpacked/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node "%{buildroot}%{_prefix}/lib/element/keytar.node" -install -m0755 dist/linux-universal-unpacked/resources/app.asar.unpacked/node_modules/matrix-seshat/index.node "%{buildroot}%{_prefix}/lib/element/matrix-seshat.node" -ln -sfv "%{_prefix}/lib/element/keytar.node" "%{buildroot}%{_datadir}/element/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node" -ln -sfv "%{_prefix}/lib/element/matrix-seshat.node" "%{buildroot}%{_datadir}/element/app.asar.unpacked/node_modules/matrix-seshat/index.node" +install -vd -m 0755 "%{buildroot}%{_prefix}/lib/element/" +install -pvm0755 dist/linux-universal-unpacked/resources/app/node_modules/keytar/build/Release/keytar.node "%{buildroot}%{_prefix}/lib/element/keytar.node" +install -pvm0755 dist/linux-universal-unpacked/resources/app/node_modules/matrix-seshat/index.node "%{buildroot}%{_prefix}/lib/element/matrix-seshat.node" +ln -sfv "%{_prefix}/lib/element/keytar.node" "%{buildroot}%{_datadir}/element/app/node_modules/keytar/build/Release/keytar.node" +ln -sfv "%{_prefix}/lib/element/matrix-seshat.node" "%{buildroot}%{_datadir}/element/app/node_modules/matrix-seshat/index.node" # Config file -install -m 0755 -d %{buildroot}%{_sysconfdir}/element -install -m 0644 element.io/release/config.json "%{buildroot}%{_sysconfdir}/element/config.json" +install -vm 0755 -d %{buildroot}%{_sysconfdir}/element +install -pvm 0644 element.io/release/config.json "%{buildroot}%{_sysconfdir}/element/config.json" -install -m 0755 -d %{buildroot}%{_sysconfdir}/webapps/element -ln -s %{_sysconfdir}/element/config.json "%{buildroot}%{_sysconfdir}/webapps/element/config.json" +install -pvm 0755 -d %{buildroot}%{_sysconfdir}/webapps/element +ln -vs %{_sysconfdir}/element/config.json "%{buildroot}%{_sysconfdir}/webapps/element/config.json" -install -d -m 0755 "%{buildroot}%{_datadir}/webapps/element/" -ln -s %{_sysconfdir}/element/config.json "%{buildroot}%{_datadir}/webapps/element/config.json" # moved here from element-web to make symlink check happy +install -vd -m 0755 "%{buildroot}%{_datadir}/webapps/element/" +ln -vs %{_sysconfdir}/element/config.json "%{buildroot}%{_datadir}/webapps/element/config.json" # moved here from element-web to make symlink check happy # Required extras -install -d -m 0755 "%{buildroot}%{_datadir}/applications/" -install -m 0644 %{SOURCE3} "%{buildroot}%{_datadir}/applications/io.element.Element.desktop" -install -d -m 0755 "%{buildroot}%{_bindir}/" -install -m 0755 %{SOURCE4} "%{buildroot}%{_bindir}/%{name}" +install -vd -m 0755 "%{buildroot}%{_datadir}/applications/" +install -pvm 0644 %{SOURCE3} "%{buildroot}%{_datadir}/applications/io.element.Element.desktop" +install -vd -m 0755 "%{buildroot}%{_bindir}/" +install -pvm 0755 %{SOURCE4} "%{buildroot}%{_bindir}/%{name}" # Icons -install -d -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/" -install -m 0644 element-web-%{version}/res/themes/element/img/logos/element-logo.svg "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.element.Element.svg" +install -vd -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/" for i in 16 24 48 64 96 128 256 512; do - install -d -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/" - install -m 0644 build/icons/${i}x${i}.png "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/io.element.Element.png" + install -vd -m 0755 "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/" + install -pvm 0644 build/icons/${i}x${i}.png "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/io.element.Element.png" done %fdupes %{buildroot}%{_datadir} +%check +%electron_check_native + %files %license LICENSE %{_bindir}/%{name} -%{_datadir}/element/ + +%dir %{_datadir}/element/ +%{_datadir}/element/webapp +%{_datadir}/element/app-update.yml +%dir %{_datadir}/element/app +%{_datadir}/element/app/lib +%{_datadir}/element/app/node_modules +%{_datadir}/element/app/package.json +%dir %{_datadir}/element/img +%{_datadir}/element/img/element.ico +%{_datadir}/element/img/element.png + %{_prefix}/lib/element/ %config(noreplace) %{_sysconfdir}/element/config.json %{_sysconfdir}/webapps/element/config.json %{_datadir}/webapps/element/config.json %dir %{_sysconfdir}/element/ %{_datadir}/applications/io.element.Element.desktop -%{_datadir}/icons/hicolor/scalable/apps/io.element.Element.svg %{_datadir}/icons/hicolor/*/apps/io.element.Element.png %changelog diff --git a/element-web-1.11.65.tar.gz b/element-web-1.11.65.tar.gz deleted file mode 100644 index c71480e..0000000 --- a/element-web-1.11.65.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e4fbe8f1e4091efb7c45d5c42730fc0ed97036a8dea7fbc7a2e0c5d6d554d40 -size 2384721 diff --git a/hak-remove-devdependencies.patch b/hak-remove-devdependencies.patch new file mode 100644 index 0000000..07d40f4 --- /dev/null +++ b/hak-remove-devdependencies.patch @@ -0,0 +1,29 @@ +hak fetch tries to download devDependencies for two modules. Unfortunately it does so in a very non-deterministic manner (no shrinkwrap file) +Remove that step since the devDependencies are not actually needed for any of these two modules. + +--- element-desktop-1.11.65/scripts/hak/fetch.ts.orig 2024-04-23 15:14:00.000000000 +0200 ++++ element-desktop-1.11.65/scripts/hak/fetch.ts 2024-05-15 19:40:21.779432272 +0200 +@@ -35,23 +35,6 @@ export default async function fetch(hakE + console.log("Fetching " + moduleInfo.name + "@" + moduleInfo.version); + + const packumentCache = new Map(); +- await pacote.extract(`${moduleInfo.name}@${moduleInfo.version}`, moduleInfo.moduleBuildDir, { +- packumentCache, +- }); +- +- console.log("Running yarn install in " + moduleInfo.moduleBuildDir); +- await new Promise((resolve, reject) => { +- const proc = childProcess.spawn(hakEnv.isWin() ? "yarn.cmd" : "yarn", ["install", "--ignore-scripts"], { +- stdio: "inherit", +- cwd: moduleInfo.moduleBuildDir, +- // We need shell mode on Windows to be able to launch `.cmd` executables +- // See https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2 +- shell: hakEnv.isWin(), +- }); +- proc.on("exit", (code) => { +- code ? reject(code) : resolve(); +- }); +- }); + + // also extract another copy to the output directory at this point + // nb. we do not yarn install in the output copy: we could install in diff --git a/hak.tar.gz b/hak.tar.gz deleted file mode 100644 index 56387bc..0000000 --- a/hak.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9266775907df3e6b82c2183b997f27cd81a28d2353496778bc6151fbb5eb47dc -size 130652001 diff --git a/npm-packages-offline-cache.tar.gz b/npm-packages-offline-cache.tar.gz deleted file mode 100644 index 991ff69..0000000 --- a/npm-packages-offline-cache.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4236876eeff2aacc1fa694a730e17268a93e1ec74066796b74e022d61835d271 -size 147561699 diff --git a/prepare.sh b/prepare.sh index 3af3fcb..082a1a2 100644 --- a/prepare.sh +++ b/prepare.sh @@ -2,75 +2,98 @@ set -ex + + + version=$1 sed -i -e "s/^\(Version: *\)[^ ]*$/\1${version}/" element-desktop.spec oldwd="$(pwd)" tmpdir="$(mktemp -d)" -#zypper install yarn cargo gcc-c++ sqlcipher-devel libsecret-devel + +#zypper install findutils file yarn cargo cargo-vendor-filterer moreutils jq version=$(grep "Version:" element-desktop.spec | awk '{print $2}') osc rm -f element-web-*.tar.gz ||: osc rm -f element-desktop-*.tar.gz ||: wget -c https://github.com/vector-im/element-desktop/archive/v${version}.tar.gz -O element-desktop-${version}.tar.gz -wget -c https://github.com/vector-im/element-web/archive/v${version}.tar.gz -O element-web-${version}.tar.gz -osc add -f element-web-*.tar.gz osc add -f element-desktop-*.tar.gz cp element-desktop.spec "$tmpdir/" cd "$tmpdir" -rm -rf "element-desktop-${version}" -wget -c https://github.com/vector-im/element-desktop/archive/v${version}.tar.gz -O element-desktop-${version}.tar.gz -tar xzvf element-desktop-${version}.tar.gz +#dziobian: yarn has completely broken caching policy which first compiles the module and then caches the result. +#additionally, --ignore-scripts seems to be evaluated during caching, and not during install to node_modules. +#Mitigate this by resetting ~ to an empty directory +mkdir -pv "$tmpdir/home" +export HOME="$tmpdir/home" + +tar -xzvvf "${oldwd}/element-desktop-${version}.tar.gz" cd element-desktop-${version} -last_packaged_version=$(osc cat devel:languages:nodejs/element-desktop/element-desktop.spec | grep "^Version:" | awk '{print $NF}') +#These patches change results of things we want to execute below +patch -p1 --verbose < "${oldwd}/hak-remove-devdependencies.patch" + +last_packaged_version=$(<"${oldwd}/element-desktop.spec" grep "^Version:" | awk '{print $NF}') changes=$(grep "^Changes in \[$last_packaged_version\]" -B10000 CHANGELOG.md | head -n -2 | sed -e '/^==*$/d' -e 's/Changes in \[\([^\[]*\)\].*/Version \1/' -e 's/^\([^-].*\)$/ \1/' -e 's/\[.*\](\(.*\))/\1/g' -e 's/^ *Version /Version /g') -echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc -yarn cache clean -rm -rf node_modules/ -yarn install --pure-lockfile || : # this will download tha packages into the offline cache +# This will vendor the packages but not execute any build scripts (but see caveat about caching above) +yarn install --frozen-lockfile --ignore-engines --ignore-platform --ignore-scripts --link-duplicates export PATH="$PATH:node_modules/.bin" -yarn run hak check + +#hak does not have version pinning, which is terrible. +#Therefore we manually pin the minimum versions specified in package.json +jq '.hakDependencies[]|= sub("^\\^";"";"i")' package.json.new +diff --color=always -bup package.json{,.new} || true +mv package.json{.new,} + + + yarn run hak fetch # prefetch cargo crates -pushd .hak/matrix-seshat/x86_64-unknown-linux-gnu/build -cargo vendor -mkdir -p .cargo -cat > .cargo/config.toml < .cargo/config +#remove vendored libraries +rm -rvf vendor/openssl-src/openssl popd -patch -p0 <", "eval") - cached_conditions_asts[cond_expr_expanded] = ast_code -- env = {"__builtins__": {}, "v": StrictVersion} -+ env = {"__builtins__": {"openssl_fips": ""}, "v": StrictVersion} - if eval(ast_code, env, variables): - return true_dict - return false_dict -EOF +#fetch node-addon-api for keytar. Unfortunately there is no package lock, therefore we use lowest supported version (for reproducility) +#we need to install it manuall in a separate directory wiithout a package.json. good that node-addon-api has no dependencies. +pushd .hak/hakModules/keytar +naa_version=$(jq -cj '.dependencies["node-addon-api"]' = + const electronBinaryPath = path.join(context.appOutDir, `${executableName}${ext}`); + console.log(`Flipping fuses for: ${electronBinaryPath}`); + +- await flipFuses(electronBinaryPath, { +- version: FuseVersion.V1, +- resetAdHocDarwinSignature: context.electronPlatformName === "darwin" && context.arch === Arch.universal, +- +- [FuseV1Options.EnableCookieEncryption]: true, +- [FuseV1Options.OnlyLoadAppFromAsar]: true, +- +- [FuseV1Options.RunAsNode]: false, +- [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, +- [FuseV1Options.EnableNodeCliInspectArguments]: false, +- +- // Mac app crashes on arm for us when `LoadBrowserProcessSpecificV8Snapshot` is enabled +- [FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: false, +- // https://github.com/electron/fuses/issues/7 +- [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: false, +- }); + } + }, + files: [ diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..ed23583 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e6ce200a3d75ebecfdf1ba91b735e8959100d9d4ce96da7e4acd61cc2c95410 +size 37766553 From b51315bbc4b131df583ea27869c43c99c634ba8f968068e16059865e2dadcb15 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Fri, 17 May 2024 11:17:48 +0000 Subject: [PATCH 2/5] Add mime handler needed for native OIDC to .desktop OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=59 --- io.element.Element.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.element.Element.desktop b/io.element.Element.desktop index 1414b1f..49b4345 100644 --- a/io.element.Element.desktop +++ b/io.element.Element.desktop @@ -13,7 +13,7 @@ Type=Application Icon=io.element.Element StartupWMClass=Element Categories=Network;InstantMessaging;Chat;IRCClient; -MimeType=x-scheme-handler/element; +MimeType=x-scheme-handler/io.element.desktop;x-scheme-handler/element; Keywords=chat;gitter;irc;messaging;messenger;riot;voice; Keywords[zh_CN]=聊天;沟通;消息;通信;语音;gitter;irc;riot; Keywords[zh_TW]=聊天;溝通;消息;通信;語音;gitter;irc;riot; From 15f296f6e4b465967016de41b793612418806ab4b2ab56048f9e167b83771c69 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Fri, 17 May 2024 11:18:07 +0000 Subject: [PATCH 3/5] - Add mime handler required for native OIDC OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=60 --- element-desktop.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/element-desktop.changes b/element-desktop.changes index 3de00a3..15bb0f6 100644 --- a/element-desktop.changes +++ b/element-desktop.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 17 11:17:51 UTC 2024 - Dominik Heidler + +- Add mime handler required for native OIDC + ------------------------------------------------------------------- Thu May 16 19:47:15 UTC 2024 - Bruno Pitrus From ab9a392f30fb48a57638c8863b9b5b4ba4153b0745d870a25eac062e4c12efbf Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Wed, 22 May 2024 14:17:14 +0000 Subject: [PATCH 4/5] =?UTF-8?q?-=20Version=201.11.67=20=20=20##=20?= =?UTF-8?q?=E2=9C=A8=20Features=20=20=20*=20Tooltip:=20Improve=20the=20acc?= =?UTF-8?q?essibility=20of=20the=20composer=20and=20the=20rich=20text=20ed?= =?UTF-8?q?itor=20(https://github.com/matrix-org/matrix-react-sdk/pull/124?= =?UTF-8?q?59).=20Contributed=20by=20@florianduros.=20=20=20*=20Allow=20ex?= =?UTF-8?q?plicit=20configuration=20of=20OIDC=20dynamic=20registration=20m?= =?UTF-8?q?etadata=20(https://github.com/matrix-org/matrix-react-sdk/pull/?= =?UTF-8?q?12514).=20Contributed=20by=20@t3chguy.=20=20=20*=20Tooltip:=20i?= =?UTF-8?q?mprove=20accessibility=20for=20messages=20(https://github.com/m?= =?UTF-8?q?atrix-org/matrix-react-sdk/pull/12487).=20Contributed=20by=20@f?= =?UTF-8?q?lorianduros.=20=20=20*=20Collapse=20UserSettings=20tabs=20to=20?= =?UTF-8?q?just=20icons=20on=20narrow=20screens=20(https://github.com/matr?= =?UTF-8?q?ix-org/matrix-react-sdk/pull/12505).=20Contributed=20by=20@dbkr?= =?UTF-8?q?.=20=20=20*=20Add=20room=20topic=20to=20right=20panel=20room=20?= =?UTF-8?q?info=20(https://github.com/matrix-org/matrix-react-sdk/pull/125?= =?UTF-8?q?03).=20Contributed=20by=20@t3chguy.=20=20=20*=20OIDC:=20pass=20?= =?UTF-8?q?`id=5Ftoken`=20via=20`id=5Ftoken=5Fhint`=20on=20Manage=20Accoun?= =?UTF-8?q?t=20interaction=20(https://github.com/matrix-org/matrix-react-s?= =?UTF-8?q?dk/pull/12499).=20Contributed=20by=20@t3chguy.=20=20=20*=20Tool?= =?UTF-8?q?tip:=20improve=20accessibility=20in=20room=20(https://github.co?= =?UTF-8?q?m/matrix-org/matrix-react-sdk/pull/12493).=20Contributed=20by?= =?UTF-8?q?=20@florianduros.=20=20=20*=20Tooltip:=20improve=20accessibilit?= =?UTF-8?q?y=20for=20call=20and=20voice=20messages=20(https://github.com/m?= =?UTF-8?q?atrix-org/matrix-react-sdk/pull/12489).=20Contributed=20by=20@f?= =?UTF-8?q?lorianduros.=20=20=20*=20Move=20the=20active=20tab=20in=20user?= =?UTF-8?q?=20settings=20to=20the=20dialog=20title=20(https://github.com/m?= =?UTF-8?q?atrix-org/matrix-react-sdk/pull/12481).=20Contributed=20by=20@d?= =?UTF-8?q?bkr.=20=20=20*=20Tooltip:=20improve=20accessibility=20of=20spac?= =?UTF-8?q?es=20(https://github.com/matrix-org/matrix-react-sdk/pull/12497?= =?UTF-8?q?).=20Contributed=20by=20@florianduros.=20=20=20*=20Tooltip:=20i?= =?UTF-8?q?mprove=20accessibility=20of=20the=20right=20panel=20(https://gi?= =?UTF-8?q?thub.com/matrix-org/matrix-react-sdk/pull/12490).=20Contributed?= =?UTF-8?q?=20by=20@florianduros.=20=20=20*=20MSC3575=20(Sliding=20Sync)?= =?UTF-8?q?=20add=20well-known=20proxy=20support=20(https://github.com/mat?= =?UTF-8?q?rix-org/matrix-react-sdk/pull/12307).=20Contributed=20by=20@EdG?= =?UTF-8?q?eraghty.=20=20=20##=20=F0=9F=90=9B=20Bug=20Fixes=20=20=20*=20Re?= =?UTF-8?q?use=20single=20PlaybackWorker=20between=20Playback=20instances?= =?UTF-8?q?=20(https://github.com/matrix-org/matrix-react-sdk/pull/12520).?= =?UTF-8?q?=20Contributed=20by=20@t3chguy.=20=20=20*=20Fix=20well-known=20?= =?UTF-8?q?lookup=20for=20sliding=20sync=20labs=20check=20(https://github.?= =?UTF-8?q?com/matrix-org/matrix-react-sdk/pull/12519).=20Contributed=20by?= =?UTF-8?q?=20@t3chguy.=20=20=20*=20Fix=20`element-desktop-ssoid=20being`?= =?UTF-8?q?=20included=20in=20OIDC=20Authorization=20call=20(https://githu?= =?UTF-8?q?b.com/matrix-org/matrix-react-sdk/pull/12495).=20Contributed=20?= =?UTF-8?q?by=20@t3chguy.=20=20=20*=20Fix=20beta=20notifications=20reconci?= =?UTF-8?q?liation=20for=20intentional=20mentions=20push=20rules=20(https:?= =?UTF-8?q?//github.com/matrix-org/matrix-react-sdk/pull/12510).=20Contrib?= =?UTF-8?q?uted=20by=20@t3chguy.=20=20=20*=20fix=20avatar=20stretched=20on?= =?UTF-8?q?=201:1=20call=20(https://github.com/matrix-org/matrix-react-sdk?= =?UTF-8?q?/pull/12494).=20Contributed=20by=20@I-lander.=20=20=20*=20Check?= =?UTF-8?q?=20native=20sliding=20sync=20support=20against=20an=20unstable?= =?UTF-8?q?=20feature=20flag=20(https://github.com/matrix-org/matrix-react?= =?UTF-8?q?-sdk/pull/12498).=20Contributed=20by=20@turt2live.=20=20=20*=20?= =?UTF-8?q?Use=20OPTIONS=20for=20sliding=20sync=20detection=20poke=20(http?= =?UTF-8?q?s://github.com/matrix-org/matrix-react-sdk/pull/12492).=20Contr?= =?UTF-8?q?ibuted=20by=20@turt2live.=20=20=20*=20TAC:=20hide=20tooltip=20w?= =?UTF-8?q?hen=20the=20release=20announcement=20is=20displayed=20(https://?= =?UTF-8?q?github.com/matrix-org/matrix-react-sdk/pull/12472).=20Contribut?= =?UTF-8?q?ed=20by=20@florianduros.=20Version=201.11.66=20=20=20##=20?= =?UTF-8?q?=E2=9C=A8=20Features=20=20=20*=20Use=20a=20different=20error=20?= =?UTF-8?q?message=20for=20UTDs=20when=20you=20weren't=20in=20the=20room.?= =?UTF-8?q?=20(https://github.com/matrix-org/matrix-react-sdk/pull/12453).?= =?UTF-8?q?=20Contributed=20by=20@uhoreg.=20=20=20*=20Take=20the=20Threads?= =?UTF-8?q?=20Activity=20Centre=20out=20of=20labs=20(https://github.com/ma?= =?UTF-8?q?trix-org/matrix-react-sdk/pull/12439).=20Contributed=20by=20@db?= =?UTF-8?q?kr.=20=20=20*=20Expected=20UTDs:=20use=20a=20different=20messag?= =?UTF-8?q?e=20for=20UTDs=20sent=20before=20login=20(https://github.com/ma?= =?UTF-8?q?trix-org/matrix-react-sdk/pull/12391).=20Contributed=20by=20@ri?= =?UTF-8?q?chvdh.=20=20=20*=20Add=20`Tooltip`=20to=20`AccessibleButton`=20?= =?UTF-8?q?(https://github.com/matrix-org/matrix-react-sdk/pull/12443).=20?= =?UTF-8?q?Contributed=20by=20@florianduros.=20=20=20*=20Add=20analytics?= =?UTF-8?q?=20to=20activity=20toggles=20(https://github.com/matrix-org/mat?= =?UTF-8?q?rix-react-sdk/pull/12418).=20Contributed=20by=20@dbkr.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=61 --- element-desktop-1.11.65.tar.gz | 3 -- element-desktop-1.11.67.tar.gz | 3 ++ element-desktop.changes | 55 ++++++++++++++++++++++++++++++++++ element-desktop.spec | 2 +- prepare.sh | 2 +- vendor.tar.zst | 4 +-- 6 files changed, 62 insertions(+), 7 deletions(-) delete mode 100644 element-desktop-1.11.65.tar.gz create mode 100644 element-desktop-1.11.67.tar.gz diff --git a/element-desktop-1.11.65.tar.gz b/element-desktop-1.11.65.tar.gz deleted file mode 100644 index 9ad2063..0000000 --- a/element-desktop-1.11.65.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb3739323a6b89c80d10943ce9c4a01f4f40c9ad005bcfbe7f8f302b06e94afe -size 3205460 diff --git a/element-desktop-1.11.67.tar.gz b/element-desktop-1.11.67.tar.gz new file mode 100644 index 0000000..3f347a0 --- /dev/null +++ b/element-desktop-1.11.67.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ecef74dc859186619e80e2d78f3ea711df99d33d91ead365adf80233abd1a36 +size 3199329 diff --git a/element-desktop.changes b/element-desktop.changes index 15bb0f6..68334b9 100644 --- a/element-desktop.changes +++ b/element-desktop.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Wed May 22 13:57:28 UTC 2024 - Dominik Heidler + +- Version 1.11.67 + ## ✨ Features + + * Tooltip: Improve the accessibility of the composer and the rich text editor (https://github.com/matrix-org/matrix-react-sdk/pull/12459). Contributed by @florianduros. + * Allow explicit configuration of OIDC dynamic registration metadata (https://github.com/matrix-org/matrix-react-sdk/pull/12514). Contributed by @t3chguy. + * Tooltip: improve accessibility for messages (https://github.com/matrix-org/matrix-react-sdk/pull/12487). Contributed by @florianduros. + * Collapse UserSettings tabs to just icons on narrow screens (https://github.com/matrix-org/matrix-react-sdk/pull/12505). Contributed by @dbkr. + * Add room topic to right panel room info (https://github.com/matrix-org/matrix-react-sdk/pull/12503). Contributed by @t3chguy. + * OIDC: pass `id_token` via `id_token_hint` on Manage Account interaction (https://github.com/matrix-org/matrix-react-sdk/pull/12499). Contributed by @t3chguy. + * Tooltip: improve accessibility in room (https://github.com/matrix-org/matrix-react-sdk/pull/12493). Contributed by @florianduros. + * Tooltip: improve accessibility for call and voice messages (https://github.com/matrix-org/matrix-react-sdk/pull/12489). Contributed by @florianduros. + * Move the active tab in user settings to the dialog title (https://github.com/matrix-org/matrix-react-sdk/pull/12481). Contributed by @dbkr. + * Tooltip: improve accessibility of spaces (https://github.com/matrix-org/matrix-react-sdk/pull/12497). Contributed by @florianduros. + * Tooltip: improve accessibility of the right panel (https://github.com/matrix-org/matrix-react-sdk/pull/12490). Contributed by @florianduros. + * MSC3575 (Sliding Sync) add well-known proxy support (https://github.com/matrix-org/matrix-react-sdk/pull/12307). Contributed by @EdGeraghty. + + ## 🐛 Bug Fixes + + * Reuse single PlaybackWorker between Playback instances (https://github.com/matrix-org/matrix-react-sdk/pull/12520). Contributed by @t3chguy. + * Fix well-known lookup for sliding sync labs check (https://github.com/matrix-org/matrix-react-sdk/pull/12519). Contributed by @t3chguy. + * Fix `element-desktop-ssoid being` included in OIDC Authorization call (https://github.com/matrix-org/matrix-react-sdk/pull/12495). Contributed by @t3chguy. + * Fix beta notifications reconciliation for intentional mentions push rules (https://github.com/matrix-org/matrix-react-sdk/pull/12510). Contributed by @t3chguy. + * fix avatar stretched on 1:1 call (https://github.com/matrix-org/matrix-react-sdk/pull/12494). Contributed by @I-lander. + * Check native sliding sync support against an unstable feature flag (https://github.com/matrix-org/matrix-react-sdk/pull/12498). Contributed by @turt2live. + * Use OPTIONS for sliding sync detection poke (https://github.com/matrix-org/matrix-react-sdk/pull/12492). Contributed by @turt2live. + * TAC: hide tooltip when the release announcement is displayed (https://github.com/matrix-org/matrix-react-sdk/pull/12472). Contributed by @florianduros. + + + +Version 1.11.66 + ## ✨ Features + + * Use a different error message for UTDs when you weren't in the room. (https://github.com/matrix-org/matrix-react-sdk/pull/12453). Contributed by @uhoreg. + * Take the Threads Activity Centre out of labs (https://github.com/matrix-org/matrix-react-sdk/pull/12439). Contributed by @dbkr. + * Expected UTDs: use a different message for UTDs sent before login (https://github.com/matrix-org/matrix-react-sdk/pull/12391). Contributed by @richvdh. + * Add `Tooltip` to `AccessibleButton` (https://github.com/matrix-org/matrix-react-sdk/pull/12443). Contributed by @florianduros. + * Add analytics to activity toggles (https://github.com/matrix-org/matrix-react-sdk/pull/12418). Contributed by @dbkr. + * Decrypt events in reverse order without copying the array (https://github.com/matrix-org/matrix-react-sdk/pull/12445). Contributed by @Johennes. + * Use new compound tooltip (https://github.com/matrix-org/matrix-react-sdk/pull/12416). Contributed by @florianduros. + * Expected UTDs: report a different Posthog code (https://github.com/matrix-org/matrix-react-sdk/pull/12389). Contributed by @richvdh. + + ## 🐛 Bug Fixes + + * TAC: Fix accessibility issue when the Release announcement is displayed (https://github.com/matrix-org/matrix-react-sdk/pull/12484). Contributed by @RiotRobot. + * TAC: Close Release Announcement when TAC button is clicked (https://github.com/matrix-org/matrix-react-sdk/pull/12485). Contributed by @florianduros. + * MenuItem: fix caption usage (https://github.com/matrix-org/matrix-react-sdk/pull/12455). Contributed by @florianduros. + * Show the local echo in previews (https://github.com/matrix-org/matrix-react-sdk/pull/12451). Contributed by @langleyd. + * Fixed the drag and drop of X #27186 (https://github.com/matrix-org/matrix-react-sdk/pull/12450). Contributed by @asimdelvi. + * Move the TAC to above the button (https://github.com/matrix-org/matrix-react-sdk/pull/12438). Contributed by @dbkr. + * Use the same logic in previews as the timeline to hide events that should be hidden (https://github.com/matrix-org/matrix-react-sdk/pull/12434). Contributed by @langleyd. + * Fix selector so maths support doesn't mangle divs (https://github.com/matrix-org/matrix-react-sdk/pull/12433). Contributed by @uhoreg. + ------------------------------------------------------------------- Fri May 17 11:17:51 UTC 2024 - Dominik Heidler diff --git a/element-desktop.spec b/element-desktop.spec index 09b66d3..46b1564 100644 --- a/element-desktop.spec +++ b/element-desktop.spec @@ -17,7 +17,7 @@ Name: element-desktop -Version: 1.11.65 +Version: 1.11.67 Release: 0 Summary: A glossy Matrix collaboration client - desktop License: Apache-2.0 diff --git a/prepare.sh b/prepare.sh index 082a1a2..f84c261 100644 --- a/prepare.sh +++ b/prepare.sh @@ -55,7 +55,7 @@ yarn run hak fetch # prefetch cargo crates pushd .hak/hakModules/matrix-seshat mkdir -pv .cargo -cargo vendor-filterer --platform='*-unknown-linux-gnu' --platform='*-unknown-linux-gnueabihf' --all-features=true > .cargo/config +cargo vendor-filterer --platform='*-unknown-linux-gnu' --platform='*-unknown-linux-gnueabihf' --all-features > .cargo/config #remove vendored libraries rm -rvf vendor/openssl-src/openssl popd diff --git a/vendor.tar.zst b/vendor.tar.zst index ed23583..94c454c 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8e6ce200a3d75ebecfdf1ba91b735e8959100d9d4ce96da7e4acd61cc2c95410 -size 37766553 +oid sha256:dae5eea3b2c7ffa50be72b9921e45ab7e0c02b7221d4dcf5a11bb9e039857493 +size 63201894 From a1b68126b4ec2fb4ac80d3d117c5e5870cfee817b6a3fdea7838e7efed3cdcb1 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Wed, 22 May 2024 15:38:20 +0000 Subject: [PATCH 5/5] Remove rust-packaging as it fails source service for TW submission OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=62 --- element-desktop.spec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/element-desktop.spec b/element-desktop.spec index 46b1564..c57a863 100644 --- a/element-desktop.spec +++ b/element-desktop.spec @@ -43,11 +43,7 @@ BuildRequires: zstd %if 0%{?fedora} BuildRequires: rust-srpm-macros %else -%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 BuildRequires: cargo-packaging >= 1.2.0+3 -%else -BuildRequires: rust-packaging -%endif BuildRequires: cargo-auditable %endif