Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
332a9e16
Commit
332a9e16
authored
Mar 31, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm prescription: add i586-support
parent
04f60aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
i586-support.sh
prescription.d/i586-support.sh
+33
-0
No files found.
prescription.d/i586-support.sh
0 → 100755
View file @
332a9e16
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Add 32 bit support on 64 bit system"
&&
exit
[
"
$(
epm print info
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
vendor
=
"
$(
epm print info
-s
)
"
case
"
$vendor
"
in
"alt"
)
if
epm
--quiet
repo list |
grep
-q
"x86_64-i586 classic"
;
then
#[ -n "$verbose" ] && info "This system is ready to install 32bit packages"
exit
0
else
epm repo add
"
$(
epm
--quiet
repo list |
grep
"x86_64 classic"
|
sed
-e
's|x86_64 |x86_64-i586|'
)
"
epm update
fi
;;
"deb"
)
if
a
=
dpkg
--print-foreign-architectures
|
grep
-q
"i386"
;
then
#[ -n "$verbose" ] && info "This system is ready to install 32bit packages"
exit
0
else
a
=
dpkg
--add-architecture
i386
epm update
fi
;;
*
)
info
"Unsupported
$(
epm print info
-e
)
system. Just skipping the operation."
exit
;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment