openSUSE / obs-scm-bridge

GNU General Public License v2.0
3 stars 7 forks source link

Debug files #2

Closed mslacken closed 2 years ago

mslacken commented 2 years ago

If build directly with osc build from a git repo I get following problem

Could not open %files file /home/abuild/rpmbuild/BUILD/home/abuild/rpmbuild/SOURCES/debugsourcefiles.list: No such file or directory

The file is not in the spec file so it is created during build.

adrianschroeter commented 2 years ago

can you give me a real life example for this?

mslacken commented 2 years ago

https://build.opensuse.org/package/show/home:mslacken:pr/openPBS with a local build with following diff to the spec file

diff --git a/openpbs.spec b/openpbs.spec
index f42fedf..27142a2 100644
--- a/openpbs.spec
+++ b/openpbs.spec
@@ -85,7 +85,7 @@
 Name: %{pbs_name}
 Version: %{pbs_version}
 Release: %{pbs_release}
-Source0: %{pbs_dist}
+#Source0: %{pbs_dist}
 Summary: OpenPBS
 License: AGPLv3 with exceptions
 URL: http://www.openpbs.org
@@ -307,16 +307,11 @@ functionality of PBS.

 %endif

-%if 0%{?opensuse_bs}
-# Do not specify debug_package for OBS builds.
-%else
-%if 0%{?suse_version} || "x%{?_vendor_id}" == "xdebian" || "x%{?_vendor_id}" == "xubuntu"
-%debug_package
-%endif
-%endif

 %prep
-%setup
+#%%setup
+%setup -q -D -T 0 -n %_sourcedir
+

 %build
 [ -f configure ] || ./autogen.sh
mslacken commented 2 years ago

Seemed to have been an issue with the spec file.