Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
eecec9c2cb
!35 Update to version 1.21.22
From: @desert-sailor 
Reviewed-by: @pipifather 
Signed-off-by: @pipifather
2024-01-18 08:35:43 +00:00
desert-sailor
739afdf3d7 Update to version 1.21.22 2024-01-17 16:51:27 +08:00
openeuler-ci-bot
cbeb6ba989
!31 Do not define the clamp macro when compiling C++ code
From: @chen-jan 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-07-20 09:15:28 +00:00
chen-jan
3c3086c182 Do not define the clamp macro when compiling C++ code 2023-07-20 10:47:25 +08:00
openeuler-ci-bot
c9b3cadaa2
!26 add loongarch support for dpkg
From: @zhangwenlong01 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-03-14 03:46:10 +00:00
Wenlong Zhang
82dbf534bf add loongarch support for dpkg 2023-03-10 09:47:10 +08:00
openeuler-ci-bot
dcdcb12ce0
!5 fix spec changelog date
From: @loong-C 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-05-27 07:19:24 +00:00
openeuler-ci-bot
6f1c8bdfe7
!16 Fix CVE-2022-1664
From: @houyingchao 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-05-27 06:30:46 +00:00
houyingchao
1e1363d0ee Fix CVE-2022-1664 2022-05-27 11:43:16 +08:00
mylee
55bfb25b90 fix spec changelog date 2022-05-13 13:23:56 +08:00
6 changed files with 45 additions and 66 deletions

View File

@ -0,0 +1,7 @@
--- dpkg-1.18.25/data/cputable 2018-06-26 18:28:08.000000000 +0800
+++ dpkg-1.18.25.bak/data/cputable 2022-08-18 11:07:35.274982296 +0800
@@ -51,3 +51,4 @@
sparc sparc sparc 32 big
sparc64 sparc64 sparc64 64 big
tilegx tilegx tilegx 64 little
+loongarch64 loongarch64 loongarch64 64 little

View File

@ -1,17 +0,0 @@
diff -up ./debian/dpkg.logrotate.orig ./debian/dpkg.logrotate
--- ./debian/dpkg.logrotate.orig 2013-06-30 10:04:23.369382622 +0300
+++ ./debian/dpkg.logrotate 2013-06-30 10:04:39.268407865 +0300
@@ -7,12 +7,3 @@
notifempty
create 644 root root
}
-/var/log/alternatives.log {
- monthly
- rotate 12
- compress
- delaycompress
- missingok
- notifempty
- create 644 root root
-}

View File

