Projects
home:Eustace:branches:Eulaceura:Factory
ibus-sunpinyin
_service:obs_scm:0001-fix-SConstruct-install-en...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-fix-SConstruct-install-environent-varaible.patch of Package ibus-sunpinyin
From ce0c0ad566d0102b52e77ee216d622dab5d12876 Mon Sep 17 00:00:00 2001 From: xiaofan <xiaofan@localhost.localdomain> Date: Fri, 8 Sep 2023 00:29:35 +0800 Subject: [PATCH] fix SConstruct install environent varaible Signed-off-by: xiaofan <xiaofan@localhost.localdomain> --- SConstruct | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SConstruct b/SConstruct index 8d8d5c4..2b69f7b 100644 --- a/SConstruct +++ b/SConstruct @@ -45,12 +45,6 @@ env = Environment(ENV=os.environ, tools=['default', 'textfile']) opts.Update(env) -if GetOption('prefix') is not None: - env['PREFIX'] = GetOption('prefix') - env['LIBDIR'] = env['PREFIX'] + '/lib' - env['LIBEXECDIR'] = env['PREFIX'] + '/lib/' - env['DATADIR'] = env['PREFIX'] + '/share/' - if GetOption('libdir') is not None: env['LIBDIR'] = GetOption('libdir') @@ -60,6 +54,12 @@ if GetOption('libexecdir') is not None: if GetOption('datadir') is not None: env['DATADIR'] = GetOption('datadir') +if GetOption('prefix') is not None: + env['PREFIX'] = GetOption('prefix') + env['LIBDIR'] = os.path.join(env['PREFIX'], env['LIBDIR']) + env['LIBEXECDIR'] = os.path.join(env['PREFIX'], env['LIBEXECDIR']) + env['DATADIR'] = os.path.join(env['PREFIX'], env['DATADIR']) + opts.Save('configure.conf', env) envvar = [('CC', 'CC'), -- 2.39.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2