Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is a question related to my other question

I am following these instructions to build a Debian package out of gitlab management software. I got the following error

dpkg-buildpackage
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin:
vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin:
vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export
LDFLAGS from dpkg-buildflags (origin: vendor):
-Wl,-Bsymbolic-functions -Wl,-z,relro tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-buildpackage: error: tail of debian/changelog gave error exit
status 1

Any help with the above errors

share|improve this question
1  
Please elaborate on what Debian/Ubuntu packaging source you are using. The Gitlab software source does not contain any debian/ directory so it's not suitable to be built like this. The pull request you refer to isn't merged. In case you need the source from the pull request, check out the author's fork. It's outdated, of course. –  gertvdijk Dec 24 '13 at 18:22
    
You are right, I just tried to download the source directly from master repository and issued the commands on it –  kamil Dec 24 '13 at 18:23

1 Answer 1

up vote 0 down vote accepted

It sounds like you might be running dpkg-buildpackage from inside the debian/ directory. You should be running it from the top-level directory.

If that's not the case, make sure the debian/ directory exists at all.

Update: By the way, Gitlab is not suitable to be built with Debian so your command dpkg-buildpackage will never work...

share|improve this answer
    
I created a directory named debian and inside it I created a file named changelog. the new error is parsechangelog/debian: warning: debian/changelog(l0): found eof where expected first heading parsechangelog/debian: error: fatal error occurred while parsing input dpkg-buildpackage: error: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 255 –  kamil Dec 24 '13 at 18:17
    
I will consider your note as the answer because I found that what I am trying to do is not applicable. I will try another situation –  kamil Dec 24 '13 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.