diff options
-rw-r--r-- | debian/changelog | 132 | ||||
-rw-r--r-- | debian/control | 29 | ||||
-rw-r--r-- | debian/copyright | 183 | ||||
-rw-r--r-- | debian/docs | 5 | ||||
-rw-r--r-- | debian/examples | 1 | ||||
-rw-r--r-- | debian/gbp.conf | 2 | ||||
-rw-r--r-- | debian/install | 1 | ||||
-rw-r--r-- | debian/mkcmake.pm | 135 | ||||
-rwxr-xr-x | debian/rules | 22 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rwxr-xr-x | debian/tests/basic-test | 1 | ||||
-rw-r--r-- | debian/tests/control | 5 | ||||
-rw-r--r-- | debian/upstream/metadata | 3 | ||||
-rw-r--r-- | debian/watch | 8 |
14 files changed, 528 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..63ff6f5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,132 @@ +mk-configure (0.36.0-1) unstable; urgency=medium + + * New upstream release. + * Port exists_make_target fixes from bmake.pm and makefile.pm. + * Create a home directory and set MKCOMPILERSETTINGS=yes for mkc 0.36+. + + -- Andrej Shadura <andrewsh@debian.org> Sun, 31 Jan 2021 18:25:20 +0100 + +mk-configure (0.35.really.0.33.0-1) unstable; urgency=medium + + * Revert to mk-configure 0.33.0 (Closes: #977908, #978271, #978387). + + -- Andrej Shadura <andrewsh@debian.org> Mon, 28 Dec 2020 20:05:56 +0100 + +mk-configure (0.35.0-1) unstable; urgency=medium + + * New upstream release. + * Use secure URI in debian/watch. + * Set upstream metadata fields: Bug-Database, Bug-Submit. + + -- Andrej Shadura <andrewsh@debian.org> Wed, 02 Dec 2020 15:37:12 +0100 + +mk-configure (0.33.0-3) unstable; urgency=medium + + * Wrap and sort control files. + * Bump Standards-Version to 4.5.0. + * Set Rules-Requires-Root: no. + * Run tests but don’t fail. + * Expand .PHONY. + * Let dh_strip strip debug info for us. + + -- Andrej Shadura <andrewsh@debian.org> Sun, 01 Mar 2020 15:35:14 +0100 + +mk-configure (0.33.0-2) unstable; urgency=medium + + * Add a basic autopkgtest. + + -- Andrej Shadura <andrewsh@debian.org> Tue, 21 Jan 2020 15:29:11 +0100 + +mk-configure (0.33.0-1) unstable; urgency=medium + + * New upstream release. + * Update debian/watch to also fetch tarballs directly from Git. + * Drop no longer necessary patch, update README file name. + * Use debhelper-compat instead of debian/compat. + * d/control: Add Vcs-* field. + * Trim trailing whitespace. + * Bump debhelper from old 9 to 12. + * Update debian/copyright. + + -- Andrej Shadura <andrewsh@debian.org> Mon, 20 Jan 2020 13:51:40 +0100 + +mk-configure (0.29.1-3) unstable; urgency=medium + + [ Dima Kogan ] + * Split .dot into two separate files (Closes: #895320). + + -- Andrej Shadura <andrewsh@debian.org> Sat, 13 Apr 2019 17:37:58 +0200 + +mk-configure (0.29.1-2) unstable; urgency=medium + + * Add Homepage field. + * Update the build dependency, since texlive-latex-recommended no + longer provides latex-beamer (Closes: #867095). + + -- Andrew Shadura <andrewsh@debian.org> Tue, 11 Jul 2017 11:53:01 -0500 + +mk-configure (0.29.1-1) unstable; urgency=medium + + * New upstream release. + + -- Andrew Shadura <andrewsh@debian.org> Thu, 12 Nov 2015 19:25:52 +0100 + +mk-configure (0.29.0-1) unstable; urgency=medium + + * New upstream release. + + -- Andrew Shadura <andrewsh@debian.org> Sat, 25 Jul 2015 14:53:26 +0200 + +mk-configure (0.28.0-1) unstable; urgency=medium + + * New upstream release. + * Drop an old patch and a custom sys.mk. + + -- Andrew Shadura <andrewsh@debian.org> Sun, 14 Sep 2014 17:41:43 +0200 + +mk-configure (0.27.0-1) unstable; urgency=medium + + * New upstream release. + + -- Andrew Shadura <andrewsh@debian.org> Fri, 22 Aug 2014 19:10:20 +0200 + +mk-configure (0.26.0-2) unstable; urgency=low + + * Fix pkg-config checks (Closes: #741837). + + -- Andrew Shadura <andrewsh@debian.org> Sun, 16 Mar 2014 15:29:25 +0100 + +mk-configure (0.26.0-1) unstable; urgency=low + + * New upstream release. + * Update watch file. + * Ship presentation.pdf. + * Recommend pkg-config. + + -- Andrew Shadura <andrewsh@debian.org> Tue, 18 Feb 2014 22:05:01 +0100 + +mk-configure (0.25.0-1) unstable; urgency=low + + * New upstream release. + * Drop old patches. + * Use bmake's .ALLTARGETS feature to check for Makefile targets presence. + + -- Andrew Shadura <andrewsh@debian.org> Sun, 05 Jan 2014 22:42:41 +0100 + +mk-configure (0.24.0-3) unstable; urgency=low + + * Fix the clean-up of MKC_SOURCE_FUNCLIBS. + + -- Andrew Shadura <andrewsh@debian.org> Fri, 15 Nov 2013 17:39:37 +0100 + +mk-configure (0.24.0-2) unstable; urgency=low + + * Fix the Debhelper addon. + + -- Andrew Shadura <andrewsh@debian.org> Fri, 15 Nov 2013 15:44:39 +0100 + +mk-configure (0.24.0-1) unstable; urgency=low + + * Initial release. + + -- Andrew Shadura <andrewsh@debian.org> Thu, 15 Aug 2013 01:02:03 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..67101fc --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: mk-configure +Section: devel +Priority: optional +Maintainer: Andrej Shadura <andrewsh@debian.org> +Build-Depends: + bmake (>= 20131001), + debhelper-compat (= 12), + ghostscript, + graphviz, + texlive-fonts-recommended, + texlive-latex-extra, + texlive-latex-recommended +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Homepage: https://sourceforge.net/projects/mk-configure/ +Vcs-Browser: https://salsa.debian.org/debian/mk-configure +Vcs-Git: https://salsa.debian.org/debian/mk-configure.git + +Package: mk-configure +Architecture: all +Depends: + bmake, + ${misc:Depends} +Recommends: + pkgconf | pkg-config +Description: lightweight replacement for GNU autotools + mk-configure is a lightweight easy-to-use replacement for GNU autotools, + written in bmake (portable version of NetBSD make) and POSIX tools (shell, + awk etc). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9934d7d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,183 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mk-configure +Upstream-Contact: Aleksey Cheusov <vle@gmx.net> +Source: https://github.com/cheusov/mk-configure/ + +Files: * +Copyright: + 1988, 1989 Adam de Boor + 1988-1993 The Regents of the University of California + 1989 Berkeley Softworks + 1994-2009 The NetBSD Foundation, Inc. + 2008-2020 Aleksey Cheusov <vle@gmx.net> +License: BSD-2-clause + +Files: debian/* +Copyright: 2013—2019 Andrej Shadura <andrewsh@debian.org> +License: BSD-2-clause + +Files: debian/mkcmake.pm +Copyright: + 2008 Joey Hess + 2008-2009 Modestas Vainius + 2013 Andrej Shadura +License: GPL-2+ + +Files: + examples/hello_strlcpy/strlcpy.c + examples/hello_strlcpy2/missing/strlcpy.c + features/strl*/* +Copyright: 1998 Todd C. Miller <Todd.Miller@courtesan.com> +License: ISC + +Files: examples/hello_strlcpy/getline.c + examples/hello_strlcpy2/missing/getline.c +Copyright: 2007-2013, Aleksey Cheusov <vle@gmx.net> +License: Expat + +Files: + features/err/* + features/warn/* +Copyright: + 1997-2000, Luke Mewburn <lukem@netbsd.org> + 2014 Aleksey Cheusov <vle@gmx.net> +License: BSD-3-clause + +Files: features/fgetln/* +Copyright: + 2005 Hector Garcia Alvarez + 2005, 2008-2012 Guillem Jover <guillem@hadrons.org> + 2014 Aleksey Cheusov <vle@gmx.net> +License: BSD-3-clause + +Files: features/getdelim/* +Copyright: 2011 The NetBSD Foundation, Inc. +License: BSD-2-clause + +Files: + features/netbsd_sys_queue.h + features/strndup/* +Copyright: 1988, 1991, 1993 The Regents of the University of California. All rights reserved. +License: BSD-3-clause + +Files: features/netbsd_sys_tree.h +Copyright: 2002 Niels Provos <provos@citi.umich.edu> +License: BSD-2-clause + +Files: scripts/mkc_install.in +Copyright: + 1991 the Massachusetts Institute of Technology + 2013, 2014 Aleksey Cheusov <vle@gmx.net> +License: NTP + +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND + CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +License: NTP + Permission to use, copy, modify, distribute, and sell this software and its + documentation for any purpose is hereby granted without fee, provided that + the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of M.I.T. not be used in advertising or + publicity pertaining to distribution of the software without specific, + written prior permission. M.I.T. makes no representations about the + suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + +License: ISC + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL + WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE + FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION + OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian GNU/Linux systems, the complete text of the GNU General Public + License version 2 can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..2f5c92e --- /dev/null +++ b/debian/docs @@ -0,0 +1,5 @@ +README.md +doc/FAQ +doc/NEWS +doc/TODO +presentation/presentation.pdf diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cb585c0 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +debian-branch = debian/unstable diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..56bab38 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +debian/*.pm usr/share/perl5/Debian/Debhelper/Buildsystem/ diff --git a/debian/mkcmake.pm b/debian/mkcmake.pm new file mode 100644 index 0000000..1a9c196 --- /dev/null +++ b/debian/mkcmake.pm @@ -0,0 +1,135 @@ +# A debhelper build system class for handling simple mk-configure-based projects. +# +# Copyright: © 2008 Joey Hess +# © 2008-2009 Modestas Vainius +# License: GPL-2+ + +package Debian::Debhelper::Buildsystem::mkcmake; + +use strict; +use Debian::Debhelper::Dh_Lib qw(compat escape_shell clean_jobserver_makeflags dpkg_architecture_value install_dir generated_file); +use base 'Debian::Debhelper::Buildsystem::makefile'; + +sub DESCRIPTION { + "mk-configure" +} + +sub exists_make_target { + my ($this, $target) = @_; + + # Use -V .ALLTARGETS to get the list of targets; -n is + # needed to avoid executing anything + my @opts=("-n", "-V", ".ALLTARGETS"); + my $buildpath = $this->get_buildpath(); + unshift @opts, "-C", $buildpath if $buildpath ne "."; + + my $pid = open(MAKE, "-|"); + defined($pid) || error("fork failed: $!"); + if (! $pid) { + open(STDERR, ">&STDOUT"); + $ENV{LC_ALL}='C'; + delete $ENV{MAKEFLAGS}; + exec($this->{makecmd}, @opts, @_); + exit(1); + } + + local $/=undef; + my $output=<MAKE>; + chomp $output; + close MAKE; + + return defined $output && grep(/^$target$/, split(" ",$output)); +} + +# Currently, we don't want parallel build with bmake. +sub do_make { + my $this=shift; + + # Avoid possible warnings about unavailable jobserver, + # and force make to start a new jobserver. + clean_jobserver_makeflags(); + + my @root_cmd; + if (exists($this->{_run_make_as_root}) and $this->{_run_make_as_root}) { + @root_cmd = gain_root_cmd(); + } + + $ENV{MKCOMPILERSETTINGS}='yes'; + + my @opts; + my $prefix = "/usr"; + push @opts, "PREFIX=${prefix}"; + push @opts, "MANDIR=${prefix}/share/man"; + push @opts, "INFODIR=${prefix}/share/info"; + push @opts, "SYSCONFDIR=/etc"; + push @opts, "STRIPFLAG="; + my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH"); + if (! compat(8)) { + if (defined $multiarch) { + push @opts, "LIBDIR=${prefix}/lib/$multiarch"; + push @opts, "LIBEXECDIR=${prefix}/lib/$multiarch"; + } + else { + push @opts, "LIBEXECDIR=${prefix}/lib"; + } + } + else { + push @opts, "LIBEXECDIR=${prefix}/lib/" . sourcepackage(); + } + + $this->doit_in_builddir(@root_cmd, $this->{makecmd}, @opts, @_); +} + +sub clean { + my $this=shift; + if (!$this->rmdir_builddir()) { + $this->make_first_existing_target(['cleandir', 'distclean', 'realclean', 'clean'], @_); + } +} + +sub check_auto_buildable { + my $this=shift; + my ($step)=@_; + + if (-e $this->get_buildpath("makefile") || + -e $this->get_buildpath("Makefile")) + { + my $ret = ($this->SUPER::check_auto_buildable(@_)); + + open (MAKEFILE, "makefile") || open (MAKEFILE, "Makefile") || + return 0; + + while (<MAKEFILE>) { + chomp; + if (/^\.?\s*include\s+<mkc/) { + close MAKEFILE; + $ret++; + return $ret; + } + } + close MAKEFILE; + return $ret; + } + return 0; +} + +sub new { + my $class=shift; + my $this=$class->SUPER::new(@_); + + # dh creates and sets HOME automatically for compat 13+ + if (compat(12)) { + my $cwd = Cwd::getcwd(); + my $home_dir = join('/', $cwd, generated_file('_source', 'home', 0)); + my @paths = ( + $home_dir, + ); + install_dir(@paths); + $ENV{'HOME'} = $home_dir; + } + + $this->{makecmd} = "mkcmake"; + return $this; +} + +1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..473b66f --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +export PREFIX := /usr +export SYSCONFDIR := /etc +export MANDIR := $(PREFIX)/share/man +export MKFILESDIR := $(PREFIX)/share/mk-configure/mk + +%: + dh $@ --buildsystem=bmake + +override_dh_auto_clean: + -dh_auto_clean + bmake cleandir-presentation + +override_dh_auto_build: + dh_auto_build + bmake pdf + +override_dh_auto_test: + -bmake test + +.PHONY: override_dh_auto_clean override_dh_auto_build override_dh_auto_test diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/basic-test b/debian/tests/basic-test new file mode 100755 index 0000000..75d1009 --- /dev/null +++ b/debian/tests/basic-test @@ -0,0 +1 @@ +mkcmake all test tests=configure_test examples= diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..9d926ce --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,5 @@ +Tests: basic-test +Depends: + build-essential, + @ +Restrictions: allow-stderr diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..e79d2f0 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,3 @@ +--- +Bug-Database: https://github.com/cheusov/mk-configure/issues +Bug-Submit: https://github.com/cheusov/mk-configure/issues/new diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b416ed6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,8 @@ +# Compulsory line, this is a version 3 file +version=4 + +https://mova.org/~cheusov/pub/mk-configure/mk-configure-(\d.*).tar.gz + +opts="mode=git, pgpmode=none, repack, compression=xz" \ + https://github.com/cheusov/mk-configure \ + refs/tags/mk-configure-([\d\.]+) |