-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardcode the Ruby version in the y2start script (bsc#1068863)
to always use the Ruby version used at the build time - 4.0.1
- Loading branch information
Showing
5 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
add_subdirectory(ruby) | ||
add_subdirectory(binary) | ||
|
||
|
||
|
||
install(PROGRAMS y2start/y2start DESTINATION lib/YaST2/bin) | ||
|
||
# hardcode the ruby version in the y2start script (bsc#1068863) | ||
install(CODE "MESSAGE(\"Updating $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib/YaST2/bin/y2start hashbang:\")") | ||
# replace the first line in y2start with a new hashbang | ||
install(CODE "execute_process(COMMAND sed -i \"1 s@^.*$@\\#! ${RUBY_BIN_PATH}@\" $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib/YaST2/bin/y2start)") | ||
install(CODE "execute_process(COMMAND head -n1 $ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib/YaST2/bin/y2start)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters