Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openSUSE Build System (OBS): Debian build fails #35

Closed
gdha opened this issue Dec 29, 2013 · 14 comments
Closed

openSUSE Build System (OBS): Debian build fails #35

gdha opened this issue Dec 29, 2013 · 14 comments

Comments

@gdha
Copy link
Contributor

gdha commented Dec 29, 2013

Debian build fails on OpenSuSe Build System, but it works fine via make deb command. We get the following error:

[   32s] # copy cfg2html components into directories
[   32s] cp -av etc/default.conf debian/cfg2html/etc/cfg2html/
[   32s] cp: cannot stat `etc/default.conf': No such file or directory
[   32s] make: *** [binary-indep] Error 1
[   32s] dpkg-buildpackage: error: fakeroot-tcp debian/rules binary gave error exit status 2

See also: https://build.opensuse.org/package/show/home:gdha/cfg2html

Any hints are more then welcome!

@roseswe roseswe added the bug label Mar 7, 2014
@roseswe roseswe modified the milestone: cfg2html 7.00 Feb 4, 2015
gdha added a commit that referenced this issue Mar 27, 2015
…/cfg2html to /usr/share/cfg2html/etc (to be on the same page as RHEL) - perhaps related to issue #35
@gdha
Copy link
Contributor Author

gdha commented Mar 27, 2015

[  171s] if [ $(basename $(pwd)) = "BUILD" ]; then \
[  171s]        cd linux ; \
[  171s]        ls -l ; \
[  171s]    fi
[  171s] total 200
[  171s] -rw-r--r-- 1 root root   1941 May 15  2014 AUTHORS
[  171s] -rw-r--r-- 1 root root  35147 Jul  1  2007 COPYING
[  171s] -rw-r--r-- 1 root root  10261 Aug 14  2014 Makefile
[  171s] -rw-r--r-- 1 root root  12448 Oct  8  2013 README
[  171s] -rwxr-xr-x 1 root root 101465 Mar  5 04:05 cfg2html-linux.sh
[  171s] drwxr-xr-x 2 root root   4096 Mar 27 13:24 collect
[  171s] drwxr-xr-x 4 root root   4096 Mar 27 13:24 contrib
[  171s] drwxr-xr-x 2 root root   4096 Mar 27 13:24 doc
[  171s] drwxr-xr-x 2 root root   4096 Mar 27 13:24 etc
[  171s] drwxr-xr-x 2 root root   4096 Mar 27 13:24 lib
[  171s] drwxr-xr-x 4 root root   4096 Mar 27 13:24 packaging
[  171s] -rw-r--r-- 1 root root    534 May 15  2014 plugins
[  171s] -rw-r--r-- 1 root root    242 Feb 22  2014 systeminfo
[  171s] # copy cfg2html components into directories
[  171s] cp -av etc/default.conf debian/cfg2html/usr/share/cfg2html/etc/cfg2html/
[  171s] cp: cannot stat `etc/default.conf': No such file or directory
[  171s] make: *** [binary-indep] Error 1

unfortunately, not the golden bullet

@gdha
Copy link
Contributor Author

gdha commented Jun 2, 2016

[  104s] debian/cfg2html/var/log/cfg2html:
[  104s] total 0
[  104s] # copy cfg2html components into directories
[  104s] pwd
[  104s] /usr/src/packages/BUILD
[  104s] cp -av etc/default.conf debian/cfg2html/usr/share/cfg2html/etc/cfg2html/
[  104s] cp: cannot stat `etc/default.conf': No such file or directory

we should go 1 directory higher (cd linux)

@roseswe
Copy link
Member

roseswe commented Jan 15, 2018

Still open/an issue? OK to close?

@gdha
Copy link
Contributor Author

gdha commented Jan 15, 2018

It still fails:

   64s] dh_clean
[   64s] 	rm -f debian/debhelper-build-stamp
[   64s] 	rm -f debian/cfg2html.substvars
[   64s] 	rm -f debian/cfg2html.*.debhelper
[   64s] 	rm -rf debian/cfg2html/
[   64s] 	rm -rf debian/.debhelper/
[   64s] 	rm -f debian/*.debhelper.log
[   64s] dh_clean: Please specify the compatibility level in debian/compat
[   64s] debian/rules:46: recipe for target 'clean' failed

roseswe added a commit that referenced this issue Jan 15, 2018
@roseswe
Copy link
Member

roseswe commented Jan 15, 2018

Should be fixed now. Please try!
174062 Jan 15 11:45 cfg2html_6.33-1_all.deb
191419 Jan 15 11:44 cfg2html-6.33-git201801151142.tar.gz

@gdha
Copy link
Contributor Author

gdha commented Jan 29, 2018

@roseswe not really at OBS - see
https://build.opensuse.org/package/live_build_log/home:gdha/cfg2html/Debian_7.0/x86_64
Can you see the content?

roseswe added a commit that referenced this issue Jan 29, 2018
@roseswe
Copy link
Member

roseswe commented Jan 29, 2018

Yes, this is strange. It build on my "normal" Debian 8 system. This is the part causing the error:

[ 77s] /usr/src/packages/BUILD
[ 77s] cp -av etc/default.conf debian/cfg2html/usr/share/cfg2html/etc/cfg2html/
[ 77s] cp: cannot stat `etc/default.conf': No such file or directory
[ 77s] make: *** [binary-indep] Error 1

See also commit:
[master 802e83c] Hopefully a bug fix for issue #35
and issue #128

@roseswe roseswe changed the title OpenSuSe Build System debian build fails openSUSE Build System (OBS): Debian build fails Jan 29, 2018
@gdha
Copy link
Contributor Author

gdha commented Feb 16, 2018

@roseswe I see that the debian/ubuntu builds are failing on OBS with an error:

