Bug 42131 - Ошибка при запуске setup.sh
Summary: Ошибка при запуске setup.sh
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: spdk (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Leontiy Volodin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-15 10:05 MSK by Alexander Makeenkov
Modified: 2022-03-15 11:02 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2022-03-15 10:05:50 MSK
Версия пакета:
spdk-22.01-alt2

Шаги воспроизведения:
# apt-get install spdk
# /usr/libexec/spdk/scripts/setup.sh

Получаемый результат:
# /usr/libexec/spdk/scripts/setup.sh
grep: /usr/libexec/spdk/scripts/../include/spdk/pci_ids.h: Нет такого файла или каталога

Решение проблемы:
# diff -u /usr/libexec/spdk/scripts/setup.sh-orig /usr/libexec/spdk/scripts/setup.sh
--- /usr/libexec/spdk/scripts/setup.sh-orig     2022-03-15 09:52:36.766041960 +0300
+++ /usr/libexec/spdk/scripts/setup.sh  2022-03-15 09:52:50.808128341 +0300
@@ -249,7 +249,7 @@
                                drivers_d["$bdf"]=${driver##*/}
                        fi
                done
-       done < <(grep -E "$ids" "$rootdir/include/spdk/pci_ids.h")
+       done < <(grep -E "$ids" "$rootdir/include/pci_ids.h")
 }
Comment 1 Repository Robot 2022-03-15 11:02:22 MSK
spdk-22.01-alt3 -> sisyphus:

 Tue Mar 15 2022 Leontiy Volodin <lvol@altlinux> 22.01-alt3
 - Fix setup.sh startup (ALT #42131).