On Wed, Sep 19, 2018 at 4:33 PM Stefan Seyfried <stefan.seyfried@googlemail.com> wrote:
Am 19.09.18 um 22:25 schrieb Michael Ströder:
On 9/19/18 10:12 PM, Stefan Seyfried wrote:
Am 19.09.18 um 22:01 schrieb Michael Ströder:
On 9/19/18 9:46 PM, Stefan Seyfried wrote:
How about "let's only store max. N lines of changelog in rpm metadata" (and just put the rest into the package in /usr/share/doc/packages/%name/old-rpm-changelog.txt)
The "right" N is probably hard to determine.
500 lines. Last 20 Changelog entries. Whatever.
I'm not against your proposal in general.
So let me rephrase my answer: It's probably hard to reach consensus on the "right" N.
I'd guess that most people won't care too much. And in with my proposal, full .changes will stay in obs so developers (who are most likely interested in old changes can easily find them), maybe the last line of %changelog could be "375 additional changelog lines can be found at /usr/share/doc/packages/%name/rpm-full-changelog" so even "normal" users have an easy way of finding these.
I did some more (obviously non representative) statistics:
seife@strolchi:/dev/shm/stat> rpm -qa | wc 2758 2758 92345 seife@strolchi:/dev/shm/stat> ls -l total 151468 -rw-r--r-- 1 seife users 9007410 Sep 19 22:25 10-changes.txt -rw-r--r-- 1 seife users 16146498 Sep 19 22:24 20-changes.text -rw-r--r-- 1 seife users 18865190 Sep 19 22:26 250-lines.txt -rw-r--r-- 1 seife users 30687951 Sep 19 22:21 500-lines.txt -rw-r--r-- 1 seife users 80379915 Sep 19 22:19 all.txt
"all.txt" is all "rpm -q --changelog" concatenated. the *-lines.txt are only n lines of changelog the *-changes.txt are only n changelog entries.
keeping at most 20 Changelog entries per package would save quite some space and (to me at least :-) ) would be quite sufficient.
RPM supports automatically truncating based on timeline. In Fedora, we truncate at two years: https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/macros#_2... In Mageia, we truncate at three years: http://gitweb.mageia.org/software/rpm/rpm-setup/tree/macros.in#n21 It might also help if we didn't let people put ridiculously awful changelog entries (often generated by source services or something) due to the (IMO) odd desire to put lots of upstream changelog details from VCS history. I don't even bother to review some packages' changelogs on my computer anymore because too many packages make functionally useless changelogs because they just copy VCS history in, which is too much... -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org