[   78s] files 329448263a3fef4b2f9825e92da31110 195883 cfg2html_6.33_8_gfed2d16.orig.tar.gz
[   78s] Scanning //usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16.orig.tar.gz...
[   78s] Generating //usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16-0git201802082250.diff
[   78s] Processing file "//usr/src/packages/SOURCES/debian.rules"...
[   78s] Processing file "//usr/src/packages/SOURCES/debian.control"...
[   78s] Processing file "//usr/src/packages/SOURCES/debian.changelog"...
[   78s] Writing //usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16-0git201802082250.dsc
[   79s] dpkg-source: warning: extracting unsigned source package (/usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16-0git201802082250.dsc)
[   79s] dpkg-source: error: version number contains illegal character `_'
[   79s] dpkg-source: info: extracting cfg2html in /usr/src/packages/BUILD
[   79s] -----------------------------------------------------------------
[   79s] ----- building cfg2html.dsc (user abuild)
[   79s] -----------------------------------------------------------------
[   79s] -----------------------------------------------------------------
[   79s] -su: line 0: cd: /usr/src/packages/BUILD: No such file or directory

roseswe added a commit that referenced this issue Feb 16, 2018
Regression from OBS build:
[   79s] dpkg-source: warning: extracting unsigned source package
(/usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16-0git201802082250.dsc)
[   79s] dpkg-source: error: version number contains illegal character `_'
roseswe added a commit that referenced this issue Feb 22, 2018
 -  Tweak/beautified the VCS collector for issue #111 - roseswe
 -  should fix one part of issue #124 - roseswe
 -  Add comments about issue #38 - roseswe
 -  Hopefully the next fix for issue #35
    Regression from OBS build:
    [   79s] dpkg-source: warning: extracting unsigned source package
    (/usr/src/packages/SOURCES.DEB/cfg2html_6.33_8_gfed2d16-0git201802082250.dsc)
    [   79s] dpkg-source: error: version number contains illegal character `_'
            roseswe
 -  enhanced the issue tracker section - roseswe
 -  Experimental build nummer using git describe - roseswe
 -  Successfully builds on a standalone Debian 8 box => cfg2html_6.33-3_all.deb - Ralph Roth
 -  Hopefully a bug fix for issue #35 - roseswe
 -  Delete gitupdate.sh
    Not related to be project
            GitHub
 -  GPG sign test v2, bumped version number - roseswe
 -  Fixed Vim modeline, test for signed GPG commits #3 (GPG2) - roseswe
 -  Fixed Vim modeline, test for signed GPG commits - roseswe
 -  remove the empty line from debian/compat - Gratien D'haese
 -  Bumped package file to 6.33 - Ralph Roth
 -  try to fix issue #35 - roseswe
 -  tabs -> spaces
    small reformatting
            roseswe
 -  TODO added.
    Spelling fixes.
            roseswe
 -  bumped release date - roseswe
 -  CVS keyword bumped to major version 6.33 - roseswe
 -  Small changes, mainly spelling errors - Ralph Roth
 -  fixes for wrong URL - Ralph Roth
 -  Added an comment about pre-build releases. - Ralph Roth
 -  Improved the README, also adding more MD formatting - Ralph Roth
 -  Fixes (hopefully for which commands)
    Source beautified
    Changed CVS header & Year
    Signed-off-by: Ralph Roth <rroth>
            Ralph Roth
 -  	modified:   linux/cfg2html-linux.sh - Ralph Roth
 -  	modified:   linux/cfg2html-linux.sh - Ralph Roth
 -  	modified:   cfg2html-linux.sh - Ralph Roth
 -  	modified:   linux/cfg2html-linux.sh - Ralph Roth
 -  added zypper patch log
    fixes for vim
    merged into CVS stream
            Ralph Roth
 -  Reference to Issue #6 added - Ralph Roth
@roseswe
Copy link
Member

roseswe commented Mar 9, 2018

Found this line in the OBS log: dpkg-source: warning: BUILD/debian/changelog(l5): badly formatted trailer line

@roseswe
Copy link
Member

roseswe commented Jun 12, 2018

With osc build Debian_9.0 I got this hint:

[ 2s] dh_clean
[ 2s] rm -f debian/debhelper-build-stamp
[ 2s] rm -f debian/cfg2html.substvars
[ 2s] rm -f debian/cfg2html..debhelper
[ 2s] rm -rf debian/cfg2html/
[ 2s] rm -rf debian/.debhelper/
[ 2s] rm -f debian/
.debhelper.log
[ 2s] dh_clean: Please specify the compatibility level in debian/compat
[ 2s] debian/rules:47: recipe for target 'clean' failed
[ 2s] make: *** [clean] Error 2
[ 2s] dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
[ 2s]
[ 2s] dell failed "build cfg2html.dsc" at Tue Jun 12 12:59:51 UTC 2018.

roseswe added a commit that referenced this issue Jun 12, 2018
Help needed here!

Signed-off-by: roseswe <3810660+roseswe@users.noreply.github.com>
@roseswe
Copy link
Member

roseswe commented May 15, 2020

Closing. If it problem still exists please open an new issue

@roseswe roseswe closed this as completed May 15, 2020
@gdha gdha reopened this Jan 19, 2023
gdha added a commit that referenced this issue Jan 19, 2023
Signed-off-by: Gratien D'haese <gratien.dhaese@gmail.com>
@gdha gdha added fixed and removed help-wanted labels Jan 19, 2023
@gdha
Copy link
Contributor Author

gdha commented Jan 19, 2023

See http://download.opensuse.org/repositories/home:/gdha/ for the packages build for the different OSes.

@roseswe
Copy link
Member

roseswe commented Jan 20, 2023

Linux Mint Debian Edition 5 (elsie -> bullseye)

  • dh_installdirs: warning: Compatibility levels before 10 are deprecated (level 9 in use)
  • cp: cannot stat 'linux/etc/default.conf': No such file or directory
  • make: *** [Makefile:34: deb] Error 2

gdha added a commit that referenced this issue Jan 20, 2023
@gdha
Copy link
Contributor Author

gdha commented Jan 21, 2023

@roseswe is now working on command line make deb and also via OBS.

@gdha gdha closed this as completed Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants