Re: 0.26.2 Invalid version (double separator '-') with rpm / Problems also with alpine packaging

Martin Schanzenbach <[email protected]> Fri, 26 Dec 2025 10:34:53 +0900
Newsgroups gmane.network.gnunet.devel
Message-ID <[email protected]>
This is obviously not intended and I do not even know how it can happen
unless you actually rename the tarball after the make dist.

As an exception, I reuploaded the tarball, now again signed with my
key.

Best
Martin


Am Donnerstag, dem 25.12.2025 um 17:21 +0100 schrieb xrs:
> I've got a similar problem here for automatic alpine packaging.=20
>=20
> GNUnet tarballs used to have a folder named %{name}-%{version}. This
> is
> also standard for the alpine build process. Now the suffix
> "-1-gad3ced416" is causing trouble to abuild which is asking to
> specify
> the $builddir.=20
>=20
> > > > gnunet: Unpacking /var/cache/distfiles/gnunet-0.26.2.tar.gz...
> > > > ERROR: gnunet: Is $builddir set correctly?
> > > > ERROR: gnunet: prepare failed
>=20
> Best
> xrs=20
>=20
> On Thu, 25 Dec 2025 16:42:48 +0100
> Andreas Stieger <[email protected]> wrote:
>=20
> > I noticed that the v0.26.2 tarball is packaged so:
> >=20
> > $ tar -xf gnunet-0.26.2.tar.gz gnunet-0.26.2-1-gad3ced416/.version
> > -O
> > 0.26.2-1-gad3ced416
> >=20
> > Tar root directories other than %{name}-%{version} are a bit
> > clunky.
> > But using composite string in .version and ingesting it into meson
> > project (via scripts/get_version.sh) has issues: Specifically it
> > affects automatic dependency generation in rpm when using the
> > project
> > version with double separator:
> >=20
> > [=C2=A0 198s] RPM build warnings:
> > [=C2=A0 198s]=C2=A0 =C2=A0 =C2=A0Invalid version (double separator '-')=
:
> > 0.26.2-1-gad3ced416
> >=20
> > The work-around is trivial, but could you consider reviewing the
> > tarball release procedure?
> >=20
> > Andreas
> >=20
> >=20
>=20
>=20
>=20
> --
> GPG-Key: https://keys.openpgp.org/vks/v1/by-keyid/3E1C76778215233B
> GPG-Fpr: 06C2 0E71 4C71 D336 A233=C2=A0 A0B6 3E1C 7677 8215 233B