@ -1,38 +0,0 @@
From 5ee4bdf24d9c61c42f781a89e09584468386fa02 Mon Sep 17 00:00:00 2001
From: zhengchuan <zhengchuan@huawei.com>
Date: Fri, 2 Aug 2019 17:28:53 +0800
Subject: [PATCH] dpkg log: Change logfile permission to satisfy with safty
---
debian/dpkg.logrotate | 2 +-
debian/dpkg.postinst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/dpkg.logrotate b/debian/dpkg.logrotate
index cf36f08..c57052b 100644
--- a/debian/dpkg.logrotate
+++ b/debian/dpkg.logrotate
@@ -5,5 +5,5 @@
delaycompress
missingok
notifempty
- create 644 root root
+ create 640 root root
}
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 9771d7f..674e0fd 100755
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -19,7 +19,7 @@ create_database() {
create_logfile() {
logfile=/var/log/dpkg.log
touch $logfile
- chmod 644 $logfile
+ chmod 640 $logfile
chown root:root $logfile 2>/dev/null || chown 0:0 $logfile
}
--
1.7.12.4

View File

@ -1,8 +1,8 @@
%global enable_dev_package 0
%global enable_dev_package 1
Name: dpkg
Version: 1.18.25
Release: 11
Version: 1.21.22
Release: 1
Summary: Package maintenance system for Debian Linux
License: GPL-2.0-only and GPL-2.0-or-later and LGPL-2.0-or-later and Public Domain and BSD-2-Clause
URL: https://tracker.debian.org/pkg/dpkg
@ -10,7 +10,8 @@ Source0: http://ftp.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar
BuildRequires: zlib-devel bzip2-devel libselinux-devel gettext ncurses-devel
BuildRequires: autoconf automake doxygen gettext-devel gcc-c++ libtool
BuildRequires: flex fakeroot xz-devel dotconf-devel po4a >= 0.43
BuildRequires: libzstd-devel make libmd-devel
BuildRequires: flex fakeroot xz-devel dotconf-devel po4a >= 0.59
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
@ -19,11 +20,13 @@ BuildRequires: perl(Digest)
BuildRequires: perl(Test::More)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(IO::String)
BuildRequires: perl(Tie::Handle)
BuildRequires: fakeroot
Requires(post): coreutils
Patch1: dpkg-fix-logrotate.patch
Patch2: dpkg-log-Change-logfile-permission-to-satisfy-with-s.patch
Patch1: add-loongarch-support-for-dpkg.patch
%description
Dpkg is a tool to install, build, remove and manageDebian packages. The
@ -82,10 +85,11 @@ sed -i 's/^use --/may use --/' scripts/dpkg-source.pl
autoreconf
%configure --disable-linker-optimisations \
--with-admindir=%{_localstatedir}/lib/dpkg \
--runstatedir=/run \
--with-libselinux \
--without-libmd \
--with-libz \
--with-liblzma \
--with-libzstd \
--with-libbz2
%make_build
@ -134,14 +138,20 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%{_bindir}/dpkg-query
%{_bindir}/dpkg-split
%{_bindir}/dpkg-statoverride
%{_bindir}/dpkg-realpath
%{_bindir}/dpkg-trigger
%{_bindir}/dselect
%{_sbindir}/start-stop-daemon
%{_sbindir}/dpkg-fsys-usrunmess
%{_libexecdir}/dpkg/dpkg-db-backup
%dir %{_datadir}/dpkg
%{_datadir}/dpkg/abitable
%{_datadir}/dpkg/cputable
%{_datadir}/dpkg/ostable
%{_datadir}/dpkg/tupletable
%{_datadir}/polkit-1/actions/org.dpkg.pkexec.update-alternatives.policy
%{_datadir}/doc/dpkg/*
%{_datadir}/dpkg/sh/dpkg-error.sh
%dir %{_localstatedir}/lib/dpkg
%dir %{_localstatedir}/lib/dpkg/alternatives
%dir %{_localstatedir}/lib/dpkg/info
@ -174,6 +184,7 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%exclude %{_bindir}/dpkg-source
%exclude %{_bindir}/dpkg-vendor
%exclude %{_datadir}/dpkg/*.mk
%exclude %{_datadir}/zsh/vendor-completions/_dpkg-parsechangelog
%exclude /etc/dpkg/shlibs.*
%exclude /usr/share/locale/ca/LC_MESSAGES/dpkg-dev.mo
%exclude /usr/share/locale/de/LC_MESSAGES/dpkg-dev.mo
@ -182,6 +193,8 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%exclude /usr/share/locale/pl/LC_MESSAGES/dpkg-dev.mo
%exclude /usr/share/locale/ru/LC_MESSAGES/dpkg-dev.mo
%exclude /usr/share/locale/sv/LC_MESSAGES/dpkg-dev.mo
%exclude /usr/share/locale/nl/LC_MESSAGES/dpkg-dev.mo
%exclude /usr/share/locale/pt/LC_MESSAGES/dpkg-dev.mo
%endif
%{perl_vendorlib}/Dselect
@ -191,9 +204,11 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%{_libdir}/libdpkg.a
%{_libdir}/pkgconfig/libdpkg.pc
%{_includedir}/dpkg/*.h
%{_datadir}/aclocal/dpkg-*.m4
%if %{enable_dev_package}
%files dev -f dpkg-dev.lang
%doc doc/README.feature-removal-schedule doc/README.api doc/spec
%config(noreplace) %{_sysconfdir}/dpkg/shlibs.default
%config(noreplace) %{_sysconfdir}/dpkg/shlibs.override
%{_bindir}/dpkg-architecture
@ -214,6 +229,7 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%{_bindir}/dpkg-source
%{_bindir}/dpkg-vendor
%{_datadir}/dpkg/*.mk
%{_datadir}/zsh/vendor-completions/_dpkg-parsechangelog
%endif
%files perl
@ -222,10 +238,9 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%files help
%doc debian/changelog README TODO
%doc dselect/methods/multicd/README.multicd
%doc debian/dpkg.cron.daily
%doc AUTHORS THANKS debian/usertags doc/README.api
%doc doc/frontend.txt doc/triggers.txt
%doc AUTHORS THANKS doc/README.api
%{_mandir}/*
%exclude %{_mandir}/it/man1/
%exclude %{_mandir}/it/man5/
@ -236,10 +251,22 @@ chown root:root /var/log/dpkg.log 2>/dev/null || chown 0:0 /var/log/dpkg.log
%endif
%changelog
* Fri Jan 12 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.21.22-1
- Update version to 1.21.22
* Thu Jul 20 2023 chenchen <chen_aka_jan@163.com> - 1.18.25-14
- Do not define the clamp macro when compiling C++ code
* Fri Mar 10 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 1.18.25-13
- add loongarch support for dpkg
* Fri May 27 2022 houyingchao <houyingchao@h-partners.com> - 1.18.25-12
- Fix CVE-2022-1664
* Tue May 10 2022 chenchen <chen_aka_jan@163.com> - 1.18.25-11
- License compliance rectification
* Mon Mar 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.18.25-10
* Mon Mar 16 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.18.25-10
- disable dpkg-dev
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.18.25-9

Binary file not shown.

BIN
dpkg_1.21.22.tar.xz Normal file

Binary file not shown.