Compare commits

..

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
f080e2c5b0
!22 add support for loongarch64
From: @dpdwaj 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2024-04-23 07:55:04 +00:00
doupengda
b66881288e add support for loongarch64 2024-04-23 15:41:31 +08:00
openeuler-ci-bot
f794fce716
!20 [sync] PR-18: fix riscv spec
From: @openeuler-sync-bot 
Reviewed-by: @jianli-97 
Signed-off-by: @jianli-97
2024-04-11 05:32:25 +00:00
shafeipaozi
bd38945164 fix
(cherry picked from commit 1dd4f6e6e6402112addf734a490bfd665069f3ed)
2024-04-11 10:43:33 +08:00
openeuler-ci-bot
99a189bfeb
!17 [sync] PR-15: rebase riscv support
From: @openeuler-sync-bot 
Reviewed-by: @jianli-97 
Signed-off-by: @jianli-97
2024-04-07 07:01:04 +00:00
shafeipaozi
b2a6bb8435 rebase patch
(cherry picked from commit c3897d0ebd495f9cf2929cd1458a8e11f8043152)
2024-04-07 14:32:26 +08:00
openeuler-ci-bot
c25a7ce7bb
!14 upgrade version to 0.0.99.5
From: @duyiwei7w 
Reviewed-by: @jianli-97 
Signed-off-by: @jianli-97
2024-01-12 08:57:42 +00:00
duyiwei
1c863fb441 upgrade version to 0.0.99.5 2024-01-05 14:03:12 +08:00
openeuler-ci-bot
5cc21949e4
!12 Add riscv64 support
From: @a-xiang-and-shanhaijing 
Reviewed-by: @jianminw 
Signed-off-by: @jianminw
2023-08-21 09:01:30 +00:00
zhangxiang
41e98e9086 add riscv support
add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support

add riscv support
2023-07-19 14:30:57 +08:00
openeuler-ci-bot
d206ff590d
!10 Specification NestOS Project Component Description File
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2023-06-21 07:00:50 +00:00
duyiwei
252fe31df8
Specification NestOS Project Component Description File
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
2023-06-21 06:00:51 +00:00
6 changed files with 70 additions and 106 deletions

View File

