<feed xmlns='http://www.w3.org/2005/Atom'>
<title>perl-URPM, branch topic/parse_property</title>
<subtitle>Perl RPM Manipulation Module</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/'/>
<entry>
<title>Fix parsing of properties containing [</title>
<updated>2022-11-01T22:23:53+00:00</updated>
<author>
<name>Pascal Terjan</name>
<email>pterjan@mageia.org</email>
</author>
<published>2022-10-25T20:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=2c86ed6389d741cfe41323937e9e93b89935490e'/>
<id>2c86ed6389d741cfe41323937e9e93b89935490e</id>
<content type='text'>
For example, the name extracted from a requirement of
"python3.10dist(fonttools[unicode])[&gt;= 4.10]" was sometimes
"python3.10dist(fonttools" instead of the expected
"python3.10dist(fonttools[unicode])".

Code parsing such strings existed in many places, it now exists only
in 2 places, a perl version in Resolve.pm and a C version in URPM.xs.

Both codes used to handle both "foo &gt;= 0" and "foo[&gt;= 0]" but at least
the perl code seems to only call it on provides/conflicts/obsoletes
which are always using the second form so the support for it was
dropped from the perl version for the sake of simplicity.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For example, the name extracted from a requirement of
"python3.10dist(fonttools[unicode])[&gt;= 4.10]" was sometimes
"python3.10dist(fonttools" instead of the expected
"python3.10dist(fonttools[unicode])".

Code parsing such strings existed in many places, it now exists only
in 2 places, a perl version in Resolve.pm and a C version in URPM.xs.

Both codes used to handle both "foo &gt;= 0" and "foo[&gt;= 0]" but at least
the perl code seems to only call it on provides/conflicts/obsoletes
which are always using the second form so the support for it was
dropped from the perl version for the sake of simplicity.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix detecting 4.18-alpha1</title>
<updated>2022-04-26T09:39:20+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2022-04-26T09:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=775e1ad51b6318b1a308be9b997accc470329282'/>
<id>775e1ad51b6318b1a308be9b997accc470329282</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename ChangeLog so that CPAN displays Changes instead</title>
<updated>2021-12-04T09:53:44+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-12-04T09:53:44+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=31f2f8eca5b8c3e06275f70d32aa36f500223f12'/>
<id>31f2f8eca5b8c3e06275f70d32aa36f500223f12</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>5.222</title>
<updated>2021-12-03T14:11:32+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-12-03T14:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=c29b5c1db36f7e55652697082a8e868abfebe9bf'/>
<id>c29b5c1db36f7e55652697082a8e868abfebe9bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Harmonize buffer size</title>
<updated>2021-12-03T14:11:26+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-12-03T14:07:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=0acb19ffb2cf8a2dcef3beb44f1c4af670d2219d'/>
<id>0acb19ffb2cf8a2dcef3beb44f1c4af670d2219d</id>
<content type='text'>
Thus fixing "invalid line &lt;@provides for huge pkgs"...
The fix in 5.221 was fixing emiting provides in synthesis for pkgs with
lot of provides, but neither URPM or urpmi testsuite uses such a pkg and
didn't catch that having those provides in synthesis would break reading
synthesis.
See commit 950d56e991d307b9b60bde8f51920bee3d1bc61c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thus fixing "invalid line &lt;@provides for huge pkgs"...
The fix in 5.221 was fixing emiting provides in synthesis for pkgs with
lot of provides, but neither URPM or urpmi testsuite uses such a pkg and
didn't catch that having those provides in synthesis would break reading
synthesis.
See commit 950d56e991d307b9b60bde8f51920bee3d1bc61c
</pre>
</div>
</content>
</entry>
<entry>
<title>5.221</title>
<updated>2021-12-02T15:27:06+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-11-22T16:11:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=f0e647904524953a92871d2ac5ed88f87fb65ecb'/>
<id>f0e647904524953a92871d2ac5ed88f87fb65ecb</id>
<content type='text'>
Rationale for the high bump:
Fixing the sorting on http://matrix.cpantesters.org/?dist=URPM

We switched to version object because that enables to have test versions to
test on CPAN testers (eg: 5.21.1, 5.21.2, .. .before releasing 5.22).
So we switched from 5.22 to v5.22.
See commit 7677ec9fe63dd33d125d19e1f9225c5b4d6d5f4a
See https://rt.cpan.org/Public/Bug/Display.html?id=127142

However v5.22.0 is less than 5.21 (interepreted as a floating point by perl):
perl -Mversion -E 'say version-&gt;new("v5.22")-&gt;numify'
5.022000

So we bumped the version from v5.28 to a much higer one.

However commit a58cf629be7e0d0512d6e1fd95c5004fb833c8c3 had a typo.
It clearly says we wanted to bump to v5.212.0, as 5.21 was the greatest
old-style version.

But it actually bumped to v5.122 whereas 5.122000 &lt; 5.21:
$ perl -Mversion -E 'say version-&gt;new("v5.122")-&gt;numify'
5.122000
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rationale for the high bump:
Fixing the sorting on http://matrix.cpantesters.org/?dist=URPM

We switched to version object because that enables to have test versions to
test on CPAN testers (eg: 5.21.1, 5.21.2, .. .before releasing 5.22).
So we switched from 5.22 to v5.22.
See commit 7677ec9fe63dd33d125d19e1f9225c5b4d6d5f4a
See https://rt.cpan.org/Public/Bug/Display.html?id=127142

However v5.22.0 is less than 5.21 (interepreted as a floating point by perl):
perl -Mversion -E 'say version-&gt;new("v5.22")-&gt;numify'
5.022000

So we bumped the version from v5.28 to a much higer one.

However commit a58cf629be7e0d0512d6e1fd95c5004fb833c8c3 had a typo.
It clearly says we wanted to bump to v5.212.0, as 5.21 was the greatest
old-style version.

But it actually bumped to v5.122 whereas 5.122000 &lt; 5.21:
$ perl -Mversion -E 'say version-&gt;new("v5.122")-&gt;numify'
5.122000
</pre>
</div>
</content>
</entry>
<entry>
<title>(Pkg_build_info) Increase static buffer size by 50%</title>
<updated>2021-12-02T14:55:12+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-12-02T14:51:59+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=950d56e991d307b9b60bde8f51920bee3d1bc61c'/>
<id>950d56e991d307b9b60bde8f51920bee3d1bc61c</id>
<content type='text'>
Rationale:
when generating synthesys, there's one new pkg whose provides were not
emitted in synthesis because its provides would overflow the static
buffer by 2 bytes:
"buffer overflow: 131074 &lt; 131072 for provides"

Also log when the buffer would be too small instead of silently ignoring
the issue.

The offending package is golang-github-azure-sdk-devel which has 2707
provides which translates to a 131074 characters line in synthesys.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rationale:
when generating synthesys, there's one new pkg whose provides were not
emitted in synthesis because its provides would overflow the static
buffer by 2 bytes:
"buffer overflow: 131074 &lt; 131072 for provides"

Also log when the buffer would be too small instead of silently ignoring
the issue.

The offending package is golang-github-azure-sdk-devel which has 2707
provides which translates to a 131074 characters line in synthesys.
</pre>
</div>
</content>
</entry>
<entry>
<title>Actually log 5.125</title>
<updated>2021-12-02T14:53:59+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-12-02T14:51:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=9af2828ac5884a55978b7d0acfcc3e485026beb5'/>
<id>9af2828ac5884a55978b7d0acfcc3e485026beb5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>5.125</title>
<updated>2021-10-23T08:46:23+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-10-23T08:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=fd4108ff1bcb792b08dbd1096e3c57836898654e'/>
<id>fd4108ff1bcb792b08dbd1096e3c57836898654e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Further prevent SRPM to conflicts with its own build deps</title>
<updated>2021-10-23T08:45:21+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2021-10-23T08:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=e7a917d3227a68f16b0c78c36339ad0d147b2dcd'/>
<id>e7a917d3227a68f16b0c78c36339ad0d147b2dcd</id>
<content type='text'>
commit 3fac0be4adab0ee63b6473d613982b418cc7ab92 was not enough in iurt
case.
We must also ignore SRPM provides.

Rationale:
Since rpm-4.16+, rpmlib adds NEVR provides for all packages that would
be built into source rpm.

Thus we hit:
"installed package gdb-minimal-10.2-2.mga9.x86_64 is conflicting with gdb-11.1-1.mga9.src"
Because of "Conflicts: gdb-headless[&gt; 10.2-2.mga9]"
Because gdb-11.1-1.mga9.src.rpm provides "gdb-headless = 11.1-1.mga9"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 3fac0be4adab0ee63b6473d613982b418cc7ab92 was not enough in iurt
case.
We must also ignore SRPM provides.

Rationale:
Since rpm-4.16+, rpmlib adds NEVR provides for all packages that would
be built into source rpm.

Thus we hit:
"installed package gdb-minimal-10.2-2.mga9.x86_64 is conflicting with gdb-11.1-1.mga9.src"
Because of "Conflicts: gdb-headless[&gt; 10.2-2.mga9]"
Because gdb-11.1-1.mga9.src.rpm provides "gdb-headless = 11.1-1.mga9"
</pre>
</div>
</content>
</entry>
</feed>
