Patches file more than once, bug or feature?

2 replies [Last post]
Other_Cody
Offline
Joined: 12/20/2023

What does the "patches file more than once" warning do, and is this a known bug or known feature?

apt-get source kodi
Reading package lists... Done
NOTICE: 'kodi' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/multimedia-team/kodi-media-center/kodi.git
Please use:
git clone https://salsa.debian.org/multimedia-team/kodi-media-center/kodi.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 33.8 MB of source archives.
Get:1 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (dsc) [5,866 B]
Get:2 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (tar) [596 kB]
Get:3 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (tar) [314 kB]
Get:4 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (tar) [333 kB]
Get:5 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (tar) [30.0 MB]
Get:6 https://archive.trisquel.org/trisquel aramo/main kodi 2:19.4+dfsg1-2 (diff) [2,521 kB]
Fetched 33.8 MB in 8s (4,175 kB/s)
dpkg-source: info: extracting kodi in kodi-19.4+dfsg1
dpkg-source: info: unpacking kodi_19.4+dfsg1.orig.tar.xz
dpkg-source: info: unpacking kodi_19.4+dfsg1.orig-libdate-tz-embedded.tar.xz
dpkg-source: info: unpacking kodi_19.4+dfsg1.orig-libdvdnav-embedded.tar.xz
dpkg-source: info: unpacking kodi_19.4+dfsg1.orig-libdvdread-embedded.tar.xz
dpkg-source: info: unpacking kodi_19.4+dfsg1-2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying kodi/0001-Implement-hashes-using-Libgcrypt.patch
dpkg-source: info: applying kodi/0002-Find-and-link-with-Libgcrypt.patch
dpkg-source: info: applying kodi/0003-privacy.patch
dpkg-source: info: applying kodi/0004-differentiate-from-vanilla-Kodi.patch
dpkg-source: info: applying kodi/0005-use-system-groovy.patch
dpkg-source: info: applying kodi/0006-fix-tests.patch
dpkg-source: info: applying kodi/0007-dont-use-openssl.patch
dpkg-source: info: applying kodi/0008-support-omitting-addons-service.patch
dpkg-source: info: applying kodi/0009-Find-test-fixtures-in-source-directory.patch
dpkg-source: info: applying kodi/0010-Skip-long-time-broken-test.patch
dpkg-source: info: applying kodi/0011-Disable-flaky-TestMassEvent.General-and-TestMassEven.patch
dpkg-source: info: applying kodi/0012-Skip-checking-errno-against-ENOENT-because-this-test.patch
dpkg-source: info: applying kodi/0013-patch-back-libdvdnav-libdvdread-makefiles.patch
dpkg-source: info: applying kodi/0014-dont-build-dvdnav-dvdread-with-dvdcss.patch
dpkg-source: info: applying kodi/0015-The-baseline-of-the-i386-port-does-not-include-SSE.patch
dpkg-source: info: applying kodi/0016-Disable-GetCPUFrequency-test.patch
dpkg-source: info: applying kodi/0017-Fix-C++-example-includes.patch
dpkg-source: info: applying kodi/0018-debian-cross-compile.patch
dpkg-source: info: applying kodi/0990-unmerged-PR20507.patch
dpkg-source: info: applying kodi/0991-unmerged-PR20985.patch
dpkg-source: info: applying libdvdnav/0001-xbmc-dvdnav-allow-get-set-vm-state.patch
dpkg-source: info: applying libdvdnav/0002-xbmc-dvdnav-expose-dvdnav_get_vm-dvdnav_get_button_i.patch
dpkg-source: info: applying libdvdnav/0003-xbmc-dvdnav-detection-of-dvd-name.patch
dpkg-source: info: applying libdvdnav/0004-xbmc-dvdnav-skip-cell-when-unrecoverable.patch
dpkg-source: info: applying libdvdnav/0005-xbmc-dvdnav-added-reading-of-VTS_TMAPT-and-TITLE_C_A.patch
dpkg-source: info: applying libdvdnav/0006-xbmc-dvdnav-various-safeguards.patch
dpkg-source: info: applying libdvdnav/0007-xbmc-dvdnav-disallow-time-search-when-navigation-pro.patch
dpkg-source: info: applying libdvdnav/0008-xbmc-dvdnav-additional-debug-log.patch
dpkg-source: info: applying libdvdnav/0009-xbmc-dvdnav-add-timemap-to-time-search.patch
dpkg-source: info: applying libdvdnav/0010-xbmc-dvdnav-expose-dvdnav_jump_to_sector_by_time.patch
dpkg-source: info: applying libdvdnav/0011-xbmc-added-cmake-build-system.patch
dpkg-source: info: applying libdvdread/0001-xbmc-libdvdread-added-defines-includes.patch
dpkg-source: info: applying libdvdread/0002-xbmc-libdvdread-don-t-do-symlink-resolution-on-kodi.patch
dpkg-source: info: applying libdvdread/0003-xbmc-libdvdread-kodi-VFS-doesn-t-support-opendir-use.patch
dpkg-source: info: applying libdvdread/0004-xbmc-added-cmake-build-system.patch
dpkg-source: info: applying libdvdread/debian-0001-libdvdcss.patch
dpkg-source: info: applying libdvdread/debian-0002-descriptor.patch
dpkg-source: info: applying libdvdread/extra-0001-Use-real-dlopen-for-libdvdcss.patch
dpkg-source: info: applying cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/Application.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/platform/posix/PosixTimezone.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/XBDateTime.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/XBDateTime.h more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/test/TestDateTime.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/platform/posix/filesystem/SMBDirectory.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/guilib/PVRGUIActions.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/windows/GUIWindowPVRGuide.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/epg/EpgInfoTag.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/epg/EpgSearchData.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/guilib/GUIEPGGridContainerModel.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/guilib/guiinfo/PVRGUITimesInfo.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/pvr/recordings/PVRRecording.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/dialogs/GUIDialogNumeric.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/utils/Archive.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/utils/Archive.h more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/xbmc/utils/test/TestArchive.cpp more than once
dpkg-source: warning: diff 'kodi-19.4+dfsg1/debian/patches/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch' patches file kodi-19.4+dfsg1/cmake/modules/FindDate.cmake more than once
dpkg-source: info: applying cdatetime-std-chrono/0002-Use-Debian-tzdata.patch
dpkg-source: info: applying cdatetime-std-chrono/0003-Reinstate-date-library-Makefile.patch

prospero
Offline
Joined: 05/20/2022

This is because the patch file provides 17 patches, some of them modifying the same files:

https://sources.debian.org/patches/kodi/2:19.1%2Bdfsg2-2%2Bdeb11u1/cdatetime-std-chrono/0001-Replace-Kodi-date-time-implementation-with-std-c.patch

dpkg-source warns you about that.

jxself
Offline
Joined: 09/13/2010

Ideally, the patches should be revised to avoid that.