Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #181169 > unrolled thread
| Started by | Michele <michele.riva@gmx.com> |
|---|---|
| First post | 2017-05-21 06:40 +0200 |
| Last post | 2017-05-21 16:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
Packaging problem: impossible to build package from source Michele <michele.riva@gmx.com> - 2017-05-21 06:40 +0200
Re: Packaging problem: impossible to build package from source songbird <songbird@anthive.com> - 2017-05-21 16:50 +0200
| From | Michele <michele.riva@gmx.com> |
|---|---|
| Date | 2017-05-21 06:40 +0200 |
| Subject | Packaging problem: impossible to build package from source |
| Message-ID | <tJqOR-2KO-1@gated-at.bofh.it> |
Hello everyone. I don't know if this is the best suited place for this kind of assistance, but I'm currently trying to create a debian .deb package from the official source obtained from debian repositories. In my case I'm trying to build openvpn, the procedure I follow is: apt-get source openvpn dpkg-source -x openvpn.xxxx.dsc dpkg-buildpackage -b -us -uc However after the whole compilation goes fine, I obtain the following error: /home/pi/openvpn/openvpn-2.4.0/debian/dirs: 11: /home/pi/openvpn/openvpn-2.4.0/debian/dirs: usr/lib/openvpn: not found /home/pi/openvpn/openvpn-2.4.0/debian/dirs: 12: /home/pi/openvpn/openvpn-2.4.0/debian/dirs: usr/include/openvpn: not found dh_installdirs: debian/dirs (executable config) returned exit code 127 debian/rules:16: recipe for target 'binary' failed make: *** [binary] Error 127 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 debuild: fatal error at line 1376: dpkg-buildpackage -rfakeroot -D -us -uc -b failed Running dh_installdirs alone in every possible variant (even root) doesn't bring any change, that's where the error comes from. Apparently it doesn't find those directories but... isn't it supposed to create them? Does anyone have a clue about what's going on? I'm totally new to packaging but it's surprising that a standard source package downloaded from official debian servers doesn't work out of the box...
[toc] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2017-05-21 16:50 +0200 |
| Message-ID | <tJAlc-BC-11@gated-at.bofh.it> |
| In reply to | #181169 |
Michele wrote: > Hello everyone. ... > Does anyone have a clue about what's going on? I'm totally new to > packaging but it's surprising that a standard source package downloaded > from official debian servers doesn't work out of the box... have you installed the build dependencies? # apt-get build-dep <pkg>? if you can find a similar package in complexity you can grab that source version and look at what it does and clone it for your own use. $ apt-get source <other-pkg> $ cp -a <other-pkg> <new-pkg> ...edit stuff... ...build... also: i'm not sure if the package build-essential is up to date, but it lists some basics. and: there are references and the mentors list which may be able to answer specific questions. that is all i can think of to point you in directions which may help. songbird
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web