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

Re: RFS: knetstats



Daniel Baumann wrote:

> Ritesh Raj Sarraf wrote:
>>> maybe do you want Marvin to finish it? It's not much left, only the
>>> build-depends to automake1.9.
>> 
>> Okay!! I've re-uploaded it but haven't been able to check it.
> 
> i said automake1.9, not automake (>= 1.9).
> 

Can you explain why not automake (>= 1.9) ?

On my machine, where the package compiles successfully, the version of automake
installed, is:
rrs@geeKISSexy:~ $ dpkg -l | grep automake
ii  automake                          1.10+nogfdl-1                       A tool
for generating GNU Standards-complian

I hope automake 1.9 is the minimal requirement. But why not put >= when automake
1.10 also works.

Again, coming back to an old question in this thread about finding out what
packages are required to be put in Build-Depends. I followed the New
Maintainer's Guide recommendation for finding out the Build-Depends package
this way:

This is the script I use to find the Build-Depends packages.

rrs@geeKISSexy:~ $ cat /home/rrs/bin/find-build-packages.sh
#!/bin/bash

TEMP_FILE=/tmp/apt_packages_file.rrs
if [ $# == 1 ]; then
        if [ -f $1 ]; then
                INPUT=$1
        else
            echo -en "$1 file not  present. Please check the name of the file.\n
Eg. a Makefile or a configure script\n"
            exit 1
        fi
    else
        echo -en "No argument passed. Please pass the configure script or the
makefile name as an argument.\n"
        exit 1
fi
strace -f -o $TEMP_FILE ./$INPUT;
       # or make instead of ./configure, if the package doesn't use autoconf
       for x in `dpkg -S $(grep open /tmp/log|\
                           perl -pe 's!.* open\(\"([^\"]*).*!$1!' |\
                           grep "^/"| sort | uniq|\
                           grep -v "^\(/tmp\|/dev\|/proc\)" ) 2>/dev/null|\
                           cut -f1 -d":"| sort | uniq`; \
             do \
               echo -n "$x (>=" `dpkg -s $x|grep ^Version|cut -f2 -d":"` "), ";
\
             done

# Clean up.
rm -f $TEMP_FILE;


Which if I use on knetstat's configure script, I get the following output.

rrs@geeKISSexy:/var/tmp/deb-packages/knetstat/knetstats-final/knetstats-1.6.1 $
find-build-packages.sh configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c

....snipped.........

config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Good - your configure finished. Start make now

binutils (>= 2.17-3 ), coreutils (>= 5.97-5 ), gcc-4.1 (>= 4.1.1-19 ),
kdelibs4c2a (>= 4 ), libacl1 (>= 2.2.41-1 ), libart-2.0-2 (>= 2.3.17-1 ),
libattr1 (>= 2.4.32-1 ), libaudio2 (>= 1.8-2 ), libc6 (>= 2.3.6.ds1-8 ),
libc6-dev (>= 2.3.6.ds1-8 ), libc6-i686 (>= 2.3.6.ds1-8 ), libexpat1 (>=
1.95.8-3.3 ), libfontconfig1 (>= 2.4.1-2 ), libfreetype6 (>= 2.2.1-5 ), libgcc1
(>= 1 ), libice6 (>= 1 ), libidn11 (>= 0.6.5-1 ), libjpeg62 (>= 6b-13 ),
libncurses5 (>= 5.5-5 ), libpng12-0 (>= 1.2.15~beta5-1 ), libqt3-mt (>= 3 ),
libselinux1 (>= 1.32-3 ), libsepol1 (>= 1.14-1 ), libsm6 (>= 1 ), libstdc++6
(>= 4.1.1-19 ), libx11-6 (>= 2 ), libxau6 (>= 1 ), libxcursor1 (>= 1.1.7-4 ),
libxdmcp6 (>= 1 ), libxext6 (>= 1 ), libxfixes3 (>= 1 ), libxft2 (>=
2.1.8.2-8 ), libxi6 (>= 1 ), libxinerama1 (>= 1 ), libxrandr2 (>= 2 ),
libxrender1 (>= 1 ), libxt6 (>= 1 ), linux-kernel-headers (>= 2.6.18-6 ),
locales (>= 2.3.6.ds1-8 ), zlib1g (>= 1 )

Now, here I don't see the automake1.9 package being listed anywhere.
Can you tell me a _proper_ way of finding out packages which are to be put in
Build-Depends ?


And I've got one more annoying problem. Hope you can shed some light.
Assuming I did a mistake in the debian/* files (as I always do) :-).
When I make a change and do a re-build of the package, it doesn't work.

rrs@geeKISSexy:/var/tmp/deb-packages/knetstat/knetstats-final/knetstats-1.6.1 $
dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is knetstats
dpkg-buildpackage: source version is 1.6.1-1
dpkg-buildpackage: source changed by Ritesh Raj Sarraf <rrs@researchut.com>
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 1.6.1-1
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
/usr/bin/make distclean

.....snipped.....

rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[2]: Leaving directory
`/var/tmp/deb-packages/knetstat/knetstats-final/knetstats-1.6.1'
rm -f config.status config.cache config.log configure.lineno
configure.status.lineno
rm -f Makefile
make[1]: Leaving directory
`/var/tmp/deb-packages/knetstat/knetstats-final/knetstats-1.6.1'
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
dh_clean
        rm -f debian/knetstats.substvars
        rm -f debian/knetstats.*.debhelper
        rm -rf debian/knetstats
        rm -f debian/files
        find .  \( \( -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o -name core -o
\( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} \; \) -o \
                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \)
\)
 dpkg-source -b knetstats-1.6.1
dpkg-source: building knetstats using existing knetstats_1.6.1.orig.tar.gz
dpkg-source: building knetstats in knetstats_1.6.1-1.diff.gz
dpkg-source: warning: executable mode 0755 of `config.guess' will not be
represented in diff
dpkg-source: cannot represent change to translations/sv/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/nl/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/fr/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/pl/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/ru/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/da/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/es/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/ja/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/et/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/bg/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/cs/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/el/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/de/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to
translations/pt_BR/messages/knetstats.gmo: binary file contents changed
dpkg-source: cannot represent change to translations/br/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/tr/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/ga/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/it/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/sk/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/pt/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/gl/messages/knetstats.gmo:
binary file contents changed
dpkg-source: cannot represent change to translations/ka/messages/knetstats.gmo:
binary file contents changed
dpkg-source: warning: executable mode 0755 of `config.sub' will not be
represented in diff
dpkg-source: building knetstats in knetstats_1.6.1-1.dsc
dpkg-source: unrepresentable changes to source

The new package doesn't get build. The only way for me then is to:
1) cp the debian/ folder.
2) rm -rf the knetstats/ folder.
3) Re-run the dm_make process.
4) Overwrite the debian/ folder with the old one.

Lintian warns me that that's okay for now but in the Debian tree that's not
allowed and all changes need to go into the package-name.diff.gz file, the
package-name.orig file needs to be untouched.

I tried exploring for this issue also but wasn't able to find a proper solution.

Thanks,
Ritesh
-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"



Reply to: