Hi all,
I'm trying to package transifex-cli but I find the following error in the %install phase:
/usr/bin/strip: /builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(__.PKGDEF): Unable to recognise the format of file: file format not recognized /usr/bin/strip: /builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(_go_.o): Unable to recognise the format of file: file format not recognized
%check phase is OK and during the final phase this is reported:
Provides: transifex-client = 1.6.10-1.fc41 transifex-client(x86-64) = 1.6.10-1.fc41 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: transifex-client-debugsource-1.6.10-1.fc41.x86_64 error: Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list
RPM build errors: Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list Finish: rpmbuild transifex-client-1.6.10-1.fc41.src.rpm Finish: build phase for transifex-client-1.6.10-1.fc41.src.rpm
Spec[1] doesn't have anything special and build logs are available[2]. It fails for all current Fedora versions.
Any idea what could be happening?
Regards, Mikel
[1] https://github.com/mikelolasagasti/transifex-client-specs [2] https://copr.fedorainfracloud.org/coprs/mikelo2/transifex-client/build/72326...
Hi all,
I found that 3 years ago I had the same problem[1] but did not reply to the list for a solution.
In both cases the problem was that %gobuild was not correct.
In this case I had to change from:
%gobuild -o %{gobuilddir}/bin/tx %{goipath}/cmd/tx
To:
%gobuild -o %{gobuilddir}/bin/tx %{goipath}
Regards, Mikel
[1] https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org...
Hau idatzi du Mikel Olasagasti (mikel@olasagasti.info) erabiltzaileak (2024 mar. 29(a), or. (16:26)):
Hi all,
I'm trying to package transifex-cli but I find the following error in the %install phase:
/usr/bin/strip: /builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(__.PKGDEF): Unable to recognise the format of file: file format not recognized /usr/bin/strip: /builddir/build/BUILDROOT/transifex-client-1.6.10-1.fc41.x86_64/usr/bin/tx(_go_.o): Unable to recognise the format of file: file format not recognized
%check phase is OK and during the final phase this is reported:
Provides: transifex-client = 1.6.10-1.fc41 transifex-client(x86-64) = 1.6.10-1.fc41 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: transifex-client-debugsource-1.6.10-1.fc41.x86_64 error: Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list
RPM build errors: Empty %files file /builddir/build/BUILD/cli-1.6.10/debugsourcefiles.list Finish: rpmbuild transifex-client-1.6.10-1.fc41.src.rpm Finish: build phase for transifex-client-1.6.10-1.fc41.src.rpm
Spec[1] doesn't have anything special and build logs are available[2]. It fails for all current Fedora versions.
Any idea what could be happening?
Regards, Mikel
[1] https://github.com/mikelolasagasti/transifex-client-specs [2] https://copr.fedorainfracloud.org/coprs/mikelo2/transifex-client/build/72326...
golang@lists.fedoraproject.org