@ -1,58 +0,0 @@
From d4da0320234814ec17a817d049440cfd17833ecf Mon Sep 17 00:00:00 2001
From: duyiwei <duyiwei@kylinos.cn>
Date: Thu, 15 Sep 2022 15:32:58 +0800
Subject: [PATCH] fix-wrong-path-of-os-release
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
---
profile.d/toolbox.sh | 2 +-
toolbox | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/profile.d/toolbox.sh b/profile.d/toolbox.sh
index d43f6c7..5489cda 100644
--- a/profile.d/toolbox.sh
+++ b/profile.d/toolbox.sh
@@ -8,7 +8,7 @@ toolbox_welcome_stub="$toolbox_config/toolbox-welcome-shown"
# shellcheck disable=2046
# shellcheck disable=SC1091
eval $(
- . /usr/lib/os-release
+ . /etc/os-release
echo ID="$ID"
echo VARIANT_ID="$VARIANT_ID"
diff --git a/toolbox b/toolbox
index c6ae396..2848c19 100755
--- a/toolbox
+++ b/toolbox
@@ -531,7 +531,7 @@ get_group_for_sudo()
get_host_id()
(
# shellcheck disable=SC1091
- . /usr/lib/os-release
+ . /etc/os-release
echo "$ID"
)
@@ -539,7 +539,7 @@ get_host_id()
get_host_variant_id()
(
# shellcheck disable=SC1091
- . /usr/lib/os-release
+ . /etc/os-release
echo "$VARIANT_ID"
)
@@ -547,7 +547,7 @@ get_host_variant_id()
get_host_version_id()
(
# shellcheck disable=SC1091
- . /usr/lib/os-release
+ . /etc/os-release
echo "$VERSION_ID"
)
--
2.33.0

View File

@ -0,0 +1,25 @@
From 91352497429d404e3c4f4af45cd0b1985d82a923 Mon Sep 17 00:00:00 2001
From: Pengda Dou <doupengda@loongson.cn>
Date: Tue, 23 Apr 2024 15:25:25 +0800
Subject: [PATCH] toolbox-0.0.99.5 add support for loongarch64
---
src/meson.build | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/meson.build b/src/meson.build
index 098c692..f7c9b95 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -52,6 +52,8 @@ elif cpu_family == 'x86_64' and endian == 'little'
dynamic_linker = '/lib64/ld-linux-x86-64.so.2'
elif cpu_family == 'riscv64' and endian == 'little'
dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1'
+elif cpu_family == 'loongarch64' and endian == 'little'
+ dynamic_linker = '/lib64/ld-linux-loongarch-lp64d.so.1'
else
host_machine_description = cpu_family + ' (' + endian + ' endian)'
error('Please specify dynamic linker for:', host_machine_description)
--
2.38.1

View File

@ -1,37 +0,0 @@
# toolbox
#### 介绍
Tool for containerized command line environments on Linux
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

Binary file not shown.

View File

@ -1,33 +1,43 @@
%define debug_package %{nil}
Name: toolbox
Version: 0.0.99
Version: 0.0.99.5
%global goipath github.com/containers/%{name}
Release: 4
Summary: Unprivileged development environment
Summary: Tool for interactive command line environments on Linux
License: Apache-2.0
URL: https://github.com/containers/toolbox
Source0: toolbox-0.0.99.3.tar.xz
Source0: toolbox-0.0.99.5-vendored.tar.xz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Patch0: 0001-fix-wrong-path-of-os-release.patch
BuildRequires: golang >= 1.13 meson
Patch0: 0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch
BuildRequires: golang >= 1.20 meson >= 0.58.0
BuildRequires: pkgconfig(bash-completion) systemd
Requires: podman >= 1.4.0
BuildRequires: gcc shadow chrpath
Recommends: skopeo
Requires: podman >= 1.4.0 containers-common
%description
Toolbox is a tool for Linux operating systems, which allows the use of
containerized command line environments. It is built on top of Podman and
other standard container technologies from OCI.
%package tests
Summary: Tests for toolbox.
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: coreutils
Requires: grep
Requires: bats >= 1.7.0
# for htpasswd
Requires: httpd-tools
Requires: openssl
Requires: skopeo
%description tests
The toolbox-tests package contains system tests for toolbox.
@ -35,7 +45,7 @@ The toolbox-tests package contains system tests for toolbox.
%prep
%setup -q
%patch0 -p 1
%patch0 -p1
GOBUILDDIR="$(pwd)/_build"
GOSOURCEDIR="$(pwd)"
@ -66,21 +76,30 @@ export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_
ln -s src/cmd cmd
ln -s src/pkg pkg
ln -s src/vendor vendor
%meson --buildtype=plain -Dprofile_dir=%{_sysconfdir}/profile.d
%meson \
-Dprofile_dir=%{_sysconfdir}/profile.d \
-Dtmpfiles_dir=%{_tmpfilesdir} \
-Dzsh_completions_dir=%{_datadir}/zsh/site-functions
%meson_build
%install
%meson_install
if [ -f %{buildroot}/usr/bin/toolbox ]; then
chrpath --delete %{buildroot}/usr/bin/toolbox
fi
%files
%doc CODE-OF-CONDUCT.md NEWS README.md SECURITY.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/bash-completion
%{_datadir}/zsh
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-*.1*
%{_mandir}/man5/%{name}.conf.5*
%config(noreplace) %{_sysconfdir}/containers/%{name}.conf
%{_sysconfdir}/profile.d/%{name}.sh
%{_tmpfilesdir}/%{name}.conf
@ -88,6 +107,21 @@ ln -s src/vendor vendor
%{_datadir}/%{name}
%changelog
* Tue Apr 23 2024 Pengda Dou <doupengda@loongson.cn> - 0.0.99.5-4
- add support for loongarch64
* Wed Apr 10 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 0.0.99.5-3
- fix riscv spec
* Tue Apr 2 2024 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 0.0.99.5-2
- rebase patch and fix
* Thu Jan 04 2024 duyiwei <duyiwei@kylinos.cn> - 0.0.99.5-1
- upgrade version to 0.0.99.5
* Fri Jul 14 2023 zhangxiang <zhangxiang@iscas.ac.cn> - 0.0.99-5
- add riscv64 support
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 0.0.99-4
- License compliance rectification