Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pagein for openSUSE:Factory checked in at 2025-01-01 23:04:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pagein (Old) and /work/SRC/openSUSE:Factory/.pagein.new.1881 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pagein" Wed Jan 1 23:04:33 2025 rev:7 rq:1233819 version:0.01.11 Changes: -------- --- /work/SRC/openSUSE:Factory/pagein/pagein.changes 2023-01-03 15:06:01.834742815 +0100 +++ /work/SRC/openSUSE:Factory/.pagein.new.1881/pagein.changes 2025-01-01 23:04:35.524290111 +0100 @@ -1,0 +2,6 @@ +Sat Dec 28 08:47:00 UTC 2024 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to 0.01.11: + * use off64_t for fdmem seeks, check for -ve offsets + +------------------------------------------------------------------- Old: ---- pagein-0.01.09.tar.gz New: ---- pagein-0.01.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pagein.spec ++++++ --- /var/tmp/diff_new_pack.tGo9sT/_old 2025-01-01 23:04:36.076312780 +0100 +++ /var/tmp/diff_new_pack.tGo9sT/_new 2025-01-01 23:04:36.076312780 +0100 @@ -3,6 +3,7 @@ # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2018, Martin Hauke <mar...@gmx.de> +# Copyright (c) 2024 Andreas Stieger <andreas.stie...@gmx.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +19,7 @@ Name: pagein -Version: 0.01.09 +Version: 0.01.11 Release: 0 Summary: A tool to force swapped out pages back into memory License: GPL-2.0-only @@ -43,7 +44,7 @@ Bash completion script for %{name}. %prep -%setup -q +%autosetup -p1 %build export CFLAGS="%{optflags}" @@ -58,5 +59,6 @@ %{_mandir}/man1/pagein.1%{?ext_man} %files bash-completion +%license COPYING %{_datadir}/bash-completion/completions/%{name} ++++++ pagein-0.01.09.tar.gz -> pagein-0.01.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/Makefile new/pagein-0.01.11/Makefile --- old/pagein-0.01.09/Makefile 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/Makefile 2024-07-17 17:58:55.000000000 +0200 @@ -1,6 +1,6 @@ # # Copyright (C) 2016-2021 Canonical, Ltd. -# Copyright (C) 2021-2022 Colin Ian King +# Copyright (C) 2021-2024 Colin Ian King # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.01.09 +VERSION=0.01.11 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 # @@ -45,14 +45,14 @@ dist: rm -rf pagein-$(VERSION) mkdir pagein-$(VERSION) - cp -rp Makefile pagein.c pagein.1 COPYING snap .travis.yml \ + cp -rp Makefile pagein.c pagein.1 COPYING .travis.yml \ bash-completion README.md pagein-$(VERSION) - tar -zcf pagein-$(VERSION).tar.gz pagein-$(VERSION) + tar -Jcf pagein-$(VERSION).tar.xz pagein-$(VERSION) rm -rf pagein-$(VERSION) clean: rm -f pagein pagein.o pagein.1.gz - rm -f pagein-$(VERSION).tar.gz + rm -f pagein-$(VERSION).tar.xz install: pagein pagein.1.gz mkdir -p ${DESTDIR}${BINDIR} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/debian/changelog new/pagein-0.01.11/debian/changelog --- old/pagein-0.01.09/debian/changelog 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/debian/changelog 2024-07-17 17:58:55.000000000 +0200 @@ -1,3 +1,23 @@ +pagein (0.01.11-1) unstable; urgency=medium + + * Makefile: bump version + * debian/control: update Standards-Version to 4.7.0 + * pagein: use off64_t for fdmem seeks, check for -ve offsets + + -- Colin Ian King <colin.i.k...@gmail.com> Wed, 17 Jul 2024 16:58:14 +0100 + +pagein (0.01.10-1) unstable; urgency=medium + + * Makefile: bump version + * Makefile: use xz compression on tarball on make dist rule + * debian/control: update standards version + * Update copyright year + * debian/rules: add missing hardening flags + * Makefile: remove snap from make dist rule + * Remove snapcraft + + -- Colin Ian King <colin.i.k...@gmail.com> Fri, 12 Jan 2024 11:13:32 +0000 + pagein (0.01.09-1) unstable; urgency=medium * Makefile: bump version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/debian/control new/pagein-0.01.11/debian/control --- old/pagein-0.01.09/debian/control 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/debian/control 2024-07-17 17:58:55.000000000 +0200 @@ -3,7 +3,7 @@ Section: admin Priority: optional Maintainer: Colin Ian King <colin.i.k...@gmail.com> -Standards-Version: 4.6.1 +Standards-Version: 4.7.0 Build-Depends: debhelper (>= 13), debhelper-compat (=13) Homepage: https://github.com/ColinIanKing/pagein diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/debian/rules new/pagein-0.01.11/debian/rules --- old/pagein-0.01.09/debian/rules 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/debian/rules 2024-07-17 17:58:55.000000000 +0200 @@ -1,5 +1,9 @@ #!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + override_dh_auto_build: $(shell dpkg-buildflags --export=sh); dh_auto_build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/pagein.1 new/pagein-0.01.11/pagein.1 --- old/pagein-0.01.09/pagein.1 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/pagein.1 2024-07-17 17:58:55.000000000 +0200 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.TH PAGEIN 1 "15 November 2021" +.TH PAGEIN 1 "12 January 2024" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -70,7 +70,7 @@ This manual page was written by Colin Ian King for the Ubuntu project (but may be used by others). .SH COPYRIGHT -Copyright \(co 2016-2021 Canonical Ltd, Copyright \(co 2021-2022 Colin Ian King. +Copyright \(co 2016-2021 Canonical Ltd, Copyright \(co 2021-2024 Colin Ian King. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/pagein.c new/pagein-0.01.11/pagein.c --- old/pagein-0.01.09/pagein.c 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/pagein.c 2024-07-17 17:58:55.000000000 +0200 @@ -1,6 +1,6 @@ /* * Copyright (C) 2016-2021 Canonical, Ltd. - * Copyright (C) 2021-2022 Colin Ian King + * Copyright (C) 2021-2024 Colin Ian King * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -15,7 +15,9 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ +*/ + +#define _LARGEFILE64_SOURCE #include <stdio.h> #include <stddef.h> @@ -256,17 +258,22 @@ for (off = begin; off < end; off += page_size, pages++) { unsigned long data; - off_t pos; + off64_t off64; (void)ptrace(PTRACE_PEEKDATA, pid, (void *)off, &data); - pos = lseek(fdmem, (off_t)off, SEEK_SET); - if (pos == (off_t)off) { - size_t sz; - sz = read(fdmem, &data, sizeof data); - (void)sz; + off64 = (off64_t)off; + if (off64 >= 0) { + off64_t pos64; + + pos64 = lseek64(fdmem, off64, SEEK_SET); + if (pos64 == off64) { + size_t sz; + + sz = read(fdmem, &data, sizeof data); + (void)sz; + } } - pages_touched++; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/snap/Makefile new/pagein-0.01.11/snap/Makefile --- old/pagein-0.01.09/snap/Makefile 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/snap/Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -all: - snapcraft - -clean: - rm -rf setup *.snap - snapcraft clean diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pagein-0.01.09/snap/snapcraft.yaml new/pagein-0.01.11/snap/snapcraft.yaml --- old/pagein-0.01.09/snap/snapcraft.yaml 2022-12-14 14:26:14.000000000 +0100 +++ new/pagein-0.01.11/snap/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,45 +0,0 @@ -name: pagein -summary: tool to force swapped out pages back into memory -description: Pagein is a tool that forces pages that are in swap to be paged in back to memory. The main usecase for pagein is to exercise the VM and swap subsystems for testing purposes. -confinement: devmode -type: app -grade: stable -assumes: [snapd2.45] -base: core20 -adopt-info: pagein - -architectures: - - build-on: s390x - - build-on: ppc64el - - build-on: arm64 - - build-on: armhf - - build-on: amd64 - - build-on: i386 - -parts: - pagein: - plugin: make - source-type: git - source: https://github.com/ColinIanKing/pagein - override-pull: | - snapcraftctl pull - description="$(git describe HEAD --tags)" - sha=$(echo $description | tr '-' ' ' | awk '{print $NF}') - version=${description%$sha} - commits=$(git log --oneline | wc -l) - date=$(date +'%Y%m%d') - if test "$description" = "$sha" - then - version="$description" - else - version=$(echo $version$date-$commits-$sha | cut -c1-32) - fi - snapcraftctl set-version "$version" - build-packages: - - gcc - - make - -apps: - pagein: - command: usr/bin/pagein -