Compare commits

..

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
ea3e8f7c8b
!21 [sync] PR-18: Modify version in changelog
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-06-21 06:46:42 +00:00
starlet-dx
b80006654b Modify version in changelog
(cherry picked from commit b0f8f918adbf7ec9c7e31bda992ccd8579d95fa5)
2024-05-28 09:44:13 +08:00
openeuler-ci-bot
f086ef9012
!13 [sync] PR-10: Add pie compile option
From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-03-26 06:43:42 +00:00
wang--ge
af70b0dfef add pie compile option
(cherry picked from commit a4dd224bbbbd6e85d834b8872cb4f524f4bdc271)
2024-03-26 14:18:34 +08:00
openeuler-ci-bot
8185a65976
!6 [sync] PR-4: sysget should generate debuginfo
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-07-30 06:36:33 +00:00
sunguoshuai
20b46d5534 sysget should generate debuginfo
(cherry picked from commit 308f9176207e4a33827bdbac84789dfb0d158e90)
2022-07-30 10:15:33 +08:00
openeuler-ci-bot
f801d3d725 !3 Completing build dependencies to fix gcc-c++ compiler missing error
From: @hht8
Reviewed-by: @licihua
Signed-off-by: @licihua
2021-06-07 09:49:35 +08:00
hht8
e05fc2028c Completing build dependencies to fix gcc-c++ compiler missing error 2021-06-07 09:33:35 +08:00
openeuler-ci-bot
24f78826fa !2 UPDATE sysget source0 addr
From: @love_hangzhou
Reviewed-by: @liqingqing_1229,@myeuler
Signed-off-by: @myeuler
2020-10-15 16:21:34 +08:00
love_hangzhou
278e3121d2 update sysget.spec resove source0 addr error
and add yaml file
2020-10-15 16:18:09 +08:00
openeuler-ci-bot
5cf82ab1d3 !1 init package
Merge pull request !1 from myeuler/master
2020-06-03 18:42:11 +08:00
4 changed files with 86 additions and 6 deletions

View File

@ -0,0 +1,41 @@
From d94c298552f7e9eb9ee063903ed8e14c9e42e132 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 6 Jun 2023 14:12:44 +0800
Subject: [PATCH] add pie compile option
---
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 80c8fe5..d16c755 100644
--- a/Makefile
+++ b/Makefile
@@ -3,19 +3,19 @@ INSTALLDEST=/usr/local/bin/sysget
CCP=g++
prog: main.o packagemanager.o utils.o translation.o
- $(CCP) $(FLAGS) -o sysget main.o packagemanager.o utils.o translation.o
+ $(CCP) $(FLAGS) -pie -o sysget main.o packagemanager.o utils.o translation.o
main.o: src/main.cpp src/main.hpp
- $(CCP) $(FLAGS) -c src/main.cpp src/main.hpp
+ $(CCP) $(FLAGS) -fPIE -c src/main.cpp src/main.hpp
packagemanager.o: src/packagemanager.hpp src/packagemanager.cpp
- $(CCP) $(FLAGS) -c src/packagemanager.hpp src/packagemanager.cpp
+ $(CCP) $(FLAGS) -fPIE -c src/packagemanager.hpp src/packagemanager.cpp
utils.o: src/utils.hpp src/utils.cpp
- $(CCP) $(FLAGS) -c src/utils.hpp src/utils.cpp
+ $(CCP) $(FLAGS) -fPIE -c src/utils.hpp src/utils.cpp
translation.o: src/translation.hpp src/translation.cpp
- $(CCP) $(FLAGS) -c src/translation.hpp src/translation.cpp
+ $(CCP) $(FLAGS) -fPIE -c src/translation.hpp src/translation.cpp
install:
cp sysget $(INSTALLDEST)
--
2.33.0

View File

@ -0,0 +1,22 @@
From 6f992c18c8a28c26a2a991206ea440f373b13156 Mon Sep 17 00:00:00 2001
From: sunguoshuai <sunguoshuai@huawei.com>
Date: Thu, 9 Sep 2021 14:43:46 +0800
Subject: [PATCH] sysget should generate debuginfo
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 80c8fe5..c3aa86b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-FLAGS=-std=c++11 -Wall -Wextra -Wpedantic
+FLAGS=-std=c++11 -Wall -Wextra -Wpedantic -g
INSTALLDEST=/usr/local/bin/sysget
CCP=g++
--
2.30.0

View File

@ -1,14 +1,14 @@
#%global debug_package %{nil}
Name: sysget Name: sysget
Version: 2.3 Version: 2.3
Release: 1 Release: 5
Summary: One package manager to rule them all Summary: One package manager to rule them all
License: GPLv3 License: GPLv3
URL: http://sysget.emilengler.com URL: http://sysget.emilengler.com
Source0: https://github.com/emilengler/sysget/archive/%{name}-%{version}.tar.gz Source0: https://github.com/emilengler/sysget/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: sysget-should-generate-debuginfo.patch
Patch2: 0001-add-pie-compile-option.patch
BuildRequires: gcc autoconf automake make BuildRequires: gcc autoconf automake make gcc-c++
%description %description
sysget is a bridge that lets you use one syntax to every package manager on every unix-based operating system. sysget is a bridge that lets you use one syntax to every package manager on every unix-based operating system.
@ -17,6 +17,8 @@ The syntax is mostly same with apt so it should be easy to use.
%prep %prep
%setup -q -n %{name}-%{version}/ %setup -q -n %{name}-%{version}/
%patch1 -p1
%patch2 -p1
%build %build
%make_build %make_build
@ -49,6 +51,17 @@ install -m0644 contrib/sysget.bash-completion %{buildroot}/%{_sysconfdir}/bash_c
%changelog %changelog
* Tue Jun 06 2023 Ge Wang <wang__ge@126.com> - 2.3-5
- Add pie compile option
* Thu Sep 09 2021 sunguoshuai <sunguoshuai@huawei.com> - 2.3-4
- sysget should generate debuginfo
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 2.3-3
- Completing build dependencies to fix gcc-c++ compiler missing error
* Thu Sep 24 2020 ShiYuan Hu<421699196@qq.com> - 2.3-2
- refresh source0 url
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com> * Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init - Package init

4
sysget.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control:github
src_repo:emilengler/sysget
tar_prefix: "^v"
seperator: .