[Pkg-exim4-users] Exim4 Custom Package

Marc Haber mh+pkg-exim4-users at zugschlus.de
Thu Apr 12 11:54:57 UTC 2007


On Wed, Apr 11, 2007 at 05:49:47PM +0200, Jonathan GF wrote:
> the steps i have done was decouple de configuracion files, and in
> order to create the custom package copy the EDITME-exim4-light to
> EDITME-exim4-custom.
> 
> Then i have edited the EDITME-exim4-custom. As the debian/rules says i
> have executed a fakeroot command that copies the EDITME as
> Local/Makefile and then start compiling, but what i need is to build a
> new package.

This does not look like a smart question.

> If i follow this step the compiling fails. If i leave the debian/rules
> with a build custom parameter activated (and for instance not
> executing the fakeroot command) it also fails.

This does not look like enough information to debug your issue.

> The building fails.

Neither does this.

>  This evening i will try to compile again y capture some screens as i
>  usually compile packages on a VM.

Even inside a vm, you can save shell typescripts (script(1)) or ssh
into the VM and save your terminal emulator's history.

> Do you think i'm doing something wrong o missing something?

Obviously. A starting point would be
http://www.catb.org/~esr/faqs/smart-questions.html, especially the Q/A
part titled "My {program, configuration, SQL statement} doesn't work".

> I would appreciate so much if you can indicate me. Thanks in advance.

Without more information, I can only guess and say "it works for me".

Greetings
Marc

[11/509]mh at nechayev[chroot sid-packages]:~/tm$ apt-get source exim4
Reading package lists... Done
Building dependency tree... Done
Need to get 2616kB of source archives.
Get:1 http://debian.debian.zugschlus.de sid/main exim4 4.63-17 (dsc) [1171B]
Get:2 http://debian.debian.zugschlus.de sid/main exim4 4.63-17 (tar) [2066kB]
Get:3 http://debian.debian.zugschlus.de sid/main exim4 4.63-17 (diff) [548kB]
Fetched 2616kB in 5s (462kB/s)
gpg: Signature made Sat Jan 20 10:53:32 2007 CET using DSA key ID 6BBA3C84
gpg: Can't check signature: public key not found
dpkg-source: extracting exim4 in exim4-4.63
dpkg-source: unpacking exim4_4.63.orig.tar.gz
dpkg-source: applying ./exim4_4.63-17.diff.gz
[12/510]mh at nechayev[chroot sid-packages]:~/tm$ cd exim4-4.63/
/home/mh/tm/exim4-4.63
[13/511]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ fakeroot debian/rules unpack-configs
test -d debian/patched || install -d debian/patched
dpatch  apply-all
applying patch 00_unpack to ./ ... ok.
applying patch 30_dontoverridecflags to ./ ... ok.
applying patch 31_eximmanpage to ./ ... ok.
applying patch 32_exim4 to ./ ... ok.
applying patch 33_eximon.binary to ./ ... ok.
applying patch 34_eximstatsmanpage to ./ ... ok.
applying patch 35_install to ./ ... ok.
applying patch 36_pcre to ./ ... ok.
applying patch 37_upstream-patch-384015-add_headers to ./ ... ok.
applying patch 40_boolean_redefine_protect to ./ ... ok.
applying patch 50_localscan_dlopen to ./ ... ok.
applying patch 60_convert4r4 to ./ ... ok.
applying patch 70_remove_exim-users_references to ./ ... ok.
applying patch 80_disable_rsa_export to ./ ... ok.
dpatch  cat-all  >>patch-stampT
mv -f patch-stampT patch-stamp
patch -o EDITME.eximon /home/mh/tm/exim4-4.63/build-tree/exim_monitor/EDITME /home/mh/tm/exim4-4.63/debian/EDITME.eximon.diff
patching file /home/mh/tm/exim4-4.63/build-tree/exim_monitor/EDITME
patch -o EDITME.exim4-light /home/mh/tm/exim4-4.63/build-tree/src/EDITME /home/mh/tm/exim4-4.63/debian/EDITME.exim4-light.diff
patching file /home/mh/tm/exim4-4.63/build-tree/src/EDITME
for editme in /home/mh/tm/exim4-4.63/debian/EDITME.exim4-*.diff; do \
          if [ "$editme" != "/home/mh/tm/exim4-4.63/debian/EDITME.exim4-light.diff" ]; then \
            TARGETNAME=`basename $editme .diff`; \
            echo patch -o $TARGETNAME EDITME.exim4-light $editme; \
            patch -o $TARGETNAME EDITME.exim4-light $editme; \
          fi; \
        done
patch -o EDITME.exim4-heavy EDITME.exim4-light /home/mh/tm/exim4-4.63/debian/EDITME.exim4-heavy.diff
patching file EDITME.exim4-light
touch unpack-configs-stamp
[14/512]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ ls
ACKNOWLEDGMENTS     LICENCE   README           exim_monitor/         util/
CHANGES             Local/    README.UPDATING  patch-stamp
EDITME.exim4-heavy  Makefile  build-tree/      scripts/
EDITME.exim4-light  NOTICE    debian/          src/
EDITME.eximon       OS/       doc/             unpack-configs-stamp
[15/513]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ cp EDITME.exim4-light EDITME.exim4-custom
[16/514]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ jed EDITME.exim4-custom
[17/515]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ diff -u EDITME.exim4-light EDITME.exim4-custom
--- EDITME.exim4-light  2007-04-12 13:35:15.000000000 +0200
+++ EDITME.exim4-custom 2007-04-12 13:35:36.000000000 +0200
@@ -331,14 +331,14 @@
 # and the MIME ACL. Please read the documentation to learn more about these
 # features.

