Making a deb package where dh doesn't build the program












5














I am trying to make a debian package for my own application, using the PBuilder utility.
I cannot use dh, because the build process of my program is very specific. When I compile it, I must run qmake instead of the usual "./configure" and then make.
So I created my own "rules" script, but when I run pdebuild, it compiles and installs the files to the desired paths, but I end up with an error saying:



dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute


My application is called Qtag, and this is my rules file:



#!/usr/bin/make -f

clean:
cd src; qmake
cd src; make clean
rm -f src/qtag
rm -f src/Makefile

build:
cd src; qmake
cd src; make

build-arch: build

build-indep: build

binary-arch: build-arch
mkdir -p $$(pwd)/debian/qtag/usr/bin
cp src/qtag $$(pwd)/debian/qtag/usr/bin

binary-indep: build-indep
mkdir -p $$(pwd)/debian/qtag/usr/share/pixmaps
mkdir -p $$(pwd)/debian/qtag/usr/share/applications
cp src/images/Qtag.png $$(pwd)/debian/qtag/usr/share/pixmaps
cp src/qtag.desktop $$(pwd)/debian/qtag/usr/share/applications

binary: binary-arch binary-indep


This is my "control" file:



Source: qtag
Section: unknown
Priority: optional
Maintainer: Karel Patlejch <kaja.patlejch@gmail.com>
Build-Depends: debhelper (>= 9), qt5-default, libtag1-dev
Standards-Version: 3.9.5
Homepage: http://github.com/amethystant/qtag

Package: qtag
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libtag1-vanilla, libqt5core5a
Description: Audio tag editor
Qtag is a Qt-based audio tag editor. Supports ID3, Xiph Comments and more.


I use PBuilder and Debian 8



This is full output of pdebuild: https://drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/view?usp=sharing










share|improve this question




















  • 1




    Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
    – Stephen Kitt
    Jun 16 '15 at 15:59






  • 1




    You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
    – Faheem Mitha
    Jun 16 '15 at 16:09










  • @FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
    – casey
    Jun 16 '15 at 16:27










  • @casey Oh, I missed that link.
    – Faheem Mitha
    Jun 16 '15 at 16:32










  • @StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
    – amethystAnt
    Jun 17 '15 at 15:07
















5














I am trying to make a debian package for my own application, using the PBuilder utility.
I cannot use dh, because the build process of my program is very specific. When I compile it, I must run qmake instead of the usual "./configure" and then make.
So I created my own "rules" script, but when I run pdebuild, it compiles and installs the files to the desired paths, but I end up with an error saying:



dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute


My application is called Qtag, and this is my rules file:



#!/usr/bin/make -f

clean:
cd src; qmake
cd src; make clean
rm -f src/qtag
rm -f src/Makefile

build:
cd src; qmake
cd src; make

build-arch: build

build-indep: build

binary-arch: build-arch
mkdir -p $$(pwd)/debian/qtag/usr/bin
cp src/qtag $$(pwd)/debian/qtag/usr/bin

binary-indep: build-indep
mkdir -p $$(pwd)/debian/qtag/usr/share/pixmaps
mkdir -p $$(pwd)/debian/qtag/usr/share/applications
cp src/images/Qtag.png $$(pwd)/debian/qtag/usr/share/pixmaps
cp src/qtag.desktop $$(pwd)/debian/qtag/usr/share/applications

binary: binary-arch binary-indep


This is my "control" file:



Source: qtag
Section: unknown
Priority: optional
Maintainer: Karel Patlejch <kaja.patlejch@gmail.com>
Build-Depends: debhelper (>= 9), qt5-default, libtag1-dev
Standards-Version: 3.9.5
Homepage: http://github.com/amethystant/qtag

Package: qtag
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libtag1-vanilla, libqt5core5a
Description: Audio tag editor
Qtag is a Qt-based audio tag editor. Supports ID3, Xiph Comments and more.


I use PBuilder and Debian 8



This is full output of pdebuild: https://drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/view?usp=sharing










share|improve this question




















  • 1




    Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
    – Stephen Kitt
    Jun 16 '15 at 15:59






  • 1




    You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
    – Faheem Mitha
    Jun 16 '15 at 16:09










  • @FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
    – casey
    Jun 16 '15 at 16:27










  • @casey Oh, I missed that link.
    – Faheem Mitha
    Jun 16 '15 at 16:32










  • @StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
    – amethystAnt
    Jun 17 '15 at 15:07














5












5








5







I am trying to make a debian package for my own application, using the PBuilder utility.
I cannot use dh, because the build process of my program is very specific. When I compile it, I must run qmake instead of the usual "./configure" and then make.
So I created my own "rules" script, but when I run pdebuild, it compiles and installs the files to the desired paths, but I end up with an error saying:



dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute


My application is called Qtag, and this is my rules file:



#!/usr/bin/make -f

clean:
cd src; qmake
cd src; make clean
rm -f src/qtag
rm -f src/Makefile

build:
cd src; qmake
cd src; make

build-arch: build

build-indep: build

binary-arch: build-arch
mkdir -p $$(pwd)/debian/qtag/usr/bin
cp src/qtag $$(pwd)/debian/qtag/usr/bin

binary-indep: build-indep
mkdir -p $$(pwd)/debian/qtag/usr/share/pixmaps
mkdir -p $$(pwd)/debian/qtag/usr/share/applications
cp src/images/Qtag.png $$(pwd)/debian/qtag/usr/share/pixmaps
cp src/qtag.desktop $$(pwd)/debian/qtag/usr/share/applications

binary: binary-arch binary-indep


This is my "control" file:



Source: qtag
Section: unknown
Priority: optional
Maintainer: Karel Patlejch <kaja.patlejch@gmail.com>
Build-Depends: debhelper (>= 9), qt5-default, libtag1-dev
Standards-Version: 3.9.5
Homepage: http://github.com/amethystant/qtag

Package: qtag
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libtag1-vanilla, libqt5core5a
Description: Audio tag editor
Qtag is a Qt-based audio tag editor. Supports ID3, Xiph Comments and more.


I use PBuilder and Debian 8



This is full output of pdebuild: https://drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/view?usp=sharing










share|improve this question















I am trying to make a debian package for my own application, using the PBuilder utility.
I cannot use dh, because the build process of my program is very specific. When I compile it, I must run qmake instead of the usual "./configure" and then make.
So I created my own "rules" script, but when I run pdebuild, it compiles and installs the files to the desired paths, but I end up with an error saying:



dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute


My application is called Qtag, and this is my rules file:



#!/usr/bin/make -f

clean:
cd src; qmake
cd src; make clean
rm -f src/qtag
rm -f src/Makefile

build:
cd src; qmake
cd src; make

build-arch: build

build-indep: build

binary-arch: build-arch
mkdir -p $$(pwd)/debian/qtag/usr/bin
cp src/qtag $$(pwd)/debian/qtag/usr/bin

binary-indep: build-indep
mkdir -p $$(pwd)/debian/qtag/usr/share/pixmaps
mkdir -p $$(pwd)/debian/qtag/usr/share/applications
cp src/images/Qtag.png $$(pwd)/debian/qtag/usr/share/pixmaps
cp src/qtag.desktop $$(pwd)/debian/qtag/usr/share/applications

binary: binary-arch binary-indep


This is my "control" file:



Source: qtag
Section: unknown
Priority: optional
Maintainer: Karel Patlejch <kaja.patlejch@gmail.com>
Build-Depends: debhelper (>= 9), qt5-default, libtag1-dev
Standards-Version: 3.9.5
Homepage: http://github.com/amethystant/qtag

Package: qtag
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libtag1-vanilla, libqt5core5a
Description: Audio tag editor
Qtag is a Qt-based audio tag editor. Supports ID3, Xiph Comments and more.


I use PBuilder and Debian 8



This is full output of pdebuild: https://drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/view?usp=sharing







debian compiling deb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 16 at 4:23









Rui F Ribeiro

38.9k1479129




38.9k1479129










asked Jun 16 '15 at 15:55









amethystAnt

5317




5317








  • 1




    Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
    – Stephen Kitt
    Jun 16 '15 at 15:59






  • 1




    You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
    – Faheem Mitha
    Jun 16 '15 at 16:09










  • @FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
    – casey
    Jun 16 '15 at 16:27










  • @casey Oh, I missed that link.
    – Faheem Mitha
    Jun 16 '15 at 16:32










  • @StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
    – amethystAnt
    Jun 17 '15 at 15:07














  • 1




    Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
    – Stephen Kitt
    Jun 16 '15 at 15:59






  • 1




    You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
    – Faheem Mitha
    Jun 16 '15 at 16:09










  • @FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
    – casey
    Jun 16 '15 at 16:27










  • @casey Oh, I missed that link.
    – Faheem Mitha
    Jun 16 '15 at 16:32










  • @StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
    – amethystAnt
    Jun 17 '15 at 15:07








1




1




Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
– Stephen Kitt
Jun 16 '15 at 15:59




Could you post your pbuilder log somewhere? It will be in a file called something like qtag_...build in the parent directory of your package directory.
– Stephen Kitt
Jun 16 '15 at 15:59




1




1




You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
– Faheem Mitha
Jun 16 '15 at 16:09




You should still be able to use dh, because it is extensively customizable. Can you post a link to your project's source code?
– Faheem Mitha
Jun 16 '15 at 16:09












@FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
– casey
Jun 16 '15 at 16:27




@FaheemMitha according to this control file (above), his source is at github.com/amethystant/qtag
– casey
Jun 16 '15 at 16:27












@casey Oh, I missed that link.
– Faheem Mitha
Jun 16 '15 at 16:32




@casey Oh, I missed that link.
– Faheem Mitha
Jun 16 '15 at 16:32












@StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
– amethystAnt
Jun 17 '15 at 15:07




@StephenKitt I can only upload it on Google Drive, but you have to download it if you want to view it. Here it is (I've also added it to the original post): drive.google.com/file/d/0B1mZWkkv-WWpMDBwbVNwRGV4ZVE/…
– amethystAnt
Jun 17 '15 at 15:07















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f210037%2fmaking-a-deb-package-where-dh-doesnt-build-the-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f210037%2fmaking-a-deb-package-where-dh-doesnt-build-the-program%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre