Re: Empty debugsources.list file in build when enabling py2 builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19.10.2018 00:28, Ankur Sinha wrote:
On Thu, Oct 18, 2018 23:11:56 +0100, Ankur Sinha wrote:
<snip>

https://github.com/sanjayankur31/rpm-specs/blob/libneurosim/libneurosim.spec

However, when I flip that variable to enable py2 builds to 1:

%global with_py2 1

the build fails with this error:

error: Empty %files file /builddir/build/BUILD/libneurosim-57b76e222dd3196fa3c97ddfa2f8132627814c23/debugsourcefiles.list

After some random tinkering, I find that if I install the py3 build
later (the build that uses the "main" copy of the source), the build no
longer fails:

https://github.com/sanjayankur31/rpm-specs/commit/26aa6d6e0b3816fee7c762113e0354e234de8551

I'm still at a loss to why this is so. Would someone be able to shed
some light on this please?

The debugsourcefiles.list is constructed from files in the current folder the build is in. In your case, that's the %{name}-%{commit} folder from %autosetup.

Anything you create outside that folder is not included.

You do this:

  cd ../
  ...
  cp -a %{name}-%{commit} %{name}-%{commit}-py2


And ../%{name}-%{commit}-py2 is not included.

If you really need to do this, create those as subfolders:

  %autosetup -c -n %{name}-%{commit}
  cp -a %{name}-%{commit} %{name}-%{commit}-py2
  ..

Note the -c and the lack of cd ../.

--

Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux