[Bug 286107] ports-mgmt/pkg: improvement request: only install files whose checksum have changed
Date: Tue, 15 Apr 2025 08:03:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286107
Martin Birgmeier <d8zNeCFG@aon.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|Works As Intended |---
Status|Closed |New
--- Comment #2 from Martin Birgmeier <d8zNeCFG@aon.at> ---
(In reply to Baptiste Daroussin from comment #1)
Are you sure about this? I just upgraded firefox; I saved the checksums before
and after the upgrade and then looked at the file change times:
[0]# pkg query "%Fp %Fs" firefox-137.0.2,2 > /tmp/x1.firefox-137.0.2,2
[0]# diff /tmp/x1.firefox-137.0.1_2,2 /tmp/x1.firefox-137.0.2,2
2c2
< /usr/local/lib/firefox/application.ini
1$39a013f0959eabb2d794839b68b71f8aac76142b6e6f9a9daf05fdb81b1a31db
---
> /usr/local/lib/firefox/application.ini 1$251204c8370b492647f75f23304b84ae25f292438913788b58e5820f644832d0
13c13
< /usr/local/lib/firefox/browser/omni.ja
1$2016f826742ea249afd9c2055d7caf12eb2bcf588eee62ed5585871e40f54f5b
---
> /usr/local/lib/firefox/browser/omni.ja 1$9d9d9c489e52be9fb35c2c5a40f63f8f9d5510c9d24ff8278564e308b6de0c32
16,17c16,17
< /usr/local/lib/firefox/firefox
1$e0386d3868a5caed409c21e1363d41d13ad7343abb156054d29fee89a74c6766
< /usr/local/lib/firefox/firefox-bin
1$e0386d3868a5caed409c21e1363d41d13ad7343abb156054d29fee89a74c6766
---
> /usr/local/lib/firefox/firefox 1$459263c78506739636b0e1eea768102692ddcfea5e2a006c4c063786c7eb9edd
> /usr/local/lib/firefox/firefox-bin 1$459263c78506739636b0e1eea768102692ddcfea5e2a006c4c063786c7eb9edd
22c22
< /usr/local/lib/firefox/libgkcodecs.so
1$b77966a1c2f434e56eca08b05c05e41fdb638415cbd650c33c1f394c80088c19
---
> /usr/local/lib/firefox/libgkcodecs.so 1$bc8dca8ec36c6737722e7d9ad2614da0597612c6a3e873ff7eca0e4a5e12af28
24,25c24,25
< /usr/local/lib/firefox/libmozavcodec.so
1$36f64973ff329f54a3630011452b9b7f30becde666c33f7067da8ca3ff7c975e
< /usr/local/lib/firefox/libmozavutil.so
1$c5d834b352b62855d478d1ff6cd6acbe5dd379bf4a108db3d10acc950b671258
---
> /usr/local/lib/firefox/libmozavcodec.so 1$4a5cd266f21ca7142fb8458df0226e1cff49cb88f9c8889e764d850d708c8b7c
> /usr/local/lib/firefox/libmozavutil.so 1$a96a82893b52d90de4ebdf5db1a78440957c50878a431e26d11e7837a0249e89
29,30c29,30
< /usr/local/lib/firefox/libxul.so
1$21ef0a486aa4988274371f8dd81d0d703a97ec92983eae3d86531f87ccaf2863
< /usr/local/lib/firefox/omni.ja
1$a17f37450503b0116c5fa170e8cbdbc7317ab7b427d09a62450156d182a2a3e6
---
> /usr/local/lib/firefox/libxul.so 1$b3922ab719503e760278cbe9d13bcb86f6d54e82c8e5c4ab8aee7a122b26934c
> /usr/local/lib/firefox/omni.ja 1$1c3cd05f386ed0c40e14511de832d6404406ecbdbd2fc14e1a1dfcc75220324e
32c32
< /usr/local/lib/firefox/platform.ini
1$0ef0858ef41add4752ebc952ed26e17a4dbe787778ace1f490bb91b8edc4eddb
---
> /usr/local/lib/firefox/platform.ini 1$083f7ce47b242d31e00b52097e90a57f3cd52b97a0d1ad5420fb26d479a8295e
[1]# ll -cdtr `pkg query %Fp firefox-137.0.2,2`
lrwxr-xr-x 1 root wheel 30 Apr 15 08:56 /usr/local/bin/firefox ->
/usr/local/lib/firefox/firefox
-rw-r--r-- 1 root wheel 476 Apr 15 08:56
/usr/local/lib/firefox/application.ini
-rw-r--r-- 1 root wheel 13513 Apr 15 08:56
/usr/local/lib/firefox/browser/chrome/icons/default/default128.png
-rw-r--r-- 1 root wheel 722 Apr 15 08:56
/usr/local/lib/firefox/browser/chrome/icons/default/default16.png
-rw-r--r-- 1 root wheel 1948 Apr 15 08:56
/usr/local/lib/firefox/browser/chrome/icons/default/default32.png
-rw-r--r-- 1 root wheel 3448 Apr 15 08:56
/usr/local/lib/firefox/browser/chrome/icons/default/default48.png
-rw-r--r-- 1 root wheel 5459 Apr 15 08:56
/usr/local/lib/firefox/browser/chrome/icons/default/default64.png
-rw-r--r-- 1 root wheel 105324 Apr 15 08:56
/usr/local/lib/firefox/browser/features/formautofill@mozilla.org.xpi
-rw-r--r-- 1 root wheel 67490 Apr 15 08:56
/usr/local/lib/firefox/browser/features/pictureinpicture@mozilla.org.xpi
-rw-r--r-- 1 root wheel 168774 Apr 15 08:56
/usr/local/lib/firefox/browser/features/screenshots@mozilla.org.xpi
-rw-r--r-- 1 root wheel 10448 Apr 15 08:56
/usr/local/lib/firefox/browser/features/webcompat-reporter@mozilla.org.xpi
-rw-r--r-- 1 root wheel 588369 Apr 15 08:56
/usr/local/lib/firefox/browser/features/webcompat@mozilla.org.xpi
-rw-r--r-- 1 root wheel 45431086 Apr 15 08:56
/usr/local/lib/firefox/browser/omni.ja
-rw-r--r-- 1 root wheel 429 Apr 15 08:56
/usr/local/lib/firefox/defaults/pref/channel-prefs.js
-rw-r--r-- 1 root wheel 87 Apr 15 08:56
/usr/local/lib/firefox/dependentlibs.list
-rwxr-xr-x 1 root wheel 759440 Apr 15 08:56 /usr/local/lib/firefox/firefox
-rwxr-xr-x 1 root wheel 759440 Apr 15 08:56
/usr/local/lib/firefox/firefox-bin
-rw-r--r-- 1 root wheel 1474284 Apr 15 08:56
/usr/local/lib/firefox/fonts/TwemojiMozilla.ttf
-rwxr-xr-x 1 root wheel 25256 Apr 15 08:56 /usr/local/lib/firefox/glxtest
-rwxr-xr-x 1 root wheel 116792 Apr 15 08:56
/usr/local/lib/firefox/gmp-clearkey/0.1/libclearkey.so
-rw-r--r-- 1 root wheel 225 Apr 15 08:56
/usr/local/lib/firefox/gmp-clearkey/0.1/manifest.json
-rwxr-xr-x 1 root wheel 10074912 Apr 15 08:56
/usr/local/lib/firefox/libgkcodecs.so
-rwxr-xr-x 1 root wheel 203888 Apr 15 08:56
/usr/local/lib/firefox/liblgpllibs.so
-rwxr-xr-x 1 root wheel 5661184 Apr 15 08:56
/usr/local/lib/firefox/libmozavcodec.so
-rwxr-xr-x 1 root wheel 804872 Apr 15 08:56
/usr/local/lib/firefox/libmozavutil.so
-rwxr-xr-x 1 root wheel 5824 Apr 15 08:56
/usr/local/lib/firefox/libmozgtk.so
-rwxr-xr-x 1 root wheel 1672616 Apr 15 08:56
/usr/local/lib/firefox/libmozsqlite3.so
-rwxr-xr-x 1 root wheel 18512 Apr 15 08:56
/usr/local/lib/firefox/libmozwayland.so
-rwxr-xr-x 1 root wheel 192547752 Apr 15 08:56
/usr/local/lib/firefox/libxul.so
-rw-r--r-- 1 root wheel 36393738 Apr 15 08:56 /usr/local/lib/firefox/omni.ja
-rwxr-xr-x 1 root wheel 764576 Apr 15 08:56
/usr/local/lib/firefox/pingsender
-rw-r--r-- 1 root wheel 102 Apr 15 08:56
/usr/local/lib/firefox/platform.ini
-rw-r--r-- 1 root wheel 0 Apr 15 08:56
/usr/local/lib/firefox/removed-files
-rwxr-xr-x 1 root wheel 23840 Apr 15 08:56
/usr/local/lib/firefox/vaapitest
-rw-r--r-- 1 root wheel 9117 Apr 15 08:56
/usr/local/share/applications/firefox.desktop
lrwxr-xr-x 1 root wheel 65 Apr 15 08:56
/usr/local/share/pixmaps/firefox.png ->
/usr/local/lib/firefox/browser/chrome/icons/default/default48.png
[0]#
The diff shows that it would not have been necessary to reinstall all files,
whereas the ll shows that the ctime of all files has been changed.
Also, man pkg-upgrade says this:
Finally, the work list is executed in dependency order. Package
reinstall or update jobs are processed by removing the currently
installed package and immediately installing the replacement. New
dependencies are processed as installation jobs as part of the work list.
-- Martin
--
You are receiving this mail because:
You are the assignee for the bug.