-# WITH_CONTENT_SCAN=yes
+WITH_CONTENT_SCAN=yes

 # If you want to use the deprecated "demime" condition in the DATA ACL,
 # uncomment the line below. Doing so will also explicitly turn on the
 # WITH_CONTENT_SCAN option. If possible, use the MIME ACL instead of
 # the "demime" condition.

-# WITH_OLD_DEMIME=yes
+WITH_OLD_DEMIME=yes

 #------------------------------------------------------------------------------
 # Compiling Exim with experimental features. These are documented in
[18/516]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ cp debian/rules debian/rules.orig
[19/517]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ jed debian/rules
[20/518]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ diff -u debian/rules debian/rules.orig
--- debian/rules        2007-04-12 13:36:17.000000000 +0200
+++ debian/rules.orig   2007-04-12 13:36:09.000000000 +0200
@@ -35,7 +35,7 @@
 endif

 ifndef extradaemonpackages
-extradaemonpackages=exim4-daemon-custom
+extradaemonpackages=exim4-daemon-heavy
 endif
 # If you want to build a daemon with a configuration tailored to YOUR special
 # needs, call "fakeroot debian/rules unpack-configs", copy EDITME.exim4-light
[26/524]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ fakeroot debian/rules pack-configs
diff -u /home/mh/tm/exim4-4.63/build-tree/src/EDITME EDITME.exim4-light > /home/mh/tm/exim4-4.63/debian/EDITME.exim4-light.diff
make: [pack-configs] Error 1 (ignored)
for editme in EDITME.exim4-*; do \
          if [ "$editme" != "EDITME.exim4-light" ]; then \
            echo diff -u EDITME.exim4-light $editme; \
            diff -u EDITME.exim4-light $editme > /home/mh/tm/exim4-4.63/debian/${editme}.diff; \
          fi; \
        done
diff -u EDITME.exim4-light EDITME.exim4-custom
diff -u EDITME.exim4-light EDITME.exim4-heavy
diff -u /home/mh/tm/exim4-4.63/build-tree/exim_monitor/EDITME EDITME.eximon > /home/mh/tm/exim4-4.63/debian/EDITME.eximon.diff
make: [pack-configs] Error 1 (ignored)
[33/531]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ debuild
 fakeroot debian/rules clean
dpatch  deapply-all
reverting patch 80_disable_rsa_export from ./ ... ok.
reverting patch 70_remove_exim-users_references from ./ ... ok.
reverting patch 60_convert4r4 from ./ ... ok.
reverting patch 50_localscan_dlopen from ./ ... ok.
reverting patch 40_boolean_redefine_protect from ./ ... ok.
reverting patch 37_upstream-patch-384015-add_headers from ./ ... ok.
reverting patch 36_pcre from ./ ... ok.
reverting patch 35_install from ./ ... ok.
reverting patch 34_eximstatsmanpage from ./ ... ok.
reverting patch 33_eximon.binary from ./ ... ok.
reverting patch 32_exim4 from ./ ... ok.
reverting patch 31_eximmanpage from ./ ... ok.
reverting patch 30_dontoverridecflags from ./ ... ok.
reverting patch 00_unpack from ./ ... ok.
rm -rf patch-stamp patch-stampT debian/patched
<snip successful build>
dh_compress -i
dh_fixperms -i -X/etc/exim4/passwd.client
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i -- -VUpstream-Version=4.63 -VMTA-Conflicts="courier-mta, esmtp-run, hula-mta, masqmail, mta-dummy, nullmailer, postfix, sendmail-bin, smail, ssmtp, xmail, zmailer"
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dh_md5sums -i
dh_builddeb -i
dpkg-deb: building package `exim4-config' in `../exim4-config_4.63-17_all.deb'.
dpkg-deb: building package `exim4' in `../exim4_4.63-17_all.deb'.
 dpkg-genchanges
dpkg-genchanges: warning: package exim4-daemon-heavy-dbg in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy-dbg in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy-dbg in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy-dbg in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy-dbg in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: warning: package exim4-daemon-heavy in control file but not in files list
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage (debuild emulation): binary and diff upload (original source NOT included)
[34/532]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ ls -al ../*.deb
-rw-r--r-- 1 mh mh 916K Apr 12 13:49 ../exim4-base_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 326K Apr 12 13:50 ../exim4-config_4.63-17_all.deb
-rw-r--r-- 1 mh mh 626K Apr 12 13:50 ../exim4-daemon-custom-dbg_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 419K Apr 12 13:50 ../exim4-daemon-custom_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 602K Apr 12 13:50 ../exim4-daemon-light-dbg_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 405K Apr 12 13:50 ../exim4-daemon-light_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 234K Apr 12 13:50 ../exim4-dbg_4.63-17_i386.deb
-rw-r--r-- 1 mh mh  60K Apr 12 13:50 ../exim4-dev_4.63-17_i386.deb
-rw-r--r-- 1 mh mh 2.1K Apr 12 13:50 ../exim4_4.63-17_all.deb
-rw-r--r-- 1 mh mh  91K Apr 12 13:49 ../eximon4_4.63-17_i386.deb
[36/534]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$ build-tree/build-exim4-daemon-custom/exim -bV
Exim version 4.63 #1 built 12-Apr-2007 13:44:02
Copyright (c) University of Cambridge 2006
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated
[37/535]mh at nechayev[chroot sid-packages]:~/tm/exim4-4.63$

This looks to me as an exim4-daemon-custom package with a daemon with
-light's feature set plus content scanning was successfully built.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



More information about the Pkg-exim4-users mailing list