Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
59f72b23
Kaydet (Commit)
59f72b23
authored
Mar 12, 2021
tarafından
root
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
actionsapi - inary izolation cflags fix
üst
899bbc2c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
20 deletions
+33
-20
get_actionsapi_functions
get_actionsapi_functions
+6
-0
cmaketools.py
inary/actionsapi/cmaketools.py
+11
-10
variables.py
inary/actionsapi/variables.py
+12
-8
specfile.py
inary/data/specfile.py
+1
-0
build.py
inary/operations/build.py
+3
-2
No files found.
get_actionsapi_functions
0 → 100644
Dosyayı görüntüle @
59f72b23
#!/bin/bash
find inary/actionsapi
-type
f
-name
"*.py"
|
while
read
line
do
echo
"
$line
:"
cat
$line
|
grep
-v
"__"
|
grep
"^def "
|
sed
"s/^def / - /g"
done
inary/actionsapi/cmaketools.py
Dosyayı görüntüle @
59f72b23
...
@@ -69,18 +69,19 @@ def configure(parameters='',
...
@@ -69,18 +69,19 @@ def configure(parameters='',
if
can_access_file
(
join_path
(
sourceDir
,
'CMakeLists.txt'
)):
if
can_access_file
(
join_path
(
sourceDir
,
'CMakeLists.txt'
)):
args
=
'cmake -DCMAKE_INSTALL_PREFIX={0}
\
args
=
'cmake -DCMAKE_INSTALL_PREFIX={0}
\
-DCMAKE_INSTALL_LIBDIR={1}
\
-DCMAKE_INSTALL_LIBDIR={1}
\
-DCMAKE_C_FLAGS="{7} {2}"
\
-DCMAKE_BUILD_TYPE=RelWithDebInfo {2} {3}'
.
format
(
installPrefix
,
-DCMAKE_CXX_FLAGS="{7} {3}"
\
-DCMAKE_LD_FLAGS="{4}"
\
-DCMAKE_BUILD_TYPE=RelWithDebInfo {5} {6}'
.
format
(
installPrefix
,
"/usr/lib32 "
if
get
.
buildTYPE
()
==
"emul32"
else
"/usr/lib"
,
"/usr/lib32 "
if
get
.
buildTYPE
()
==
"emul32"
else
"/usr/lib"
,
get
.
CFLAGS
(),
get
.
CXXFLAGS
(),
get
.
LDFLAGS
(),
parameters
,
parameters
,
sourceDir
,
sourceDir
)
"-m32"
if
get
.
buildTYPE
()
==
"emul32"
else
"-m64"
)
if
get
.
CFLAGS
():
args
+=
' -DCMAKE_C_FLAGS="{0} {1}"'
.
format
(
get
.
CFLAGS
(),
"-m32"
if
get
.
buildTYPE
()
==
"emul32"
else
"-m64"
)
if
get
.
CXXFLAGS
():
args
+=
' -DCMAKE_CXX_FLAGS="{0} {1}"'
.
format
(
get
.
CXXFLAGS
(),
"-m32"
if
get
.
buildTYPE
()
==
"emul32"
else
"-m64"
)
if
get
.
LDFLAGS
():
args
+=
' -DCMAKE_LD_FLAGS="{0}"'
.
format
(
get
.
LDFLAGS
())
if
system
(
args
):
if
system
(
args
):
raise
ConfigureError
(
_
(
'Configure failed.'
))
raise
ConfigureError
(
_
(
'Configure failed.'
))
else
:
else
:
...
...
inary/actionsapi/variables.py
Dosyayı görüntüle @
59f72b23
...
@@ -30,16 +30,20 @@ def exportFlags():
...
@@ -30,16 +30,20 @@ def exportFlags():
# Build systems depend on these environment variables. That is why
# Build systems depend on these environment variables. That is why
# we export them instead of using as (instance) variables.
# we export them instead of using as (instance) variables.
values
=
ctx
.
config
.
values
values
=
ctx
.
config
.
values
os
.
environ
[
'HOST'
]
=
values
.
build
.
host
if
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"emul32"
or
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"clang32"
:
if
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"emul32"
or
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"clang32"
:
os
.
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
.
replace
(
"-fPIC"
,
""
)
os
.
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
.
replace
(
"-fPIC"
,
""
)
os
.
environ
[
'PKG_CONFIG_PATH'
]
=
"/usr/lib32/pkgconfig"
os
.
environ
[
'PKG_CONFIG_PATH'
]
=
"/usr/lib32/pkgconfig"
else
:
os
.
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
if
"INARY_USE_FLAGS"
in
os
.
environ
and
os
.
environ
[
'INARY_USE_FLAGS'
]:
os
.
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
os
.
environ
[
'LDFLAGS'
]
=
values
.
build
.
ldflags
if
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"emul32"
or
os
.
environ
[
'INARY_BUILD_TYPE'
]
==
"clang32"
:
os
.
environ
[
'LDFLAGS'
]
=
values
.
build
.
ldflags
os
.
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
.
replace
(
"-fPIC"
,
""
)
os
.
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
.
replace
(
"-fPIC"
,
""
)
else
:
os
.
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
os
.
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
os
.
environ
[
'HOST'
]
=
values
.
build
.
host
os
.
environ
[
'USER_LDFLAGS'
]
=
values
.
build
.
ldflags
os
.
environ
[
'USER_LDFLAGS'
]
=
values
.
build
.
ldflags
os
.
environ
[
'JOBS'
]
=
values
.
build
.
jobs
os
.
environ
[
'JOBS'
]
=
values
.
build
.
jobs
os
.
environ
[
'MAKEFLAGS'
]
=
values
.
build
.
makeflags
os
.
environ
[
'MAKEFLAGS'
]
=
values
.
build
.
makeflags
...
...
inary/data/specfile.py
Dosyayı görüntüle @
59f72b23
...
@@ -189,6 +189,7 @@ class Source(metaclass=autoxml.autoxml):
...
@@ -189,6 +189,7 @@ class Source(metaclass=autoxml.autoxml):
t_Version
=
[
autoxml
.
String
,
autoxml
.
optional
]
t_Version
=
[
autoxml
.
String
,
autoxml
.
optional
]
t_Release
=
[
autoxml
.
String
,
autoxml
.
optional
]
t_Release
=
[
autoxml
.
String
,
autoxml
.
optional
]
t_SourceURI
=
[
autoxml
.
String
,
autoxml
.
optional
]
# used in index
t_SourceURI
=
[
autoxml
.
String
,
autoxml
.
optional
]
# used in index
t_UseFlag
=
[
autoxml
.
String
,
autoxml
.
optional
]
def
buildtimeDependencies
(
self
):
def
buildtimeDependencies
(
self
):
return
self
.
buildDependencies
return
self
.
buildDependencies
...
...
inary/operations/build.py
Dosyayı görüntüle @
59f72b23
...
@@ -34,7 +34,6 @@ import inary.util as util
...
@@ -34,7 +34,6 @@ import inary.util as util
import
inary.context
as
ctx
import
inary.context
as
ctx
import
inary.process
as
process
import
inary.process
as
process
import
inary.data.files
as
Files
import
inary.data.files
as
Files
import
inary.actionsapi.variables
import
inary.data.metadata
as
Metadata
import
inary.data.metadata
as
Metadata
import
inary.data.specfile
as
Specfile
import
inary.data.specfile
as
Specfile
import
inary.data.component
as
Component
import
inary.data.component
as
Component
...
@@ -464,7 +463,9 @@ class Builder:
...
@@ -464,7 +463,9 @@ class Builder:
"SRC_VERSION"
:
self
.
spec
.
getSourceVersion
(),
"SRC_VERSION"
:
self
.
spec
.
getSourceVersion
(),
"SRC_RELEASE"
:
self
.
spec
.
getSourceRelease
(),
"SRC_RELEASE"
:
self
.
spec
.
getSourceRelease
(),
"PATH"
:
"/bin:/usr/bin:/sbin:/usr/sbin"
,
"PATH"
:
"/bin:/usr/bin:/sbin:/usr/sbin"
,
"PYTHONDONTWRITEBYTECODE"
:
'1'
}
"PYTHONDONTWRITEBYTECODE"
:
'1'
,
"INARY_USE_FLAGS"
:
"True"
}
# FIXME: Get useflag status from pspec file (Source section)
os
.
environ
.
update
(
env
)
os
.
environ
.
update
(
env
)
# First check icecream, if not found use ccache
# First check icecream, if not found use ccache
...
...
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