slovensko-digital / autogram

Nový, krajší a lepší nástroj na podpisovanie.
European Union Public License 1.2
111 stars 20 forks source link

Fedora 38 - conflicts with filesystem-3.18-3.fc38.x86_64 #213

Closed jozo closed 8 months ago

jozo commented 1 year ago

Ahojte, vdaka za appku. Skusal som ju nainstalovat na Fedore 38, avsak padne to.

Input:

sudo dnf install ./autogram-1.99.13-1.x86_64.rpm

Output:

=====================================================================================================
 Package               Architecture        Version                   Repository                 Size
=====================================================================================================
Installing:
 autogram              x86_64              1.99.13-1                 @commandline              117 M

Transaction Summary
=====================================================================================================
Install  1 Package

Total size: 117 M
Installed size: 209 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/bin from install of autogram-1.99.13-1.x86_64 conflicts with file from package filesystem-3.18-3.fc38.x86_64
  file /usr/lib from install of autogram-1.99.13-1.x86_64 conflicts with file from package filesystem-3.18-3.fc38.x86_64
jsuchal commented 1 year ago

@jozo diky za report, nemame tu velmi fedoru, ale vyzera to mimoriadne podozrivo.

nasiel som nieco taketo https://github.com/jordansissel/fpm/issues/1607 a https://www.edureka.co/community/85793/file-from-install-hadoop-conflicts-file-package-filesystem

@jozo ked to skusis s tym --force tak to zbehne?

jozo commented 1 year ago

Ano, --force pomoze, skusal som vo VM. Appka sa nainstaluje a aj sa spusti (dalej som neskusal). Avsak nie je to idealne riesenie. :confused: V https://github.com/jordansissel/fpm/issues/1607 bol problem, ze sa pri vytvarani rpm pridaval aj prazdny dir. Neskusite pozriet ci sa tu nedeje to iste?

jsuchal commented 1 year ago

@jozo ano upodozrievam nieco taketo, ale kedze cely package robi jpackage/jlink, tak to bude asi tazsie na zmenu (a trochu ma prekvapuje, ze by toto jpackage nemal vychytane)

durasj commented 1 year ago

Mozem potvrdit. Package na stiahnutie sa neda pouzit na Fedore.

Lokalny package, ktory si spravim na Fedore funguje v pohode. Takze bud a) problem hostu na ktorom to ide b) build.properties ak sa nejak pri builde menia.

jsuchal commented 1 year ago

@durasj vedel by si kuknut lokalny build a tento z githubu, ze v com si lisia "vo vnutri" ?

xseman commented 10 months ago

Je to zvláštne, najideálnejšie by bolo keby existoval fedora runner aby sme nemuseli riešiť špecialne rozdiely artefaktov inej distribúcie.

Keď pozerám diff install scripts releasu a local build:

diff -u <(rpm -lpq release.rpm) <(rpm -lpq source.rpm)

Release .rpm obsahuje navyše

--- /dev/fd/63  2023-12-22 16:32:01.358096157 +0100
+++ /dev/fd/62  2023-12-22 16:32:01.359096165 +0100
@@ -1,4 +1,7 @@
+/usr
+/usr/bin
 /usr/bin/autogram
+/usr/lib
 /usr/lib/.build-id
 /usr/lib/.build-id/09
 /usr/lib/.build-id/09/fff19d9111995e3521b29a418bd17195045d10
@@ -321,5 +324,7 @@
 /usr/lib/autogram/runtime/lib/server/libjvm.so
 /usr/lib/autogram/runtime/lib/tzdb.dat
 /usr/lib/autogram/runtime/release
+/usr/share
+/usr/share/licenses

Zaujimavé je že sú tam práve tie 2 pathy, čo sú v error hláške @jozo. Rovnaký error dostanem (Fedora 39) keď skúšam releasnuty .rpm

jsuchal commented 10 months ago

@xseman toto sa bude asi fixovat tazko, pouzivame jpackage co vyraba tieto rpm a internet je ticho, co sa tyka riesenia. Uz som aj zvazoval nejaky skript co RPM "otvori", toto vymaze a spravi nove.

xseman commented 10 months ago

Taktiež ma to napadlo, no to je už taká záplata. Testoval som to na čistej inštalácií Debian a Fedore a .rpm je stále s tým rozdielom v path ak je to buildnute na Debiane.

Jedno riešenie by bolo mať docker kontajner Debian a druhy Fedora, alebo mať custom runners, no to by už muselo niekde žiť na VPS.

jsuchal commented 8 months ago

@xseman vies potvrdit ci toto mame v novej verzii fixnute?

xseman commented 8 months ago

Už to inštaluje bez problémov, issiue môžeme uzavrieť.

Log ```plain Dependencies resolved. ======================================================================================================================================================================================================= Package Architecture Version Repository Size ======================================================================================================================================================================================================= Upgrading: autogram x86_64 2.1.5-1 @commandline 110 M Transaction Summary ======================================================================================================================================================================================================= Upgrade 1 Package Total size: 110 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : autogram-2.1.5-1.x86_64 1/2 Running scriptlet: autogram-2.1.5-1.x86_64 1/2 Running scriptlet: autogram-1.0.0-1.x86_64 2/2 Cleanup : autogram-1.0.0-1.x86_64 2/2 Running scriptlet: autogram-1.0.0-1.x86_64 2/2 Verifying : autogram-2.1.5-1.x86_64 1/2 Verifying : autogram-1.0.0-1.x86_64 2/2 Upgraded: autogram-2.1.5-1.x86_64 Complete! ```