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
37a4782f
Kaydet (Commit)
37a4782f
authored
Mar 20, 2021
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix rootles build with fakeroot
üst
57478a38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
config.py
inary/config.py
+1
-4
build.py
inary/operations/build.py
+2
-4
No files found.
inary/config.py
Dosyayı görüntüle @
37a4782f
...
...
@@ -161,10 +161,7 @@ class Config(object, metaclass=util.Singleton):
def
tmp_dir
(
self
):
sysdir
=
self
.
subdir
(
self
.
values
.
dirs
.
tmp_dir
)
if
'USER'
in
os
.
environ
:
userdir
=
self
.
subdir
(
'/tmp/inary-'
+
os
.
environ
[
'USER'
])
else
:
userdir
=
self
.
subdir
(
'/tmp/inary-root'
)
userdir
=
self
.
subdir
(
'/tmp/inary'
)
# check write access
if
os
.
access
(
sysdir
,
os
.
W_OK
):
return
sysdir
...
...
inary/operations/build.py
Dosyayı görüntüle @
37a4782f
...
...
@@ -285,9 +285,6 @@ class Builder:
self
.
has_icecream
=
False
self
.
variable_buffer
=
{}
self
.
destdir
=
os
.
getcwd
()
if
os
.
getuid
()
!=
0
:
if
os
.
system
(
"fakeroot --version &>/dev/null"
)
==
0
:
os
.
environ
[
'USER'
]
=
"root"
def
set_spec_file
(
self
,
specuri
):
if
not
specuri
.
is_remote_file
():
...
...
@@ -448,7 +445,7 @@ class Builder:
# Each time a builder is created we must reset
# environment. See bug #2575
username
=
os
.
environ
[
"USER"
]
os
.
environ
.
clear
()
# inary.actionsapi.variables.initVariables()
...
...
@@ -457,6 +454,7 @@ class Builder:
"WORK_DIR"
:
self
.
pkg_src_dir
(),
"SRCDIR"
:
self
.
pkg_work_dir
(),
"HOME"
:
self
.
pkg_work_dir
(),
"USER"
:
username
,
"INSTALL_DIR"
:
self
.
pkg_install_dir
(),
"INARY_BUILD_TYPE"
:
self
.
build_type
,
"SRC_NAME"
:
self
.
spec
.
source
.
name
,
...
...
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