Bug 43436

Summary: gcc10-fortran and gcc-fortran-common without gcc-fortran makes dead symlink /usr/bin/gfortran
Product: Sisyphus Reporter: Iakunin Andrei <iakuninaa>
Component: gcc-fortranAssignee: Gleb F-Malinovskiy <glebfm>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: glebfm, ldv
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Iakunin Andrei 2022-08-03 14:09:57 MSK
$ ls /usr/bin/gfortran* -la
lrwxrwxrwx 1 rooter rooter  3 Dec  7  2020 /usr/bin/gfortran -> gcc  !!!
lrwxrwxrwx 1 rooter rooter 28 May 18 05:37 /usr/bin/gfortran-12 -> x86_64-alt-linux-gfortran-12

ERROR
$ gfortran
/usr/bin/x86_64-alt-linux-gfortran: No such file or directory

$ rpm -ql gcc-fortran
/usr/bin/x86_64-alt-linux-gfortran
/usr/share/man/man1/gfortran.1.xz

$ rpm -ql gcc-fortran-common 
/usr/bin/f77
/usr/bin/f95
/usr/bin/g77
/usr/bin/gfortran


gfortran basic app. Should be linked to real FC if exists.
Comment 1 Gleb F-Malinovskiy 2022-08-03 14:18:21 MSK

*** This bug has been marked as a duplicate of bug 37092 ***
Comment 2 Iakunin Andrei 2022-08-04 14:33:46 MSK
(Ответ для Iakunin Andrei на комментарий #0)
> $ ls /usr/bin/gfortran* -la
> lrwxrwxrwx 1 rooter rooter  3 Dec  7  2020 /usr/bin/gfortran -> gcc  !!!
> lrwxrwxrwx 1 rooter rooter 28 May 18 05:37 /usr/bin/gfortran-12 ->
> x86_64-alt-linux-gfortran-12
> 
> ERROR
> $ gfortran
> /usr/bin/x86_64-alt-linux-gfortran: No such file or directory
> 
> $ rpm -ql gcc-fortran
> /usr/bin/x86_64-alt-linux-gfortran
> /usr/share/man/man1/gfortran.1.xz
> 
> $ rpm -ql gcc-fortran-common 
> /usr/bin/f77
> /usr/bin/f95
> /usr/bin/g77
> /usr/bin/gfortran
> 
> 
> gfortran basic app. Should be linked to real FC if exists.

Немного ощибся в примере

$ ls /usr/bin/gfortran* -la
lrwxrwxrwx 1 rooter rooter  3 Dec  7  2020 /usr/bin/gfortran -> gcc  !!!
lrwxrwxrwx 1 rooter rooter 28 May 18 05:37 /usr/bin/gfortran-10 !!! -> x86_64-alt-linux-gfortran-10 !!!

А вот пакет gcc12-fortran не установлен