Re: Packaging problem: impossible to build package from source

2017-05-23 Thread Tomaž Šolc
Hi

On 21. 05. 2017 06:27, Michele wrote:
> 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..dsc
> dpkg-buildpackage -b -us -uc
> 
> However after the whole compilation goes fine, I obtain the following
> error:

I don't know what exactly is going wrong in your case, but it is very
rare that a package wouldn't build from source. Most likely there is
something unusual about your local user or system setup that is causing
the error.

You can try building the package from a new, clean user account to see
if that makes any difference.

Another way is to use pbuilder. Pbuilder builds package in a clean build
environment in a chroot jail. Documentation is here:

https://pbuilder.alioth.debian.org/

For example, openvpn 2.4.0-5 builds fine for me with:

# pbuilder create
# pbuilder build openvpn_2.4.0-5.dsc

Best regards
Tomaž



signature.asc
Description: OpenPGP digital signature


Re: Packaging problem: impossible to build package from source

2017-05-21 Thread songbird
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 ?

  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 

  $ cp -a  
  ...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



Packaging problem: impossible to build package from source

2017-05-20 Thread Michele

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..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...




Packaging problem: impossible to build package from source

2017-05-20 Thread Michele

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..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...