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

Re: [debian-mentors] config.sub and config.guess | .diff.gz bloat



A levelezőm azt hiszi, hogy Zenaan Harkness a következőeket írta:
> Three questions:
> - why are these two files copied in?

Because they are needed for autoconf et al, and in some cases
the upstream version of them is not suitable to build the package on
your system. I had stumbled upon this right now with Zorp.

> - are they necessary for the build of the program I am packaging?

They are, but you don't have to copy them actually, as automake -a will
create a symling for you.

> - they make my .diff.gz file twice their otherwise size; can I delete
> that entry from my rules file altogether, or otherwise remove them from
> the output?

I decided to delete all files which can be generated by autoconf
et al in clean: Makefiles, etc. As clean runs before generating the
diff, diff will complain about them missing, but will happily forget
about them. In the build-stamp rule I am reconfiguring them all.
It is the relevant part of the diff to my debian/rules
Note how many files you can get rid of.
(the 'grep -v ++pristine' is because I use gnu arch internally)

-----------------------------
@@ -18,6 +18,8 @@
 build-stamp:
        dh_testdir
 
+       automake -a
+       autoreconf
        ./configure \
                --prefix=/usr \
                --mandir=\$${prefix}/share/man \
@@ -54,12 +56,21 @@
 clean: debfiles-stamp
        dh_testdir
        dh_testroot
+       find . -name config.{log,status,cache} |xargs rm -f
        rm -f build-stamp
        rm -f modules/config-stamp
+       rm -d debian/zorp-modules.files
        rm -f debfiles-stamp
 
        # Add here commands to clean up after the build process.
        -$(MAKE) distclean
+       -find -name ltmain.sh -o -name config.h.in -o -name stamp-h.in \
+       -o -name config.cache -o -name config.log -o -name
config.status\
+       -o -name stamp-h -o -name config.sub -o -name config.guess \
+       -o -name Makefile.in -o -name aclocal.m4 -o -name configure|grep
-v ++pristine |xargs rm
+       -find -name autom4te.cache |grep -v ++pristine |xargs rm -rf
+       -find -type l |grep -v ++pristine |xargs rm
+       -rm -f modules/zorp-module-http-2.0.0/tests/Makefile

-- 
GNU GPL: csak tiszta forrásból



Reply to: