Exclude build-id links from rpm to avoid electron conflicts
Two Electron applications built from the identical electron binary set package the same ELF build-id links under /usr/lib/.build-id, so installing musrflow next to trimsp failed the transaction test. Pass _build_id_links none to rpmbuild via fpm so the rpm no longer claims those paths.
This commit is contained in:
1 parent
feb379a258
commit
464bbf46e8
3 files changed
+9
-1
No files matched your search
@@ -15,6 +15,9 @@ release path documented in [`TODO.md`](TODO.md).
|
||||
- The RPM artifact is now named all-lower-case (`musrflow-<version>-<arch>.rpm`)
|
||||
instead of the mixed-case product name, since RPM package names must be
|
||||
lower case.
|
||||
- The RPM no longer ships ELF build-id links under `/usr/lib/.build-id`, which
|
||||
previously conflicted when another Electron application built from the same
|
||||
binary set (e.g. `trimsp`) was installed.
|
||||
|
||||
## 1.0.0-rc.4 (2026-09-23)
|
||||
|
||||
|
||||
+5
-1
@@ -85,7 +85,11 @@
|
||||
},
|
||||
"rpm": {
|
||||
"packageCategory": "Applications/Science",
|
||||
"artifactName": "${name}-${version}-${arch}.${ext}"
|
||||
"artifactName": "${name}-${version}-${arch}.${ext}",
|
||||
"fpm": [
|
||||
"--rpm-rpmbuild-define=_build_id_links none",
|
||||
"--rpm-rpmbuild-define=_missing_build_ids_terminate_build 0"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ assert(pkg.build.linux.target.includes('rpm'));
|
||||
assert(pkg.build.linux.target.includes('AppImage'));
|
||||
assert.strictEqual(pkg.build.rpm.artifactName, '${name}-${version}-${arch}.${ext}');
|
||||
assert(!pkg.build.rpm.artifactName.includes('${productName}'), 'RPM artifact name must be lower case');
|
||||
assert(pkg.build.rpm.fpm.some(function(arg) { return arg === '--rpm-rpmbuild-define=_build_id_links none'; }), 'RPM must not package build-id links');
|
||||
assert(pkg.scripts['dist:rpm'].includes('electron-builder@26.15.3'));
|
||||
assert(pkg.scripts['dist:appimage'].includes('electron-builder@26.15.3'));
|
||||
assert(pkg.scripts['checksums:md5'].includes('md5sum'));
|
||||
|
||||
Reference in new issue
Block a user