]> mj.ucw.cz Git - libucw.git/commitdiff
Debian: The build system is packaged as a part of libucw-dev v6.5.3
authorMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2017 20:32:18 +0000 (22:32 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2017 20:36:39 +0000 (22:36 +0200)
Previously, I added UCW::Configure to libucw-perl, but I forgot
that most users of this module also need the build system. Surprisingly,
our packaging completely avoided the build system files.

Therefore, I moved UCW::Configure to libucw-dev and added the build
system there, too.

In the long term, we should move UCW::Configure under build/.

Since nobody is using v6.5.3 yet, I am rebuilding it with these
changes applied.

debian/control.in
debian/rules
ucw/perl/UCW/Configure/Makefile
ucw/perl/UCW/Makefile

index 28c16fcedd69f487b79a496efe7885b170fd94ae..0d17239d9475878648d80ee75eb43cf7384d0c1e 100644 (file)
@@ -19,8 +19,8 @@ Description: LibUCW library
 Package: libucw-dev
 Section: libdevel
 Architecture: any
-Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), libucw-perl, ${shlibs:Depends}, ${misc:Depends}
-Description: LibUCW development files
+Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW development files, including the build system
 
 Package: libucw-utils
 Section: misc
@@ -32,7 +32,7 @@ Package: libucw-perl
 Section: misc
 Architecture: any
 Depends: libucw@UCW_ABI_SUFFIX@, ${shlib:Depends}, ${misc:Depends}
-Description: Companion Perl scripts for LibUCW (UCW::Configure, UCW::CGI, UCW::Config, UCW::Log)
+Description: Companion Perl modules for LibUCW (UCW::CGI, UCW::Config, UCW::Log)
 
 #ifdef CONFIG_DOC
 Package: libucw-doc
index 84a4e8a138fe6ea700b54dffa082cdffb5d9be54..99e8cf97c5b0478d1c50a7ebda7ecbc26d821efe 100755 (executable)
@@ -28,7 +28,7 @@ install: build
        dh_clean -k
        dh_installdirs
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw$(UCW_ABI_SUFFIX) install-libucw-lib
-       $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api
+       $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api install-perl-ucw-configure install-build
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-shell install-ucw-utils
        $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-perl install-perl-ucw
 ifdef CONFIG_DOC
index 697e3e5df7b62d3f0f46bc7f9970ab398fedab0a..35120450ae8d9d87a4269cec0a13b0c5937bc4de 100644 (file)
@@ -8,8 +8,12 @@ PROGS+=$(CONFIGURE_MODULES)
 
 $(CONFIGURE_MODULES) : PERL_MODULE_DIR=UCW/Configure
 
-UCW_PERL_INSTALL+=install-perl-ucw-configure
+# XXX: This is a hack. UCW::Configure is a part of the build system,
+# not of LibUCW proper. Nevertheless, we should avoid moving things
+# around in point releases, so we are keeping it here with a special
+# installation target.
 install-perl-ucw-configure:
        install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
+       install -m 644 $(s)/ucw/perl/UCW/Configure.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
        install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
 .PHONY: install-perl-ucw-configure
index 149dfd4178d81e8ad2e16fba960c7e9bd2f91ad7..41e44f13e2253a6cebe48e9559009e7f82f11a52 100644 (file)
@@ -2,7 +2,8 @@
 
 DIRS+=ucw/perl/UCW
 EXTRA_RUNDIRS+=lib/perl5/UCW
-UCW_PERL_MODULES=$(addsuffix .pm,Config Log CGI Configure)
+UCW_PERL_MODULES=$(addsuffix .pm,Config Log CGI)
+# XXX: Configure.pm omitted intentionally, see install-perl-ucw-configure
 PROGS+=$(addprefix $(o)/ucw/perl/UCW/,$(UCW_PERL_MODULES))
 
 include $(s)/ucw/perl/UCW/CGI/Makefile