debian/0000755000000000000000000000000011761516164007176 5ustar debian/watch0000644000000000000000000000036711761512403010225 0ustar # Upstream does not release source as versioned tarballs, but provides # it in a public Control Version System. You may get the tarball used # to build this package (actually, with different timestamps) with # make -f debian/rules get-orig-source debian/patches/0000755000000000000000000000000011761516064010624 5ustar debian/patches/hardening.patch0000644000000000000000000000111211761513424013574 0ustar Patch to include hardening flags in compilation of rlimit --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ if 'Windows' in platform.system() or 'CYGWIN' in platform.system(): os.system('gcc -o scripts/rlimit src/rlimit/rlimit-NT.c') else: - os.system('gcc -o scripts/rlimit src/rlimit/rlimit.c') + os.system('gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wl,-z,relro -o scripts/rlimit src/rlimit/rlimit.c') # Update the scripts list self.scripts = glob.glob('scripts/*') debian/patches/name-changes.patch0000644000000000000000000000141011761512403014160 0ustar Since rlimt is shipped as gnatpython-rlimit, fileutils need to be fixed to give the right path Also change gnatpython to python, since gnatpython isn't available in debian --- a/gnatpython/fileutils.py +++ b/gnatpython/fileutils.py @@ -1090,6 +1090,6 @@ if Env().host.os.name.lower() == 'windows': path = get_path(os.path.join('Scripts', 'rlimit')) else: - path = get_path(os.path.join('bin', 'rlimit')) + path = get_path(os.path.join('bin', 'gnatpython-rlimit')) return path or which("rlimit" + Env().host.os.exeext) --- a/examples/echo_testsuite/run-test +++ b/examples/echo_testsuite/run-test @@ -1,4 +1,4 @@ -#!/usr/bin/env gnatpython +#!/usr/bin/env python """Usage: run-test [options] test_dir Run a test located in test_dir debian/patches/series0000644000000000000000000000007611761512403012035 0ustar name-changes.patch termio-hurd-kfreebsd.patch hardening.patch debian/patches/termio-hurd-kfreebsd.patch0000644000000000000000000000143411761516064015671 0ustar C code wasn't written with GNU/kFreeBSD and hurn in mind --- a/src/mod_term/terminals.c +++ b/src/mod_term/terminals.c @@ -32,6 +32,7 @@ /* First defined some macro to identify easily some systems */ #if defined (__FreeBSD__) \ + || defined (__FreeBSD_kernel__) \ || defined (__OpenBSD__) \ || defined (__NetBSD__) \ || defined (__DragonFly__) @@ -52,10 +53,14 @@ /* On some system termio is either absent or including it will disable termios (HP-UX) */ -#if ! defined (__hpux__) && ! defined (FREEBSD) && ! defined (__APPLE__) +#if ! defined (__hpux__) && ! defined (FREEBSD) && ! defined (__APPLE__) && ! defined (__GNU__) # include #endif +#if defined (FREEBSD) +# include +#endif + #include #include #include debian/rules0000755000000000000000000000337711761512403010260 0ustar #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk # Sets CFLAGS, CPPFLAGS, LDFLAGS, DEB_VERSION, DEB_VERSION_UPSTREAM. regexp := ^Version: ([^.]+)-(.*) SVN_REPOS ?= svn://scm.forge.open-do.org/scmrepos/svn/gnatpython/trunk revision := $(DEB_VERSION_UPSTREAM) orig_dir = python-gnatpython.orig orig_tgz = python-gnatpython.orig.tar.gz pkg_orig_dir = python-gnatpython-$(revision).orig pkg_orig_tgz = python-gnatpython_$(revision).orig.tar.gz test_env: @echo "revision=" $(revision) @echo "DEB_VERSION=" $(DEB_VERSION) get-orig-source: TMPDIR=$$(mktemp --tmpdir --directory python-gnatpython-get-orig-source-XXXXXXXXXX) && \ svn checkout $(SVN_REPOS) $$TMPDIR/ && \ mv $$TMPDIR/gnatpython $$TMPDIR/$(orig_dir) && \ (cd $$TMPDIR && tar --create --gzip --exclude=".svn" $(orig_dir)) > $(orig_tgz) ; \ rm -rf $$TMPDIR @echo "The file $(orig_tgz) contains the latest Debian snapshot of upstream sources." get-pkg-source: TMPDIR=$$(mktemp --tmpdir --directory python-gnatpython-get-pkg-source-XXXXXXXXXX) && \ svn checkout -r $(revision) $(SVN_REPOS) $$TMPDIR/ && \ mv $$TMPDIR/gnatpython $$TMPDIR/$(pkg_orig_dir) && \ (cd $$TMPDIR && tar --create --gzip --exclude=".svn" $(pkg_orig_dir)) > $(pkg_orig_tgz) ; \ rm -rf $$TMPDIR @echo "The file $(pkg_orig_tgz) contains the latest Debian snapshot of upstream sources." override_dh_auto_install-arch: for i in `pyversions -vr`; do \ python$$i setup.py install \ --install-layout=deb \ --root debian/python-gnatpython; \ done # Give executables a more specific name to avoid polluting # /usr/bin/ namespace. cd debian/python-gnatpython/usr/bin && \ for exe in *; do \ mv $$exe gnatpython-$$exe; \ done %: dh $@ --with python2 debian/manpages/0000755000000000000000000000000011761512403010761 5ustar debian/manpages/gnatpython-rlimit.10000644000000000000000000000123311761512403014533 0ustar .\"Created with GNOME Manpages Editor Wizard .\"http://sourceforge.net/projects/gmanedit2 .TH gnatpython-rlimit 1 "November 8, 2011" "" "Limit the execution time of a command" .SH NAME gnatpython-rlimit \- program to limit the execution time of a command .SH SYNOPSIS .B gnatpython-rlimit seconds command [args] .br .SH DESCRIPTION This manual page explains the .B gnatpython-rlimit program. This program ables one to send a command within a maximum amount of time. Note that this main page is written using comments from the code by the package maintainer. .SH OPTIONS Options are not documented. .SH "SEE ALSO" .TP .B gnatpython-mainloop gnatpython-opt-parser debian/manpages/gnatpython-mainloop.10000644000000000000000000000336711761512403015063 0ustar .\"Created with GNOME Manpages Editor Wizard .\"http://sourceforge.net/projects/gmanedit2 .TH gnatpython-mainloop 1 "November 7, 2011" "" "Generic loop for testsuites" .SH NAME gnatpython-mainloop \- command line interface for testsuite mainloop (in the ACATS/Fixed bugs style) .SH SYNOPSIS .B gnatpython-mainloop .RI [options] test_list_file command_pattern .br .SH DESCRIPTION .B gnatpython-mainloop program use the MainLoop package which provides a class called MainLoop that provides a generic implementation of a testsuite main loop. Parallelism, abortion and time control are the key features. Each MainLoop instance controls a set of Workers whose number is set by the user. The list of tasks/tests to be achieved by the workers, is provided by a list. The mainloop distribute the elements to the the workers when they have nothing to do. Usually, an element is a string identifying the test to be run. An element can also be a list in that case the worker will execute sequentially each "subelement". This case is used to address dependency between tests (occurs for example with the ACATS). When a worker is asked to run a test, the command is executed by calling run_testcase (testid). Once a test is finished the function collect_result will be called with test id, and process (a gnatpython.ex.Run object) and the job_info as parameters. Both run_testcase and collect_result are user defined functions. Note also that from the user point view there is no parallelism to handle. The two user defined function run_testcase and collect_result are called sequentially. Note that this main page is written using comments from the code by the package maintainer. .SH OPTIONS Options are not documented. .SH "SEE ALSO" .TP .B gnatpython-rlimit .B gnatpython-opt-parser debian/manpages/gnatpython-opt-parser.10000644000000000000000000000123211761512403015326 0ustar .\"Created with GNOME Manpages Editor Wizard .\"http://sourceforge.net/projects/gmanedit2 .TH gnatpython-opt-parser 1 "November 7, 2011" "" "GNATPYTHON Option parser" .SH NAME gnatpython-opt-parser \- program to parser options. .SH SYNOPSIS .B gnatpython-opt-parser .br .SH DESCRIPTION No description found for .B gnatpython-opt-parser by the maintainer in the sources. Since he's not a python developer, may be he have missed it somewhere. Note that this main page is written using comments from the code by the package maintainer. .SH OPTIONS .B Options are not documented. .SH "SEE ALSO" .TP .B gnatpython-rlimit .B gnatpython-mainloop debian/python-gnatpython.manpages0000644000000000000000000000002211761512403014407 0ustar debian/manpages/* debian/clean0000644000000000000000000000010611761512403010170 0ustar # This file should be cleaned by upstream in setup.py. scripts/rlimit debian/control0000644000000000000000000000235211761512403010573 0ustar Source: python-gnatpython Section: python Priority: optional Maintainer: Xavier Grave DM-Upload-Allowed: yes Build-Depends: debhelper (>= 9.20120115), dpkg-dev (>= 1.16.1), python-all (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), gcc (>= 4.6) Vcs-Browser: http://www.ada-france.org:8081/branch/changes/org.debian.gnatpython Vcs-Mtn: www.ada-france.org org.debian.gnatpython Homepage: http://forge.open-do.org/projects/gnatpython Standards-Version: 3.9.3 X-Python-Version: >= 2.6 Package: python-gnatpython Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} Description: Python framework to ease development of test suites GNATPython is a Python framework to ease development of test suites and build scripts in a portable way. It is developed by a team of AdaCore members. Package: python-gnatpython-doc Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: python-gnatpython Section: doc Description: Python framework to ease development of test suites (examples) GNATPython is a Python framework to ease development of test suites and build scripts in a portable way. It is developed by a team of AdaCore members. . This package contains examples of GNATPython use. debian/copyright0000644000000000000000000000104511761512403011121 0ustar Authors: Thomas Quinot Packaged-By: Xavier Grave Files: * Copyright: (C) 2008 - 2011 Ada Core Technologies, Inc. License: GPL-3+ Files: *.c Copyright: (C) 1996 - 2011 Ada Core License: GPL-3+ Files: src/mod_term/terminals.c Copyright: (C) 2008 - 2011 AdaCore License: GPL-2+ . The full text of the GNU General Public License version 2 is available in /usr/share/common-licenses/GPL-2 . The full text of the GNU General Public License version 3 is available in /usr/share/common-licenses/GPL-3debian/compat0000644000000000000000000000000211761512403010364 0ustar 9 debian/source/0000755000000000000000000000000011761512403010466 5ustar debian/source/format0000644000000000000000000000001411761512403011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000116211761516164011050 0ustar python-gnatpython (54-3) unstable; urgency=low * Fix bug in hardening patch rlimit wasn't compiled anymore * Fix warning in kFreeBSD build -- Xavier Grave Thu, 31 May 2012 00:16:34 +0200 python-gnatpython (54-2) unstable; urgency=low * Add a patch to soleve termio issue on kFreeBSD and Hurd -- Xavier Grave Fri, 25 May 2012 10:21:15 +0200 python-gnatpython (54-1) unstable; urgency=low * Initial release. (Closes: #641721) - manpages written by the maintainer -- Xavier Grave Thu, 19 Jan 2012 11:38:38 +0100 debian/python-gnatpython-doc.examples0000644000000000000000000000001311761512403015175 0ustar examples/*