debian/0000755000000000000000000000000012051673644007176 5ustar debian/install0000644000000000000000000000100312051673644010561 0ustar /usr/bin/nescc /usr/bin/nescc-ncg /usr/bin/nescc-mig /usr/bin/nescc-wiring /usr/share/nescc /usr/lib/*/ncc /usr/share/man/man1 /usr/share/ncc/doc/* /usr/share/doc/nescc/ /usr/share/vim/* /usr/share/ncc/editor-modes/gedit/ncc.lang /usr/share/gtksourceview-2.0/language-specs/ /usr/share/ncc/editor-modes/gedit/ncc.lang /usr/share/gtksourceview-3.0/language-specs/ /usr/share/ncc/editor-modes/kde/nesc.xml /usr/share/kde4/apps/katepart/syntax/ /usr/share/ncc/editor-modes/emacs/*.el /usr/share/emacs/site-lisp/nescc/ debian/nescfiletype.vim0000644000000000000000000000005412051673644012404 0ustar au BufRead,BufNewFile *.nc setfiletype nesc debian/rules0000755000000000000000000000255512051673644010265 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_install: dh_auto_install --destdir=debian/tmp/ # remove duplicated information rm debian/tmp/usr/share/ncc/doc/COPYRIGHT rm debian/tmp/usr/share/ncc/doc/COPYING-DOC rm debian/tmp/usr/share/ncc/doc/INDEX # README is actually a changelog mv debian/tmp/usr/share/ncc/doc/README debian/tmp/usr/share/ncc/doc/changelog # move architecture independent data to /usr/share mkdir -p debian/tmp/usr/share/nescc for file in debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ncc/*.pm \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ncc/*.h \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ncc/nesc.jar \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ncc/nesc-compile \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ncc/tdspecs \ ; do mv $$file debian/tmp/usr/share/nescc/ ; \ ln -s ../../../share/nescc/`basename $$file` $$file ; \ done # install vim syntax highlighting mkdir -p debian/tmp/usr/share/vim/addons/syntax \ debian/tmp/usr/share/vim/addons/ftdetect \ debian/tmp/usr/share/vim/registry mv debian/tmp/usr/share/ncc/editor-modes/vim/nesc.vim debian/tmp/usr/share/vim/addons/syntax/nesc.vim mv debian/nescfiletype.vim debian/tmp/usr/share/vim/addons/ftdetect/nescfiletype.vim mv debian/vim-syntax-nesc.yaml debian/tmp/usr/share/vim/registry/vim-syntax-nesc.yaml debian/doc-base0000644000000000000000000000113212051673644010573 0ustar Document: nescc Title: NesC Reference Manual Author: David Gay, Philip Levis, David Culler, Eric Brewer Abstract: nesC is an extension to C [5] designed to embody the structuring concepts and execution model of TinyOS [4]. TinyOS is an event-driven operating system designed for sensor network nodes that have very limited resources (e.g., 8K bytes of program memory, 512 bytes of RAM). TinyOS has been reimplemented in nesC. This manual describes v1.2 of nesC, changes from v1.0 and v1.1 are summarised in Section 2. Section: Programming/NesC Format: PDF Files: /usr/share/doc/nescc/ref.pdf.gz debian/patches/0000755000000000000000000000000012051673644010625 5ustar debian/patches/fix-format-security-error.patch0000644000000000000000000000235412051673644016722 0ustar Description: fix format-security error This patch fixes a format-security warning, which is handled as error because of the hardening flags. Author: Sebastian Reichel Last-Update: 2012-04-18 --- nescc-1.3.3.orig/libcpp/macro.c 2008-01-16 00:07:37.000000000 +0100 +++ nescc-1.3.3/libcpp/macro.c 2012-04-18 09:15:11.000000000 +0200 @@ -1573,7 +1573,7 @@ function-like macros, but not at the end. */ if (following_paste_op) { - cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg); + cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg); return false; } break; @@ -1586,7 +1586,7 @@ function-like macros, but not at the beginning. */ if (macro->count == 1) { - cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg); + cpp_error (pfile, CPP_DL_ERROR, "%s", paste_op_error_msg); return false; } --- nescc-1.3.3.orig/src/nesc-generate.c 2009-07-02 19:35:39.000000000 +0200 +++ nescc-1.3.3/src/nesc-generate.c 2012-04-18 09:19:08.000000000 +0200 @@ -190,7 +190,7 @@ if (rename || !vd->ddecl->name) output("arg_%p", vd->ddecl); else - output((char *)vd->ddecl->name); + output("%s", (char *)vd->ddecl->name); } return first; } debian/patches/fix-manpages.patch0000644000000000000000000000462212051673644014231 0ustar Description: fix manpages Fix all errors and warnings lintian reports in the manpages: . * manpage-has-errors-from-man warning: macro `LO' not defined * hyphen-used-as-minus-sign Author: Sebastian Reichel Last-Update: 2012-07-13 --- a/doc/nescc-mig.1 +++ b/doc/nescc-mig.1 @@ -1,5 +1,4 @@ .TH nescc-mig 1 "April 27, 2004" -.LO 1 .SH NAME nescc-mig - message interface generator for nesC @@ -135,7 +134,7 @@ sizeof(message-type); this is useful for variable-size messages. The use of an explicit base is helpful for messages embedded in other messages. The generated class also has an amType() method which returns the message's -active message type, or -1 if no AM_\fImessage_type\fR constant was found. +active message type, or \-1 if no AM_\fImessage_type\fR constant was found. .SH C# TOOL This tool generates a C# class to encode or decode a nesC message. It accepts the following options: diff --git a/doc/nescc-ncg.1 b/doc/nescc-ncg.1 index e89517f..bdd7577 100644 --- a/doc/nescc-ncg.1 +++ b/doc/nescc-ncg.1 @@ -1,5 +1,4 @@ .TH nescc-ncg 1 "April 27, 2004" -.LO 1 .SH NAME nescc-ncg - extract constants from nesC files diff --git a/doc/nescc-wiring.1 b/doc/nescc-wiring.1 index 27b0fb2..c9d300a 100644 --- a/doc/nescc-wiring.1 +++ b/doc/nescc-wiring.1 @@ -1,5 +1,4 @@ .TH nescc-wiring 1 "January 4, 2006" -.LO 1 .SH NAME nescc-wiring - check wiring of nesC program @@ -45,10 +44,10 @@ header file as follows: and you must pass the following options to \fBnescc\fR to create the XML file that you pass to \fBnescc-wiring\fR: - -fnesc-dump=wiring - -fnesc-dump='interfaces(!abstract())' - -fnesc-dump='referenced(interfacedefs, components)' - -fnesc-dumpfile=\fInesc-xml-file\fR + \-fnesc-dump=wiring + \-fnesc-dump='interfaces(!abstract())' + \-fnesc-dump='referenced(interfacedefs, components)' + \-fnesc-dumpfile=\fInesc-xml-file\fR .SH SEE ALSO diff --git a/doc/nescc.1 b/doc/nescc.1 index c557f86..0063c9d 100644 --- a/doc/nescc.1 +++ b/doc/nescc.1 @@ -1,5 +1,4 @@ .TH nescc 1 "April 27, 2004" -.LO 1 .SH NAME nescc - nesC compiler .SH SYNOPSIS @@ -192,7 +191,7 @@ added to nesC\fRs search path with \fB-I\fR. If you wish to compile a component Bar.nc to a C file, you can do: .IP -nescc -c -o /dev/null -fnesc-cfile=Bar.c Bar.nc +nescc \-c \-o /dev/null \-fnesc\-cfile=Bar.c Bar.nc .SH PREPROCESSOR SYMBOLS \fBnescc\fR defines the following preprocessor symbol: debian/patches/series0000644000000000000000000000006312051673644012041 0ustar fix-manpages.patch fix-format-security-error.patch debian/vim-syntax-nesc.yaml0000644000000000000000000000016312051673644013127 0ustar addon: nesc-syntax description: "Addon to highlight NesC" files: - syntax/nesc.vim - ftdetect/nescfiletype.vim debian/control0000644000000000000000000000217212051673644010603 0ustar Source: nescc Section: devel Priority: optional Maintainer: Sebastian Reichel Standards-Version: 3.9.4 Homepage: http://nescc.sourceforge.net/ Vcs-Git: git://git.debian.org/git/collab-maint/nescc.git Vcs-Browser: http://git.debian.org/?p=collab-maint/nescc.git;a=summary Build-Depends: debhelper (>= 9), default-jdk | openjdk-7-jdk Package: nescc Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${perl:Depends}, default-jre | openjdk-7-jre, perl Suggests: gcc-avr, gcc-msp430 Description: Programming Language for Deeply Networked Systems nesC (pronounced "NES-see") is an extension to the C programming language designed to embody the structuring concepts and execution model of TinyOS. TinyOS is an event-driven operating system designed for sensor network nodes that have very limited resources (e.g., 8K bytes of program memory, 512 bytes of RAM). . This package contains the nesC compiler and its documentation. It also provides nesC syntax support for the editors vim and emacs together with all gtksourceview and kdepart based editors. debian/changelog0000644000000000000000000000056312051673644011054 0ustar nescc (1.3.4-2) unstable; urgency=low * reorder build dependency alternatives (Closes: #693465) * use default-jre as binary dependency -- Sebastian Reichel Sat, 17 Nov 2012 12:30:57 +0100 nescc (1.3.4-1) unstable; urgency=low * Initial Debian Release (Closes: #584718) -- Sebastian Reichel Thu, 25 Oct 2012 13:17:39 +0200 debian/watch0000644000000000000000000000006112051673644010224 0ustar version=3 http://sf.net/nescc/nesc-(.+)\.tar\.gz debian/copyright0000644000000000000000000002511012051673644011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://sourceforge.net/projects/nescc/files/nescc/ Files: * Copyright: 1987-2012 Free Software Foundation, Inc. 2000-2001 The Regents of the University of California 2002-2006 Intel Corporation License: GPL-2 Files: doc/* Copyright: 2002-2005 Intel Corporation License: GFDL-NIV-1.2 check /usr/share/common-licenses/GFDL-1.2 Files: libcpp/* Copyright: 1986-2008 Free Software Foundation, Inc. License: GPL-2+ Files: libiberty/* Copyright: 1989-2006 Free Software Foundation, Inc. License: LGPL-2+ Files: libiberty/regex.c libiberty/strverscmp.c libiberty/strverscmp.c Copyright: 1993-2005 Free Software Foundation, Inc. License: LGPL-2.1+ Files: libiberty/md5.c libiberty/clock.c libiberty/vsnprintf.c libiberty/partition.c libiberty/physmem.c libiberty/sort.c libiberty/_doprnt.c libiberty/strtod.c libiberty/cp-demint.c libiberty/vsprintf.c libiberty/cp-demangle.h libiberty/filename_cmp.c libiberty/cp-demangle.c libiberty/lrealpath.c libiberty/make-relative-prefix.c libiberty/unlink-if-ordinary.c libiberty/fnmatch.c libiberty/obstack.c libiberty/fibheap.c libiberty/getopt.c libiberty/getopt1.c libiberty/floatformat.c libiberty/objalloc.c libiberty/snprintf.c libiberty/splay-tree.c libiberty/dyn-string.c Copyright: 1994-2007 Free Software Foundation, Inc. License: GPL-2+ Files: libiberty/strtoul.c libiberty/xatexit.c libiberty/bsearch.c libiberty/random.c libiberty/strtol.c Copyright: 1983, 1990 Regents of the University of California License: BSD-3-clause files: libiberty/strncasecmp.c libiberty/strcasecmp.c Copyright: 1987 Regents of the University of California License: BSD-custom Redistribution and use in source and binary forms are permitted provided that this notice is preserved and that due credit is given to the University of California at Berkeley. The name of the University may not be used to endorse or promote products derived from this software without specific written prior permission. This software is provided ``as is'' without express or implied warranty. Files: libiberty/strerror.c libiberty/memcpy.c libiberty/rename.c libiberty/getcwd.c libiberty/memmove.c libiberty/xmemdup.c libiberty/strchr.c libiberty/atexit.c libiberty/strncmp.c libiberty/xstrerror.c libiberty/memcmp.c libiberty/basename.c libiberty/strstr.c libiberty/bzero.c libiberty/vfork.c libiberty/bcmp.c libiberty/strrchr.c libiberty/insque.c libiberty/calloc.c libiberty/strsignal.c libiberty/xstrdup.c libiberty/memset.c libiberty/sigsetmask.c Copyright: Public Domain License: Public Domain The code header declares the sourcecode from these files public domain using one of the following sentences (depending on the file): . * This function is in the public domain. * This file is in the public domain. * This code is in the public domain. Files: tools/java/* tools/nesc_nx.h Copyright: 2004-2006 Intel Corporation License: BSD-3-clause or GPL-2 Files: tools/editor-modes/* Copyright: 1985-2002 Free Software Foundation, Inc. 2004 Intel Corporation 2005-2007 Marco Barisione 2005-2007 Emanuele Aina 2007 Ariel Núñez License: GPL-2+ Files: src/* Copyright: 1987-1998 Free Software Foundation, Inc. 2000-2001 The Regents of the University of California 2002-2008 Intel Corporation License: GPL-2 Files: src/libcompat/* Copyright: 1999-2001 Regents of the University of California License: BSD-3-clause Files: src/dhash.c src/dhash.h Copyright: 1999-2001 Regents of the University of California License: BSD-3-clause Files: src/libcompat/regex.c src/libcompat/regex/regex.h src/libcompat/fnmatch.c src/libcompat/fnmatch/fnmatch.h Copyright: 1985-2000 Free Software Foundation, Inc. License: LGPL-2+ Files: src/nesc-dspec.tab.c src/nesc-dspec.tab.h src/c-parse.tab.c src/c-parse.tab.h Copyright: 1984-2011 Free Software Foundation, Inc. License: GPL-3+ Files: include/* Copyright: 1888-2007 Free Software Foundation, Inc. License: GPL-2+ Files: include/safe-ctype.h include/demangle.h include/xregex2.h Copyright: 1992-2007 Free Software Foundation, Inc. License: LGPL-2+ Files: include/xregex2.h Copyright: 1985-2005 Free Software Foundation, Inc. License: LGPL-2.1+ Files: debian/* Copyright: 2012, Sebastian Reichel License: ISC Permission to use, copy, modify, and/or 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 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. 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 as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-3'. License: LGPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the Lesser GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. License: LGPL-2.1+ This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the Lesser GNU General Public License version 2.1 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. 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: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 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. - Neither the name of the University of California 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 COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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. debian/compat0000644000000000000000000000000212051673644010374 0ustar 9 debian/source/0000755000000000000000000000000012051673644010476 5ustar debian/source/format0000644000000000000000000000001412051673644011704 0ustar 3.0 (quilt)