[exim-dev] [Bug 610] New: Need Makefile option to build only…

Página Inicial
Delete this message
Reply to this message
Autor: Marc Haber
Data:  
Para: exim-dev
Novos Tópicos: [exim-dev] [Bug 610] Need Makefile option to build only exim daemon, [exim-dev] [Bug 610] Need Makefile option to build only exim daemon, [exim-dev] [Bug 610] Need Makefile option to build only exim daemon, [exim-dev] [Bug 610] Need Makefile option to build only exim daemon, [exim-dev] [Bug 610] Need Makefile option to build only exim daemon
Assunto: [exim-dev] [Bug 610] New: Need Makefile option to build only exim daemon
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=610
           Summary: Need Makefile option to build only exim daemon
           Product: Exim
           Version: 4.68
          Platform: All
               URL: http://bugs.debian.org/402604
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: low
         Component: Unfiled
        AssignedTo: ph10@???
        ReportedBy: mh+exim-bugzilla@???
                CC: exim-dev@???



Hi,

the Debian packages build exim at least twice: once as exim4-daemon-light, once
as exim4-daemon-heavy and optionally once as exim4-daemon-custom. All three
daemons are built with different compile-time options to allow for different
feature sets.

We, however, only need the various utilities (exicyclog, exinext, exiwhat,
exigrep, eximstats, exipick, exiqgrep, exiqsumm, convert4r3, convert4r4,
exim_checkaccess, exim_dbmbuild, exim_dumpdb, exim_fixdb, exim_tidydb,
exim_lock and possibly others) only once.

Hence, we build exim4-daemon-light by simply calling $(MAKE), while, for
exim4-daemon-heavy and exim4-daemon-custom, the ugly construction

$(MAKE) -C build-$(buildname) checklocalmake Makefile os.h os.c config.h
buildpcre buildlookups buildrouters buildtransports buildauths exim

seems to be needed. This is bound to break (possibly unnoticed) if upstream
(you *grins*) decides to change the Makefile structure.

It would therefore be a very good thing to have a Makefile option like
"exim-daemon" in the Makefile in the build-$OS-$ARCH directory, which would do
the same things as "allexim", but without building the entire array of
utilities.

From my limited knowledge of Make, I think the (untested) following would be in
order:

allexim: config.h exim-utils exim-daemon

exim-utils: $(EXIM_MONITOR) exicyclog exinext exiwhat \
        exigrep eximstats exipick exiqgrep exiqsumm \
        transport-filter.pl convert4r3 convert4r4 \
        exim_checkaccess \
        exim_dbmbuild exim_dumpdb exim_fixdb exim_tidydb exim_lock


exim-daemon: buildlookups buildrouters buildtransports buildauths exim

Please consider offering this kind of flexibility in a future release.

Greetings
Marc


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email