Op 30-03-15 om 23:38 schreef Paul van der Vlis: > Op 30-03-15 om 23:03 schreef Paul van der Vlis: > >>> Mijn handmatige script is dus meestal: >>> apt-get src <package> >>> cd <package><tab> # met apt-get krijg je altijd een dir met versienr. >>> dch --bpo >>> TEST=lintian pdebuild # mijn pdebuild hooks starten automatisch lintian. >> >> Ah, dat ga ik ook eens proberen. >> >> Blijkbaar is "pdebuild" het commando waarmee je een pakket bouwt, en >> roep je dat aan via lintian wat allerlei tests uitvoert. De output komt >> dan in de variabele TEST. Heb je dan geen backtics nodig, zoiets? >> TEST=`lintian pdebuild` >> Of begrijp ik iets verkeerd? > > Ik snap het al. Het is vergelijkbaar met: > LANG=C iceweasel > > En het lijkt te werken!
Toch niet helemaal.... Wat mist is geloof ik een ~/.pbuilderrc Vreemd genoeg wordt het pakket wel gewoon gebouwd: -------------- paul@server2:~/sources/hello$ ls -l totaal 728 drwxrwxr-x 13 paul paul 4096 mrt 30 23:54 hello-2.9 -rw-rw-r-- 1 paul paul 11372 nov 6 12:18 hello_2.9-2.debian.tar.xz -rw-rw-r-- 1 paul paul 1319 nov 6 12:18 hello_2.9-2.dsc -rw-rw-r-- 1 paul paul 723645 apr 12 2014 hello_2.9.orig.tar.gz paul@server2:~/sources/hello/hello-2.9$ dch --bpo paul@server2:~/sources/hello/hello-2.9$ TEST=lintian pdebuild W: /home/paul/.pbuilderrc does not exist dpkg-buildpackage: source package hello dpkg-buildpackage: source version 2.9-2~bpo70+1 dpkg-buildpackage: source changed by Paul van der Vlis <p...@server2.vandervlis.nl> dpkg-source --before-build hello-2.9 fakeroot debian/rules clean dh clean dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory `/home/paul/sources/hello/hello-2.9' [ ! -f Makefile ] || /usr/bin/make distclean make[1]: Leaving directory `/home/paul/sources/hello/hello-2.9' dh_clean dpkg-source -b hello-2.9 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building hello using existing ./hello_2.9.orig.tar.gz dpkg-source: info: building hello in hello_2.9-2~bpo70+1.debian.tar.gz dpkg-source: info: building hello in hello_2.9-2~bpo70+1.dsc dpkg-genchanges -S >../hello_2.9-2~bpo70+1_source.changes dpkg-genchanges: not including original source code in upload dpkg-source --after-build hello-2.9 dpkg-buildpackage: binary and diff upload (original source NOT included) W: /home/paul/.pbuilderrc does not exist I: using fakeroot in build. I: Current time: Mon Mar 30 23:57:25 CEST 2015 I: pbuilder-time-stamp: 1427752645 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: policy-rc.d already exists I: Obtaining the cached apt archive contents I: Installing the build-deps -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: amd64 Maintainer: Debian Pbuilder Team <pbuilder-ma...@lists.alioth.debian.org> Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper (>= 9.20120311) dpkg-deb: building package `pbuilder-satisfydepends-dummy' in `/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 12021 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper (>= 9.20120311); however: Package debhelper is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... The following NEW packages will be installed: bsdmainutils{a} debhelper{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libasprintf0c2{a} libcroco3{a} libffi6{a} libglib2.0-0{a} libmagic1{a} libpipeline1{a} libunistring0{a} libxml2{a} man-db{a} po-debconf{a} 0 packages upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 1242 kB/8960 kB of archives. After unpacking 27.8 MB will be used. Writing extended state information... Err http://ftp.nl.debian.org/debian/ sid/main libmagic1 amd64 1:5.22+2-1 404 Not Found [IP: 130.89.149.21 80] Err http://ftp.nl.debian.org/debian/ sid/main libxml2 amd64 2.9.2+dfsg1-1+b1 404 Not Found [IP: 130.89.149.21 80] Err http://ftp.nl.debian.org/debian/ sid/main file amd64 1:5.22+2-1 404 Not Found [IP: 130.89.149.21 80] E: Failed to fetch http://ftp.nl.debian.org/debian/pool/main/f/file/libmagic1_5.22+2-1_amd64.deb: 404 Not Found [IP: 130.89.149.21 80] E: Unable to correct for unavailable packages Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... E: pbuilder-satisfydepends failed. I: Copying back the cached apt archive contents I: unmounting dev/pts filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /var/cache/pbuilder/build//15581 and its subdirectories paul@server2:~/sources/hello/hello-2.9$ cd .. paul@server2:~/sources/hello$ ls hello-2.9 hello_2.9-2~bpo70+1.dsc hello_2.9-2.dsc hello_2.9-2~bpo70+1_amd64.build hello_2.9-2~bpo70+1_source.changes hello_2.9.orig.tar.gz hello_2.9-2~bpo70+1.debian.tar.gz hello_2.9-2.debian.tar.xz paul@server2:~/sources/hello$ -------------- Groet, Paul. -- Paul van der Vlis Linux systeembeheer, Groningen http://www.vandervlis.nl -- To UNSUBSCRIBE, email to debian-user-dutch-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/5519c8df.6090...@vandervlis.nl