[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging task for newbies: Separate pink-pony into program and data



On Sun, Sep 15, 2013 at 06:52:08PM +0200, gregor herrmann wrote:
> On Sun, 15 Sep 2013 17:23:57 +0100, 'lesleyb' wrote:
> 
> [pbuilder success stories]
> 
> Cool!
> 
> > Attempting `pdebuild` in the relevant directory, produced 
> > 
> > dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 9) quilt scons
> > dh-buildinfo mesa-common-dev libglu1-mesa-dev libglfw-dev libxrandr-dev
> > glee-dev libilmbase-dev libdevil-dev libftgl-dev libprotobuf-dev (>= 2)
> > libtinyxml-dev libsdl1.2-dev libsdl-mixer1.2-dev 
> > 
> > which is fine.  
> 
> Ack, but at least for me the build continues, even if the
> build dependencies are not installed outside the chroot, and they get
> installed within. -- That's the idea of {p,cow}builder.
>  
> % pdebuild
> dpkg-checkbuilddeps: Unmet build dependencies: scons dh-buildinfo libglfw-dev libxrandr-dev glee-dev libilmbase-dev libdevil-dev libftgl-dev libsigc++-2.0-dev libprotobuf-dev (>= 2) protobuf-compiler (>= 2) libtinyxml-dev libsdl1.2-dev libsdl-mixer1.2-dev
> W: Unmet build-dependency in source
> dpkg-buildpackage: source package pink-pony
> dpkg-buildpackage: source version 1.3.1-1
> dpkg-buildpackage: source distribution unstable
> dpkg-buildpackage: source changed by Miriam Ruiz <miriam@debian.org>
>  dpkg-source --before-build pink-pony-1.3.1
> dpkg-source: info: using options from pink-pony-1.3.1/debian/source/options: --compression=bzip2 --compression-level=7 --extend-diff-ignore=(^|/)config.(sub|guess)$
> dpkg-checkbuilddeps: Unmet build dependencies: scons dh-buildinfo libglfw-dev libxrandr-dev glee-dev libilmbase-dev libdevil-dev libftgl-dev libsigc++-2.0-dev libprotobuf-dev (>= 2) protobuf-compiler (>= 2) libtinyxml-dev libsdl1.2-dev libsdl-mixer1.2-dev
> dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
> dpkg-buildpackage: warning: (Use -d flag to override.)
> dpkg-buildpackage: warning: this is currently a non-fatal warning with -S, but will probably become fatal in the future
>  fakeroot debian/rules clean
> [..]
> 
> (And on it goes, first debian/rules clean outside the chroot, and
> then the chroot actions starts.)
> 
> 
> Or do you get an error somewhere / does the build abort for you?
> Ah, maybe the missing debhelper and quilt can be a problem.
> 
> Installing debhelper and quilt on your system makes sense in any case.
> Otherwise you can run pbdebuild with the --use-pdebuild-internal option.
Hi Gregor

I finally managed to update the base.tgz with 

pbuilder --update --extrapackages "debhelper quilt scons dh-buildinfo \
mesa-common-dev libglu1-mesa-dev libglfw-dev libxrandr-dev glee-dev \
libilmbase-dev libdevil-dev libftgl-dev libprotobuf-dev libtinyxml-dev \
libsdl1.2-dev libsdl-mixer1.2-dev"

The list of packages had to be quoted to get them all installed. 

After attempting 
pdebuild --use-pdebuild-internal --logfile "../pink-pony."`date +%y%m%d-%H%M%S`".pdebuild.log" 

I read the log file and found 
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/base.tgz]
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /opt/lesley/dev/debian/pinkpony
I: Mounting /var/cache/pbuilder/ccache
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
Reading package lists...
Building dependency tree...
Reading state information...
passwd is already the newest version.
The following extra packages will be installed:
  debootstrap libgcrypt11 libgnutls26 libgpg-error0 libidn11 libp11-kit0
  libtasn1-3 wget
Suggested packages:
  rng-tools pbuilder-uml cowdancer
Recommended packages:
  fakeroot sudo devscripts
The following NEW packages will be installed:
  debootstrap libgcrypt11 libgnutls26 libgpg-error0 libidn11
  libp11-kit0
  libtasn1-3 pbuilder wget
debconf: delaying package configuration, since apt-utils is not installed

So the internal pdebuild seemed to be missing quite a bit.
I did an --update --extrapackages as one would but the thing still fails 
with the tail of the log showing 

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I: Setting DEBBUILDOPTS=
I: Setting DEBBUILDOPTS=
W: no hooks of type D found -- ignoring
I: Copying back the cached apt archive contents
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting /opt/lesley/dev/debian/pinkpony filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build//25494 and its subdirectories

I need to review DEBBUILDOPTS because it looks like something is missing there.

Thanks for your time on this.

Kind regards

Lesley


Reply to: