--- flex-2.5.35.orig/flexint.h +++ flex-2.5.35/flexint.h @@ -28,7 +28,6 @@ typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -59,5 +58,6 @@ #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ #endif /* ! FLEXINT_H */ --- flex-2.5.35.orig/scan.c +++ flex-2.5.35/scan.c @@ -1,5 +1,6 @@ +#line 2 "scan.c" -#line 3 "scan.c" +#line 4 "scan.c" #define YY_INT_ALIGNED short int @@ -53,7 +54,6 @@ typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -84,6 +84,8 @@ #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -140,7 +142,15 @@ /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -2085,7 +2095,12 @@ /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -2093,7 +2108,7 @@ /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -2104,7 +2119,7 @@ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - int n; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -4847,8 +4862,8 @@ /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ --- flex-2.5.35.orig/flex.skl +++ flex-2.5.35/flex.skl @@ -218,6 +218,7 @@ #include #include #include +#include #include /* end standard C++ headers. */ %endif @@ -443,7 +444,15 @@ /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif m4_ifdef( [[M4_YY_NOT_IN_HEADER]], @@ -1063,7 +1072,12 @@ /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif m4_ifdef( [[M4_YY_NOT_IN_HEADER]], @@ -1074,7 +1088,7 @@ /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) %endif %if-c++-only C++ definition #define ECHO LexerOutput( yytext, yyleng ) @@ -2348,8 +2362,8 @@ %if-c-only /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * M4_YY_DOC_PARAM * @return the newly allocated buffer state object. */ --- flex-2.5.35.orig/skel.c +++ flex-2.5.35/skel.c @@ -244,7 +244,6 @@ "typedef unsigned char flex_uint8_t; ", "typedef unsigned short int flex_uint16_t;", "typedef unsigned int flex_uint32_t;", - "#endif /* ! C99 */", "", "/* Limits of integral types. */", "#ifndef INT8_MIN", @@ -275,6 +274,7 @@ "#define UINT32_MAX (4294967295U)", "#endif", "", + "#endif /* ! C99 */", "", "#endif /* ! FLEXINT_H */", "", @@ -285,6 +285,7 @@ "#include ", "#include ", "#include ", + "#include ", "#include ", "/* end standard C++ headers. */", "%endif", @@ -510,7 +511,15 @@ "", "/* Size of default input buffer. */", "#ifndef YY_BUF_SIZE", + "#ifdef __ia64__", + "/* On IA-64, the buffer size is 16k, not 8k.", + " * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.", + " * Ditto for the __ia64__ case accordingly.", + " */", + "#define YY_BUF_SIZE 32768", + "#else", "#define YY_BUF_SIZE 16384", + "#endif /* __ia64__ */", "#endif", "", "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", @@ -1130,7 +1139,12 @@ "", "/* Amount of stuff to slurp up with each read. */", "#ifndef YY_READ_BUF_SIZE", + "#ifdef __ia64__", + "/* On IA-64, the buffer size is 16k, not 8k */", + "#define YY_READ_BUF_SIZE 16384", + "#else", "#define YY_READ_BUF_SIZE 8192", + "#endif /* __ia64__ */", "#endif", "", "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", @@ -1141,7 +1155,7 @@ "/* This used to be an fputs(), but since the string might contain NUL's,", " * we now use fwrite().", " */", - "#define ECHO fwrite( yytext, yyleng, 1, yyout )", + "#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)", "%endif", "%if-c++-only C++ definition", "#define ECHO LexerOutput( yytext, yyleng )", @@ -2559,8 +2573,8 @@ "%if-c-only", "/** Setup the input buffer state to scan the given bytes. The next call to yylex() will", " * scan from a @e copy of @a bytes.", - " * @param bytes the byte buffer to scan", - " * @param len the number of bytes in the buffer pointed to by @a bytes.", + " * @param yybytes the byte buffer to scan", + " * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.", " * M4_YY_DOC_PARAM", " * @return the newly allocated buffer state object.", " */", --- flex-2.5.35.orig/gen.c +++ flex-2.5.35/gen.c @@ -1890,7 +1890,7 @@ outn ("\tif ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \\"); outn ("\t\t{ \\"); outn ("\t\tint c = '*'; \\"); - outn ("\t\tint n; \\"); + outn ("\t\tsize_t n; \\"); outn ("\t\tfor ( n = 0; n < max_size && \\"); outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); outn ("\t\t\tbuf[n] = (char) c; \\"); --- flex-2.5.35.orig/debian/NEWS.Debian +++ flex-2.5.35/debian/NEWS.Debian @@ -0,0 +1,45 @@ +flex (2.5.33-7) unstable; urgency=low + + This version of Flex is a major upgrade from previous versions. There + have been extensive changes. These changes require source changes in + lex input files. The new direction flex is taking is to incorporate + new functionality at the expense of POSIX or backward + compatibility. This can also be considered part of the gcc migration + process; flex has been updated (the buggy, rickety set of patches + required to make it work with gcc was dumped in favour of a well + engineered upstream migration). + + Flex scanners are now reenterant, you may have multiple scanners in + the same program with differing sets of defaults, and they play + nicer with modern C and C++ compilers. C++ scanners are compatible + with recent c++ compilers (conform to ANSI C++, gcc 3.2), supports + bison variables yylval and yylloc. Some variables have been + renamed. Flex generates C99 defs now, see YY_TRADITIONAL_FUNC_DEFS. + yylineno is present in all scanners. yylineno is per-buffer in + reentrant scanners. Flex tries its best to output only the relevant + portions of the skeleton when generating a scanner, thus avoiding as + much conditional compilation as possible + + The signature of all functions has changed. flex has new command line + options, and option parsing has changed (now also supports POSIX + conventions optionally). Handles POSIXLY_CORRECT environment + variable. Various i18n translations are included in the + distribution. Flex now works with recent bison versions. The new + scanners do not polllute the global name space, and thus macros that + used to be available to user code are no longer present. + + Flex has gained an extensive new test suite run at build time to test + for regressions. The flip side is that Flex no longer conforms to the POSIX lex + behaviour, and the scanners require conforming implementations when + flex is used in ANSI C mode. Flex has broken backwards + compatibility. This is not a bug, but done deliberately, by + design. + + The package flex-old provides the same behaviour as version 2.5.4a of + Flex. + + Please make sure you are prepared for these changes in Flex + before continuing with its upgrade. + + -- Manoj Srivastava Fri, 31 Oct 2003 21:53:16 -0600 + --- flex-2.5.35.orig/debian/rules +++ flex-2.5.35/debian/rules @@ -0,0 +1,67 @@ +#! /usr/bin/make -f +############################ -*- Mode: Makefile; coding: utf-8 -*- ########################### +## rules --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Fri Nov 14 12:33:34 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Fri Mar 12 12:15:52 2004 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 73 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 9a5063f4-1e20-4fff-b22a-de94c1e3d954 +## +## 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 program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## +############################################################################### + +# Include dpkg-architecture generated variables +include debian/common/archvars.mk + +# Set variables with information extracted from control and changelog files +include debian/common/pkgvars.mk + +# variables useful for perl packages +include debian/common/perlvars.mk + +# we use debconf +include debian/common/debconf.mk + +# Install commands +include debian/common/install_cmds.mk + +include debian/local-vars.mk + +include debian/common/copt.mk + +include debian/common/automake.mk + +CFLAGS += -Wall -D_REENTRANT + + +all: + @echo nothing to be done + +include debian/common/targets.mk + +include debian/local.mk + + +#Local variables: +#mode: makefile +#End: --- flex-2.5.35.orig/debian/doc.postrm +++ flex-2.5.35/debian/doc.postrm @@ -0,0 +1,178 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postrm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:22:20 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Tue Apr 11 13:20:24 2006 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 12 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 56802d51-d980-4822-85c0-28fce19ed430 +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + + +# Abort if any command returns an error value +set -e + +package_name=flex-doc + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called twice during the removal of the package; once +# after the removal of the package's files from the system, and as +# the final step in the removal of this package, after the package's +# conffiles have been removed. +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# Ensure the menu system is updated +# [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +case "$1" in + remove) + # This package is being removed, but its configuration has not yet + # been purged. + : + test ! -e /usr/share/doc/$package_name/.dhelp || \ + rm -f /usr/share/doc/$package_name/.dhelp + test ! -d /usr/share/doc/$package_name || \ + rmdir --ignore-fail-on-non-empty /usr/share/doc/$package_name + + # Remove diversion + # dpkg-divert --package ${package_name} --remove --rename \ + # --divert /usr/bin/other.real /usr/bin/other + + # ldconfig is NOT needed during removal of a library, only during + # installation + + ;; + purge) + # This package has previously been removed and is now having + # its configuration purged from the system. + + # we mimic dpkg as closely as possible, so we remove configuration + # files with dpkg backup extensions too: + ### Some of the following is from Tore Anderson: + # for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + # rm -f /etc/${package_name}.conf$ext + # done + + # remove the configuration file itself + # rm -f /etc/${package_name}.conf + test ! -e /usr/share/doc/$package_name/.dhelp || \ + rm -f /usr/share/doc/$package_name/.dhelp + test ! -d /usr/share/doc/$package_name || \ + rmdir --ignore-fail-on-non-empty /usr/share/doc/$package_name + + # and finally clear it out from the ucf database + # ucf --purge /etc/${package_name}.conf + + # Remove symlinks from /etc/rc?.d + # update-rc.d ${package_name} remove >/dev/null + + #if [ -e /usr/share/debconf/confmodule ]; then + # # Purge this package's data from the debconf database. + # . /usr/share/debconf/confmodule + # db_purge + #fi + + # This package has previously been removed and is now having + # its configuration purged from the system. + # for flavour in emacs20 emacs21; do + # STARTDIR=/etc/$flavour/site-start.d; + # STARTFILE="${package_name}-init.el"; + # if [ -e "$STARTDIR/20$STARTFILE" ]; then + # rm -f "$STARTDIR/20$STARTFILE" + # fi + # done + + ;; + disappear) + if test "$2" != overwriter; then + echo "$0: undocumented call to \`postrm $*'" 1>&2 + exit 0 + fi + # This package has been completely overwritten by package $3 + # (version $4). All our files are already gone from the system. + # This is a special case: neither "prerm remove" nor "postrm remove" + # have been called, because dpkg didn't know that this package would + # disappear until this stage. + : + + ;; + upgrade) + # About to upgrade FROM THIS VERSION to version $2 of this package. + # "prerm upgrade" has been called for this version, and "preinst + # upgrade" has been called for the new version. Last chance to + # clean up. + : + + ;; + failed-upgrade) + # About to upgrade from version $2 of this package TO THIS VERSION. + # "prerm upgrade" has been called for the old version, and "preinst + # upgrade" has been called for this version. This is only used if + # the previous version's "postrm upgrade" couldn't handle it and + # returned non-zero. (Fix old postrm bugs here.) + : + + ;; + abort-install) + # Back out of an attempt to install this package. Undo the effects of + # "preinst install...". There are two sub-cases. + : + + if test "${2+set}" = set; then + # When the install was attempted, version $2's configuration + # files were still on the system. Undo the effects of "preinst + # install $2". + : + + else + # We were being installed from scratch. Undo the effects of + # "preinst install". + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package from version $2 + # TO THIS VERSION. Undo the effects of "preinst upgrade $2". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- flex-2.5.35.orig/debian/changelog +++ flex-2.5.35/debian/changelog @@ -0,0 +1,1012 @@ +flex (2.5.35-10ubuntu1) natty; urgency=low + + * debian/control: flex should be declared Multi-Arch: allowed since it + contains both an executable and a library. + + -- Steve Langasek Wed, 26 Jan 2011 14:48:22 -0800 + +flex (2.5.35-10) unstable; urgency=low + + * Bug fix: "flex is not GNU flex", thanks to Santiago Vila + (Closes: #576413). + + -- Manoj Srivastava Mon, 19 Jul 2010 14:03:19 -0700 + +flex (2.5.35-9.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/control: add autopoint to build-deps, drop cvs (Closes: #572468). + + -- Kees Cook Sun, 20 Jun 2010 14:17:14 -0700 + +flex (2.5.35-9) unstable; urgency=low + + * Update handling of lintian overrides. + + -- Manoj Srivastava Fri, 30 Oct 2009 14:52:46 -0500 + +flex (2.5.35-8) unstable; urgency=low + + * Update package to conform to policy. + * [56a9f0b]: [flex]: Info files are now installed using a trigger + Add dependencies to that is happens automatically. + + -- Manoj Srivastava Sun, 16 Aug 2009 15:51:33 -0500 + +flex (2.5.35-7) unstable; urgency=low + + * [e12dee9]: [topic--autoconf-files] Delete files create by autoconf + * [d32c587]: [debiandir]: Regenerate autoconf files during + configuration Upstream has versions of autoconf files that are stuck + at the time of release. As newer versions of autoconf come out, and + these nerw versions support more architectures, porting to them + becomes harder if the package uses the now obsolete versionsof the + files. Flex packaging now begins to reate autoconf and automake as + real toolchain components, and re-creates the autoconf files at + build time, and removes them while cleaning up. This should help out + peopole on newly supported platforms. + * [0999f25]: [gcc-4-4-include-fix] Add missing #include cstdio for gcc-4.4 + GCC 4.4 has cleaned up some more C++ headers. You always have to + include headers directly, and cannot depend on things to be included + indirectly. Bug fix: "produces c++ code with missing include cstdio", + thanks to Martin Michlmayr (Closes: #525812). + + -- Manoj Srivastava Tue, 28 Apr 2009 11:30:31 -0500 + +flex (2.5.35-6) unstable; urgency=high + + * [f0d7848]: Finish fixing the ia64 buffer issue. Previous commits + increased YY_READ_BUF_SIZE (where __ia64__ is defined) but left + YY_BUF_SIZE unchanged, so that didn't fix the problem in the end. In + the general case, the latter is twice the former. Therefore set it to + the same ratio in the ia64 case. Thanks to Cyril Brulebois + for the heavy lifting. + Bug fix: "flex scanner push-back overflow", thanks to Sergei Golovan. + (Closes: #505056) + + -- Manoj Srivastava Mon, 05 Jan 2009 12:10:01 -0600 + +flex (2.5.35-5) unstable; urgency=low + + * [debiandir:7eff632]: Fix race conditions in local.mk + [62a6595]: Correct a few dependencies in Makefiles + These fixes allow flex to be built using make -j3 + Bug fix: "FTBFS with parallel in DEB_BUILD_OPTIONS", thanks to Daniel + Schepler. The heavy lifting was done by Robert Millan (Closes: #507231). + + -- Manoj Srivastava Sat, 29 Nov 2008 20:46:28 -0600 + +flex (2.5.35-4) unstable; urgency=low + + * [f6cc9ae] Narrow buffer size changes to just IA64 + Increasing the buffer size on other architectures cause problems in + corner cases not caught by the test suite. So perhaps it is not better + to increase the buffer size unilatereally for all architectures, but + to just increase it for the architecture it is required on, namely, + IA64, and leave it unchanged on other architectures. This solution + should fix the new grave bugs, while not reopening the original but + that cause this change to be done in the first place. + Grave Bug fix: flex scanner push-back overflow, thanks to Sergei + Golovan (Closes: #505056, #504030) + * [debiandir:9a6d713] Fix VCS-Browser source field. + Bug fix: Useless VCS-Browser control field, thanks to Vincent Fourmond + (Closes: #503732) + * [d58780f] Wrap ECHO macro to avoid FORTIFY warnings + This change will enable flex scanners to be compiled with + -D_FORTIFY_SOURCE=2, which is a good thing security wise. + Bug Fix: flex causing warnings when compiled with FORTIFY_SOURCE, + thanks to Kees Cook. (Closes: #505233, #388438) + + + -- Manoj Srivastava Wed, 19 Nov 2008 23:52:09 -0600 + +flex (2.5.35-3) unstable; urgency=low + + * Bug fix: "debian dir contains *.so", thanks to Raphael Hertzog + This is a simple rname of a file used purely in packaging, and has low + risk, but would allow compiling the flex source package with squeeze's + packaging tools. (Closes: #485095). + * [88bb2fc] Fix generation of broken output on ia64 when input is piped in + + On ia64, flex appears to generate a completely different (and broken) + output depending on whether the input file is specified using shell + redirection or via a pipe. + + This was traced back commit 3971e1a917548977cff71418a7c3575ffbc9571f, + by Alex Nixon : VFS: increase pseudo-filesystem + block size to PAGE_SIZE. PAGE_SIZE on ia64 kernels is larger than most + architectures - 16K is what most distributions (including Debian) + use. An effect of the above changeset, as verified by strace, is that + the read() and write() system calls issued by flex on a pipe will use + this bigger size. fread() appears to be properly hiding the actual + read size and is returning 8192 byte buffers to flex upon request. I + verified by this by instrumenting YY_INPUT to compare the fread data + with the original input file. + + Its probably useful to note that the corruption happening here is that + the last 382 lines of the input file is being prefixed to the output + file. The only differences in the remainder of the file are the #line + numbers. I've also found that bumping YY_READ_BUF_SIZE up to 16384 + seems to workaround the problem - but that may just be putting it back + into hiding. + + The tradeoff here is between correct operation, by making flex's + buffer at least as big as the system buffer -- and not bigger, so that + we do not waste memory. At this point, fixing the isue seems more + important than worrying that flex consumes and additional 8KB of + memory. + + This fix unblocks RC bugs on other packages. + + Bug fix: "Generates broken output on ia64 when input is piped vs. shell + redirection", thanks to Chris Lamb. Fix based on comments by Dann + Frazier and Michael Casadevall. (Closes: #501960) + * [56ec97d] Fix doxygen comments to reflect actual argument name + Fix the comments to reflect the actual name of the function + arguments. This is a pure documentation fix. + Bug fix: "argument 'bytes' of command @param is not found in + the argument list of tp_scan_bytes(yyconst char *yybytes, int + _yybytes_len)", thanks to Ludovic Rousseau (Closes: #488272). + * [303084a] Merge branch 'topic--buffer-size-patch' [f6cc9ae] Narrow + buffer size changes to just IA64 + + -- Manoj Srivastava Wed, 19 Nov 2008 22:42:17 -0600 + +flex (2.5.35-2) unstable; urgency=low + + * Record the fact that this package has moved to a new git repository. + * Move to the new, make -j friendly targets in debian/rules. + * Bug fix: "/usr/share/doc/flex-doc/.dhelp spoils purge", thanks to Dan + Jacobson (Closes: #427524). + * Bug fix: "flex-doc: bad webpage reference", thanks to Elizabeth Barham + I could not find any references to lex.sf.net (Closes: #439172). + + -- Manoj Srivastava Mon, 02 Jun 2008 11:54:55 -0500 + +flex (2.5.35-1) unstable; urgency=low + + * New upstream release, Mostly fixes made in NMU in Debian, plus a few + translation updates. + * NEWS: add date of release + * NEWS, parse.y: fix bug that prevented comments from working + properly + * po/de.po: new de translation + * NEWS, po/vi.po: new vi translation + * NEWS, po/nl.po: new nl translation + * NEWS, po/pl.po: new pl translation + * NEWS, po/de.po, po/pt_BR.po: new de, pt_br translations + * NEWS, flex.skl: generate headers for all functions (resolves bug + #1628314) + * NEWS, flex.skl: change yy_size_t to be size_t (resolves bug + #1849812) + * configure.in: start work on version 2.5.35 + * NEWS, configure.in: revert NEWS and configure.in to version + * NEWS, configure.in: update version number to 2.5.35 + * tests/test-alloc-extra/scanner.l: Use %option extra-type. + * NEWS, flex.skl, flexdef.h, main.c, parse.y, scan.l, + doc/flex.texi: Introduce %option extra-type="your_type *" (resolves + bug #1744505). + * po/nl.po: new nl translations from the translation project + * Bug fix: "flex: new lint in YY_INPUT definition", thanks to Larry + Doolittle. Closes: #466793 + * Bug fix: "flex: limits of integral types are always defined", thanks + to Jean-Baptiste Note. It is true that the limits are defined by the + standard, and present in stdint.h, and so flex should not define them + on C99 systems, Closes: #443559 + + -- Manoj Srivastava Tue, 18 Mar 2008 21:05:33 -0500 + +flex (2.5.34-3) unstable; urgency=low + + * NMU ack. No changes since the last upload. Fix: "2.5.34-2.1 NMU diff", + thanks to Sergei Golovan. Closes: Bug#465071 + + -- Manoj Srivastava Mon, 18 Feb 2008 15:29:27 -0600 + +flex (2.5.34-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Fixed a bug in parser with incorrectly added character to a ccl + (closes: #464659). + + -- Sergei Golovan Sun, 10 Feb 2008 13:47:32 +0300 + +flex (2.5.34-2) unstable; urgency=low + + * Flex set yy_size_t to unsigned int; and used it where size_t was + needed, which, or course, failed on amd64 architectures. Since ANSI C + has declared size_t to be available in standard C headers since 1989, + which is 19 _years_ ago, I suspect we can start depending on size_t to + be around and set correctly -- especially on Debian. + + -- Manoj Srivastava Thu, 07 Feb 2008 15:26:54 -0600 + +flex (2.5.34-1) unstable; urgency=low + + * New upstream release. This version has incorporated every single + feature and bug fix carried around by Debian, and thus all feature + branches are now sealed and merged back. Closes: #462196 + * Since the version from which flex asks the question about upgrades was + released in 2003, it is time to retire the debconf question. So, the + debconf question is now gone, which means that all the translations of + the debconf translations are not required. Closes: Bug#448106, Bug#445744 + Also closes: #448579, #448580, #448660, #449183, #449266, #449446, #450958 + Closes: #451184, #453412 + + -- Manoj Srivastava Thu, 07 Feb 2008 01:12:19 -0600 + +flex (2.5.33-12) unstable; urgency=low + + * Bug fix: "flex: FTBFS if built twice in a row", thanks to Bernd + Zeimetz (Closes: #424274). + + -- Manoj Srivastava Wed, 16 May 2007 15:09:59 -0500 + +flex (2.5.33-11) unstable; urgency=low + + * Bug fix: "flex: [INTL:es] Spanish po-debconf translation", thanks to + César Gómez Martín (Closes: #402235). + + -- Manoj Srivastava Thu, 18 Jan 2007 20:31:42 -0600 + +flex (2.5.33-10) unstable; urgency=low + + * Remove trailing ; from libfl.so script. + + -- Manoj Srivastava Mon, 23 Oct 2006 23:50:43 -0500 + +flex (2.5.33-9) unstable; urgency=low + + * Install a version of libfl.so that is recognixed as a ld script but ld. + + -- Manoj Srivastava Tue, 12 Sep 2006 03:35:33 -0500 + +flex (2.5.33-8) unstable; urgency=low + + * Also install libfl.so + + -- Manoj Srivastava Mon, 11 Sep 2006 13:30:07 -0500 + +flex (2.5.33-7) unstable; urgency=low + + * Typo fix in changelog. We started providing libfl_pic.a in the + previous upload, not sev3eral years ago, and the name of the static + library compiled with position independent code is libfl_pic.a. + + -- Manoj Srivastava Thu, 7 Sep 2006 20:10:40 -0500 + +flex (2.5.33-6) unstable; urgency=low + + * Starting with version 2.5.33-6 of flex we have started providing + a static library compiled with position independent code, namely, + libfl_pic.a. The problem is with packages that contain share + libraries with a flex scanner compiled in. Since flex generates code + that is not self contained, and the missing symbols live in + libfl.a. However, since linking a shared library with a object + containing non position independent code stopped working with gcc 4.1 + (apparently, it was sheer luck that it worked at all). So now we also + provide libfl_pic.a for shared library packages to link with. + + An alternative would have been to provide a full fledged + shared library, but that would have been a major break with upstream + and other distributions that also have flex, and would entail + creating new library and devel packages for flex, which is more work + that seems justified (considering that we would have to maintain the + fork, and keep track of any ABI changes, and all that). + + * Bug fix: "flex: [INTL:ru] Russian debconf templates translation", + thanks to Yuri Kozlov (Closes: #382402). + * Started adding md5sums of the package, since dpkg is not ever likely + to directly support this. + + -- Manoj Srivastava Tue, 5 Sep 2006 22:50:29 -0500 + +flex (2.5.33-5) unstable; urgency=low + + * Bug fix: "[INTL:lt] Lithuanian debconf translation", thanks to + Gintautas Miliauskas (Closes: #381235). + * Bug fix: "flex: warning in generated code", thanks to Martin + Michlmayr. Apply the patch from Bug#359127 to skel.c (Closes: #379763). + + -- Manoj Srivastava Sun, 6 Aug 2006 00:28:41 -0500 + +flex (2.5.33-4) unstable; urgency=low + + * Bug fix: "Spelling mistake in package description", thanks to Simon + Waters. reenterant -> reentrant (Closes: #363415). + * Bug fix: "flex [INTL:pt] Portuguese translation for debconf messages", + thanks to Miguel Figueiredo (Closes: #362984). + + -- Manoj Srivastava Wed, 3 May 2006 13:11:58 -0500 + +flex (2.5.33-3) unstable; urgency=low + + * Bug fix: "cannot purge", thanks to Sebastian Rittau. Fix the package + name var in doc.postrm (Closes: #357525). + * Bug fix: "flex: project web page location doesn't work", thanks to + Martin Dorey. The sourceforge project name was changed from lex to + flex recently. (Closes: #357515). + * Updated copyright file as well, and updated the years for the + copyright. + * Please note that the CVE-2006-0459 bug with buffer overflows in + parsers generated with REJECT rules and/or trailing contexts does not + apply to flex 2.5.33 + * Bug fix: "incorrect catalan translation", thanks to Carles Pina i + Estany (Closes: #359876). + * Bug fix: "flex: comparison between signed and unsigned in generated + scanner", thanks to Russ Allbery (Closes: #359127). + + -- Manoj Srivastava Tue, 11 Apr 2006 10:12:51 -0500 + +flex (2.5.33-2) unstable; urgency=low + + * Bug fix: "flex - FTBFS: /build/buildd/flex-2.5.33/missing: line 46: + flex: command not found", thanks to Bastian Blank. Hmm. Updatimg + md5sum, thanks to some analysis by Kurt Roeckx (Closes: #354552). + + -- Manoj Srivastava Sun, 5 Mar 2006 11:38:34 -0600 + +flex (2.5.33-1) unstable; urgency=low + + * New upstream release. + ** all flex resources are now to be found from the website at + http://flex.sourceforge.net/ + ** there was no release 2.5.32 published + ** numerous bug and security fixes + ** new nl, vi, sv, ro, po, ga, ca, fr, tr translations from the + translation project + ** upgrade to use gettext 0.12 (this now makes the "pdf" and "ps" + targets in the build system able to be run successfully) + + -- Manoj Srivastava Sun, 26 Feb 2006 20:53:27 -0600 + +flex (2.5.31-38) unstable; urgency=low + + * Bug fix: "flex_2.5.31-36(powerpc/unstable): FTBFS: ", thanks to Ryan + Murray. Since we already use MAINTAINER_MODE, there was no help there. + As a last resort, always touch scan.c if we do not find flex. + (Closes: #343355). + * Bug fix: "flex: [INTL:da] Danish debconf translation", thanks to Claus + Hindsgaul (Closes: #353900). + * Bug fix: "flex: Space leak in C++ scanner", thanks to Vincent Zweije + This may be a partial fix, but it seems to be good enough. + (Closes: #233215). + + -- Manoj Srivastava Sat, 25 Feb 2006 00:53:07 -0600 + +flex (2.5.31-37) unstable; urgency=low + + * the source code has an '#ifdef HAVE_LOCALE_H' but forgets to actually + check for locale.h in configure. The report and patch thanks to Mike + Frysinger. + + -- Manoj Srivastava Tue, 7 Feb 2006 21:23:54 -0600 + +flex (2.5.31-36) unstable; urgency=low + + * Bug fix: "flex: doxygen warning: argument `str' of command @param is + not found in the argumentlist", thanks to Ludovic Rousseau + (Closes: #320134). + * Bug fix: "flex generates a C file with improper macro defn; broke + Bison 2.1", thanks to Paul Eggert. Well, even though it is legal C99 + to have empty arguments in macros (so it is legal to call a macro + taking one argument with no arguments), it was not legal C89 -- + therefore, emit tqo different macros, with and without arguments -- to + cater to users running obsolete compilers. (Closes: #333231). + + -- Manoj Srivastava Sun, 23 Oct 2005 14:59:05 -0500 + +flex (2.5.31-35) unstable; urgency=low + + * Bug fix: "yy_init_globals in header file", thanks to Oskar Liljeblad + (Closes: #322628). + * Bug fix: "flex: [INTL:sv] Swedish debconf templates translation", + thanks to Daniel Nylander (Closes: #333321). + * Bug fix: "Please provide flex++ symlink", thanks to Will Newton + (Closes: #318347). + + -- Manoj Srivastava Thu, 20 Oct 2005 23:50:37 -0500 + +flex (2.5.31-34) unstable; urgency=low + + * Bug fix: "FTBFS: Cannot install HTML documentation", thanks to Matt + Kraai (Closes: #317856). + * Bug fix: "flex: doxygen warning: argument `str' of command @param is + not found in the argumentlist", thanks to Ludovic Rousseau + (Closes: #320134). + * Bug fix: "[INTL:nl] Upstream Dutch programs translation", thanks to + Luk Claes (Closes: #321080). + + -- Manoj Srivastava Mon, 8 Aug 2005 00:17:33 -0500 + +flex (2.5.31-33) unstable; urgency=low + + * Bug fix: "flex does not report errors to write", thanks to Bernhard + R. Link. Thanks for the patch (checks flcose and ferror return values) + (Closes: #317117). + + -- Manoj Srivastava Sun, 10 Jul 2005 02:06:29 -0500 + +flex (2.5.31-32) unstable; urgency=low + + * Bug fix: "INTL:vi", thanks to Clytie Siddall (Closes: #311651). + * Bug fix: "[l10n] Initial Czech translation of flex debconf messages", + thanks to Miroslav Kure (Closes: #308062). + * Bug fix: "flex: Some members that should be const aren't", thanks to + Frank B. Brokken Some members as defined in FlexLexer.h are + accessors, and should be defined as `const' members, since not doing + so causes problems when calling these member functions on a const + object. (Closes: #287256). + + -- Manoj Srivastava Thu, 7 Jul 2005 17:22:23 -0500 + +flex (2.5.31-31) unstable; urgency=low + + * New program translation. + * Bug fix: "[INTL:nl] new dutch program translations", thanks to Luk + Claes (Closes: #283979). + + -- Manoj Srivastava Thu, 2 Dec 2004 13:17:03 -0600 + +flex (2.5.31-30) unstable; urgency=medium + + * This is a couple of lines fixed, and does not actually touch any code + -- just build instructions -- and allows for cross building + * Bug fix: "flex: [PATCH] cross build", thanks to NIIBE Yutaka + (Closes: #283075). + + -- Manoj Srivastava Fri, 26 Nov 2004 21:22:59 -0600 + +flex (2.5.31-29) unstable; urgency=low + + * At popular request, error out if scan.l has been updated rather than + depend on ourselves. + + -- Manoj Srivastava Wed, 17 Nov 2004 17:42:16 -0600 + +flex (2.5.31-28) unstable; urgency=high + + * This is a FTBS bug, after all. This should probably flow through to + testing. + * Bug fix: "flex: FTBFS: scan.l needs rebuild?", thanks to Kurt Roeckx + Added a build depends on flex. (Closes: #256532). + * Bug fix: "XSI:ism `-o' in debian-scripts", thanks to David Weinehall + (Closes: #261478). + * Bug fix: "flex: documentation typo (`}' instead of `{')", thanks to + Dmitry Rutsky (Closes: #267496). + * Bug fix: "[INTL:nl] New Dutch po-debconf translation", thanks to Luk + Claes (Closes: #263726). + + -- Manoj Srivastava Fri, 12 Nov 2004 21:28:58 -0600 + +flex (2.5.31-27) unstable; urgency=low + + * Refreshed the auto-tools generated files + * Bug fix: "flex: scan.l needs rebuild?", thanks to Kurt Roeckx + (Closes: #256532). + + -- Manoj Srivastava Thu, 22 Jul 2004 10:20:38 -0500 + +flex (2.5.31-26) unstable; urgency=low + + * Removed the old dwww/menu entry. Now we use the preferred doc-base + registration method. + + -- Manoj Srivastava Wed, 23 Jun 2004 00:44:20 -0500 + +flex (2.5.31-25) unstable; urgency=low + + * Bug fix: "flex: Please add German translation of the debconf + templates", thanks to Erik Schanze (Closes: #252726). + * Bug fix: "flex: Suspicious texinfo markup tags in info manual", thanks + to Tommi Vainikainen (Closes: #254832). + + -- Manoj Srivastava Tue, 22 Jun 2004 19:37:32 -0500 + +flex (2.5.31-24) unstable; urgency=low + + * Bug fix: "flex: [INTL:fr] French translation of debconf templates", + thanks to Denis Barbier (Closes: #242636). + + -- Manoj Srivastava Sat, 10 Apr 2004 10:58:36 -0500 + +flex (2.5.31-23) unstable; urgency=low + + * Bug fix: This time, really really "flex: Typo in long description: + 'setrs' instead of 'sets'", thanks to Philip Miller (Closes: #226335). + + -- Manoj Srivastava Fri, 2 Apr 2004 10:42:09 -0600 + +flex (2.5.31-22) unstable; urgency=low + + * Moved over to po-debconf + * Bug fix: "flex: Typo in long description: 'setrs' instead of 'sets'", + thanks to Philip Miller (Closes: #226335). + + -- Manoj Srivastava Sun, 22 Feb 2004 00:13:35 -0600 + +flex (2.5.31-21) unstable; urgency=low + + * FTBFS: missing build-depends. Bah. The buildd's do not respect + Build-Depends-Indep. Duplicated the dependency into Build-Depends as a + workaround for this buildd flaw. (Closes: #224117). + + -- Manoj Srivastava Tue, 23 Dec 2003 14:52:43 -0600 + +flex (2.5.31-20) unstable; urgency=low + + * Bug fix: "flex.1.gz has disappeared, leaving dangling symlinks", + thanks to Aaron M. Ucko. This was a casualty of moving to the new + build system; the man page was being installed in + /usr/share/man/man1/man1/flex.1.gz (Closes: #223071). + + -- Manoj Srivastava Sat, 6 Dec 2003 11:28:18 -0600 + +flex (2.5.31-19) unstable; urgency=low + + * Thanks to a patch pointed out to me by Patrick Dreker, found on + http://sourceforge.net/tracker/index.php?func=detail&aid=829996&group_id=72099&atid=533379 + Bug fix: "flex: truncated output breaks wine build", thanks to Greg + Wooledge (Closes: #188872). + * Moved to the branch new build system, made possible by moving to arch + as a SCM. + + -- Manoj Srivastava Fri, 5 Dec 2003 00:16:54 -0600 + +flex (2.5.31-18) unstable; urgency=low + + * Bug fix: "flex: package issues invalid command to dpkg", thanks to + Jonathan Brandmeyer. The problem was in the config file; since it + assumed that $2 was always going to be installed version. Obviously, + on a fresh install, there is no installed version; and hence nothing + to send to dpkg --compare-versions. In this case, we refrain from + asking the question if "$2" is an empty string. (Closes: #219185). + + -- Manoj Srivastava Tue, 11 Nov 2003 01:31:06 -0600 + +flex (2.5.31-17) unstable; urgency=low + + * Thanks to a patch from Joey Hess, we now use debconf to ask the + preinst question. closes: Bug#216457 + + -- Manoj Srivastava Fri, 31 Oct 2003 21:53:16 -0600 + +flex (2.5.31-16) unstable; urgency=low + + * Flex used to reset LC_MESSAGES, but not LC_TYPE, which resulted in + output without any non ascii characters. Now reset LC_TYPE as well. + closes: Bug#212571 + * make sure that we strip as much as lintian wants, unless nostrip is + set. + + -- Manoj Srivastava Wed, 24 Sep 2003 09:53:23 -0500 + +flex (2.5.31-15) unstable; urgency=low + + * AAAArrgh. Set AM_MAINTAINER_MODE in configure.in and regenerated all + auto* files. hopefully things shall no longer break with every minor + version change in autoconf. closes: Bug# 212355 + + -- Manoj Srivastava Tue, 23 Sep 2003 11:21:06 -0500 + +flex (2.5.31-14) unstable; urgency=low + + * ISO C 1999 says that `inttypes.h' includes `stdint.h', so there's no + need to include `stdint.h' separately in a hosted environment. And, + in any case, whenever we used to include stdint.h, we also included + inttypes.h. closes: Bug#209197 + + -- Manoj Srivastava Mon, 8 Sep 2003 17:59:17 -0500 + +flex (2.5.31-13) unstable; urgency=low + + * Fixed usage of chown root.root in the rules files. + * Refreshed config.sub, config.guess. + * removed acinclude.m4, since it was ancient and rpevented autoconf from + running. + + -- Manoj Srivastava Mon, 1 Sep 2003 14:33:12 -0500 + +flex (2.5.31-12) unstable; urgency=low + + * changed the implementation of the yy_scan_string function to use + yy_str, as stated in the declaration, so as to allow users access to + the string "str" in #defines. I am not completely happy with this fix, + since there are other variables that may also pollute the #define name + space, but going through and modifying them all would be a significant + departure from upstream code; and I'm going to wait until someone + complains. closes: Bug#198200 + * Added a reference to flex-old in the package description, mentioning + the changes in this version of flex. + * Added a warning and a question in the preinst if upgrading from an old + version of flex. + + -- Manoj Srivastava Sun, 6 Jul 2003 03:41:58 -0500 + +flex (2.5.31-11) unstable; urgency=low + + * Added a build depends on help2man + + -- Manoj Srivastava Thu, 29 May 2003 23:31:57 -0500 + +flex (2.5.31-10) unstable; urgency=low + + * Fixed an extraneous #endif in main.c, which caused gcc to barf. + + -- Manoj Srivastava Thu, 29 May 2003 01:01:10 -0500 + +flex (2.5.31-9) unstable; urgency=low + + * Well, since removing stdint.h inclusion does not fix IA64 breakage, + and including the header since we need it does seem to be the right + thing to do, and it does closes: Bug#191168 + * In filter.c, after a fork, we try to reinit the standard stream + pointers stdin, stdout, and stderr -- which is a bug, since the macros + stdin, stdout, and sterr may not be modifiable lvalues (C99 says they + nmeed not be modifuable). This is also pointless, since POSIX + guarantees that the child inherits the streams from the parent. There + are no test failures from thie fix. closes: Bug#194844 + * Fixed the generation of non ansi function definiton macros to include + a \, so that the parameters do not default to int (they are actually + pointers to structs), which makes the test fail on machines where ints + and pointers are a different size. closes: Bug#191672 + + -- Manoj Srivastava Tue, 27 May 2003 13:44:37 -0500 + +flex (2.5.31-8) unstable; urgency=low + + * Added a patch from Bastian Kleineidam fixinf nounbistd option. + closes: Bug#193317 + + -- Manoj Srivastava Fri, 16 May 2003 15:43:46 -0500 + +flex (2.5.31-7) unstable; urgency=low + + * remove /* in a comment, since it creates warnings under -Wall, Hit a + lot of people. closes: Bug#192450, Bug#192763, Bug#192244 + + -- Manoj Srivastava Tue, 13 May 2003 00:55:40 -0500 + +flex (2.5.31-6) unstable; urgency=low + + * revert adding stdint.h to the 'standard C headers'since using stdint.h + macros on IA64, rather than our own, breaks things. closes: Bug#191672 + + -- Manoj Srivastava Fri, 2 May 2003 15:15:32 -0500 + +flex (2.5.31-5) unstable; urgency=low + + * Updated the new download location in the copyright file. closes: Bug#191157 + * add stdint.h to the 'standard C headers' to prevent warnings for + redefinitions ofUINTN_MAX macros. (Makes sense, since the standard + defines that these macros are defined in stdint.h closes: Bug#191168 + + -- Manoj Srivastava Fri, 2 May 2003 11:06:06 -0500 + +flex (2.5.31-4) unstable; urgency=low + + * Fix flex info files; closes: Bug#190903, Bug#189963 + + -- Manoj Srivastava Sun, 27 Apr 2003 19:01:29 -0500 + +flex (2.5.31-3) unstable; urgency=low + + * Fix the broken flex -l scanner generation. closes: Bug#188665 + + -- Manoj Srivastava Mon, 14 Apr 2003 03:27:05 -0500 + +flex (2.5.31-2) unstable; urgency=low + + * Ensure that the man page gets to the right location. + closes: Bug#188751, Bug#188505 + * Note that flex now requires m4 + * The behaviour of flex has changed in the latest release, yes. This is + part of the gcc migration process; flex has been updated (the buggy, + rickety set of patches required to make it work with gcc was dumped in + favour of a well engineered upstream migration) + * As you may see, flex scanners have become reentrant, the c++ versions + are compatible with recent c++ compilers (conform to ANSI C++, gcc + 3.2), supports bison variables yylval and yylloc. Some variables have + been renamed. Flex generates C99 defs now; see + YY_TRADITIONAL_FUNC_DEFS yylineno is present in all scanners. yylineno + is per-buffer in reentrant scanners. flex tries its best to output + only the relevant portions of the skeleton when generating a scanner, + thus avoiding as much conditional compilation as possible + * non ansi mode was broken (this only shows up on machines where + pointers and ints are not the same size). closes: Bug#188813 + + -- Manoj Srivastava Sun, 13 Apr 2003 14:29:47 -0500 + +flex (2.5.31-1) unstable; urgency=low + + * New upstream release. + + -- Manoj Srivastava Wed, 9 Apr 2003 14:12:18 -0500 + +flex (2.5.4a-33) unstable; urgency=low + + * Continuing the process of gcc 3.2.x compatribility. closes: Bug#185714 + + -- Manoj Srivastava Fri, 21 Mar 2003 13:00:19 -0600 + +flex (2.5.4a-32) unstable; urgency=low + + * There was a blank line in initscan.c that made it impossible to build + on buildds. closes: Bug#185772 + + -- Manoj Srivastava Fri, 21 Mar 2003 12:34:13 -0600 + +flex (2.5.4a-31) unstable; urgency=low + + * Make flexlexer have the std:: prefix closes: Bug#181670, Bug#180446 + * Fix flex.skl closes: Bug#184393 + + -- Manoj Srivastava Fri, 21 Mar 2003 00:57:21 -0600 + +flex (2.5.4a-30) unstable; urgency=low + + * FlexLexer.h now include iostream, not iostream.h. + closes: Bug#173943, Bug#180051 + * Fix broken printf format closes: Bug#174350 + * The behaviour of flex was different based on what order options were + specified: option nomain before option noyywrap caused one set of + behaviours, reversing the order changes the behavious, since nomain + seemed to reset noyywrap. This was fixed in scanl. and initscan.c. + closes: Bug#174259 + + -- Manoj Srivastava Sun, 9 Feb 2003 13:38:32 -0600 + +flex (2.5.4a-29) unstable; urgency=low + + * No longer provide /usr/doc link. Upgrade to latest policy version. + + -- Manoj Srivastava Mon, 11 Nov 2002 23:17:14 -0600 + +flex (2.5.4a-28) unstable; urgency=low + + * Anotrher patch from Alexander Klauer, this one fixes a print format + problem. closes: Bug#161101 + + -- Manoj Srivastava Tue, 29 Oct 2002 17:35:13 -0600 + +flex (2.5.4a-27) unstable; urgency=low + + * Fix a flex segfult on very long lines. Many thanks to Alexander + Klauer for detecting this bug and finding the + fix. closes: Bug#158518 + * The package seems to build from sources on i386. closes: Bug#159547 + + -- Manoj Srivastava Wed, 4 Sep 2002 19:24:56 -0500 + +flex (2.5.4a-26) unstable; urgency=low + + * use which instead of command -v + * Fixed a problem with locales in flex. Many thanks to + witchery@www.oz.or.kr and unichi Uekawa for + discovering the problem, and patiently leading me through to a point + that I could actually reproduce the proble, and test the patch + provided by witchery@www.oz.or.kr. closes: Bug#147627 + + -- Manoj Srivastava Mon, 27 May 2002 02:09:28 -0500 + +flex (2.5.4a-25) unstable; urgency=high + + * In this version of flex, the first YYPROTO usage appears before the + definition of YYPROTO if _WIN32 is defined. Not so good. One should be + able to generate portable lexers with flex. closes: Bug#145237 + + -- Manoj Srivastava Tue, 30 Apr 2002 12:53:45 -0500 + +flex (2.5.4a-24) unstable; urgency=low + + * Well, the symbol is really _WIN32. + * Added clarifications about %option stdin to the flex man page (some + wording taken from CVS). + + -- Manoj Srivastava Sun, 17 Mar 2002 10:32:13 -0600 + +flex (2.5.4a-23) unstable; urgency=low + + * Hmm. For non POSIX systems (well, where _Win32 is defined) where + unistd.h is not available, use the old isatty prototype. + + -- Manoj Srivastava Wed, 6 Feb 2002 16:33:39 -0600 + +flex (2.5.4a-22) unstable; urgency=low + + * Interactive lexers were broken by the fic to handle interrupted + reads. closes: Bug#131242 + + -- Manoj Srivastava Mon, 28 Jan 2002 12:21:40 -0600 + +flex (2.5.4a-21) unstable; urgency=low + + * Hmm. Run aclocal on the acinclude file first. + + -- Manoj Srivastava Fri, 25 Jan 2002 16:52:23 -0600 + +flex (2.5.4a-20) unstable; urgency=low + + * Add a build depends for autotconf, needed now that we make changes to + the script. closes: Bug#130703 + + -- Manoj Srivastava Thu, 24 Jan 2002 16:32:25 -0600 + +flex (2.5.4a-19) unstable; urgency=low + + * For machines that do not use the GNU libc (and thus, does not have + gettext as part of the libc), flex failed to compile. The grep package + has a macro to handle exactly this situation, elegantly, which is + labelled as available for public use, in it's aclocal.m4 file. This + version of flex uses that. Many thanks to Joel Baker + for discovering and testing this fix. + closes: Bug#130220 + + -- Manoj Srivastava Thu, 24 Jan 2002 10:07:16 -0600 + +flex (2.5.4a-18) unstable; urgency=low + + * Make sure that unistd.h is actually included, since we no longer + provide a prototype for isatty. closes: Bug#97131 + + -- Manoj Srivastava Sun, 13 Jan 2002 01:02:26 -0600 + +flex (2.5.4a-17) unstable; urgency=medium + + * AAArgggh. Fix a missing open brace in the generated YY_INPUT, Many + thanks to Bruce Stephens for catching these quickly. + + -- Manoj Srivastava Thu, 10 Jan 2002 13:14:35 -0600 + +flex (2.5.4a-16) unstable; urgency=medium + + * Fix a missing \ in the generated YY_INPUT macro. closes: Bug#128412 + * Fix buggy isatty prototype by not actually including a prototype (we + include the relevant header file, after all. closes: Bug#97131 + + -- Manoj Srivastava Wed, 9 Jan 2002 11:51:12 -0600 + +flex (2.5.4a-15) unstable; urgency=low + + * if a signal is delivered while the parser is in the read routine + (coded by flex), the result is flex reports and YY_FATAL_ERROR causing + plan to exit. The race condition appears much more frequently than + one might expect because plan spends a good deal of time in read + routine while gcc is preparing the input. I cleaned up another problem + case beyond what is given in the patch. closes: Bug#125611 + * flex -o "ddd" doesn't write to the file "ddd", instead it tries to + write to the file "" (yes, blank) and read from "ddd". I changed the + main.c to use the next arg as the output file name if the next arg + does not start with a -. closes: Bug#122581 + + -- Manoj Srivastava Sun, 6 Jan 2002 05:12:37 -0600 + +flex (2.5.4a-14) unstable; urgency=low + + * The flex-doc menu entry (/usr/lib/menu/flex-doc) contains some + unquoted double quotes in its extended description, and these needed + to be quoted so as not to confuse update menu. (why did it not + generate an error?) closes: Bug#105272 + * The version 2.5.4a-12 was duplicated work with the previous maintainer + (and I take the blame for the lack of communication). I have also + managed to mosplace the changelog entry ;-( + + -- Manoj Srivastava Tue, 17 Jul 2001 17:50:25 -0500 + +flex (2.5.4a-13) unstable; urgency=low + + * I took over flex, and have brought the rules and pre/post inst files + into line with my conventions. + * flex generates c++ that does not use istream and ostream from the + "std" namespace, so compilation of generated code fails. closes: Bug#104067 + Please note that this duplicates and replaces the work done in 2.5.4a-12 + + -- Manoj Srivastava Thu, 12 Jul 2001 15:48:24 -0500 + +flex (2.5.4a-12) unstable; urgency=low + + * Generate c++ which uses istream and ostream from the "std" namespace + for g++-3.0. Patch by Dale E. Martin (Closes: #104067). + * Registered HTML docs using doc-base. + + -- Santiago Vila Thu, 12 Jul 2001 14:21:18 +0200 + +flex (2.5.4a-11) unstable; urgency=low + + * Added i18n support. Build-Depends: gettext. Closes: #46838. + Thanks to Changwoo Ryu . + * Fixed formatting error in flex(1). Closes: #90284. + Thanks to Colin Watson . + + -- Santiago Vila Sun, 25 Mar 2001 14:07:51 +0200 + +flex (2.5.4a-10) unstable; urgency=low + + * Changed @section by @chapter to make texi2html happy. + Patch by Gordon Sadler . Closes: #84780. + * Build-Depends-Indep: texi2html. Closes: #87689. + * Build-Depends: texinfo, since .texi is now modified. + + -- Santiago Vila Mon, 26 Feb 2001 20:16:54 +0100 + +flex (2.5.4a-9) unstable; urgency=low + + * Fixed manpage again. Additional patch by the author. + + -- Santiago Vila Fri, 1 Dec 2000 19:58:41 +0100 + +flex (2.5.4a-8) unstable; urgency=low + + * Added missing bracket in flex manpage (Closes: Bug#68941). + + -- Santiago Vila Sat, 19 Aug 2000 16:56:22 +0200 + +flex (2.5.4a-7) unstable; urgency=low + + * Updated upstream source URL (Closes: Bug#67233). + * Standards-Version: 3.1.1. + * Build-Depends: bison. + + -- Santiago Vila Fri, 4 Aug 2000 13:04:28 +0200 + +flex (2.5.4a-6) unstable; urgency=low + + * Applied a patch by Kristoffer Rose for large flex tables. + + -- Santiago Vila Tue, 7 Dec 1999 17:52:01 +0100 + +flex (2.5.4a-5) unstable; urgency=low + + * Fixed Bug #47860: flex segfaults. Patch by the author. + + -- Santiago Vila Wed, 10 Nov 1999 11:44:06 +0100 + +flex (2.5.4a-4) unstable; urgency=low + + * Recommends: c-compiler, instead of gcc (Bug #33937). + * Info unregistering done in prerm, not in postrm. + + -- Santiago Vila Fri, 5 Mar 1999 17:20:30 +0100 + +flex (2.5.4a-3) unstable; urgency=low + + * Added HTML docs, in a separate package. + + -- Santiago Vila Tue, 13 Oct 1998 21:14:28 +0200 + +flex (2.5.4a-2) unstable; urgency=low + + * Added a man page for flex++ (actually, a symlink to flex). + * ftp.gnu.org is FSF's new FTP site name. + * Compressed changelog.Debian. + * Removed debstd dependency. + + -- Santiago Vila Thu, 12 Mar 1998 20:25:09 +0100 + +flex (2.5.4a-1) unstable; urgency=low + + * New upstream release, using pristine untouched source. + * Removed the modified debstd from the source package now that the + standard one is fixed. + * First libc6 release. + + -- Santiago Vila Thu, 7 Aug 1997 19:15:34 +0200 + +flex (2.5.4-2) unstable; urgency=low + + * libfl.a stripped using strip -g, using a modified debstd which + is included in the Debian source package. + + -- Santiago Vila Thu, 13 Mar 1997 09:44:28 +0100 + +flex (2.5.4-1) unstable; urgency=low + + * Converted to Standards 2.1.2.2. + * New upstream version. + * Compiled with -D_REENTRANT. + * Added MD5 sums. + * New maintainer. + + -- Santiago Vila Sat, 22 Feb 1997 18:00:09 +0100 + + --- flex-2.5.35.orig/debian/doc.lintian.overrides +++ flex-2.5.35/debian/doc.lintian.overrides @@ -0,0 +1 @@ +flex-doc: description-synopsis-might-not-be-phrased-properly --- flex-2.5.35.orig/debian/lintian.overrides +++ flex-2.5.35/debian/lintian.overrides @@ -0,0 +1 @@ +flex: description-synopsis-might-not-be-phrased-properly --- flex-2.5.35.orig/debian/prerm +++ flex-2.5.35/debian/prerm @@ -0,0 +1,126 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# prerm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:16:39 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Thu Dec 4 02:36:25 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 10 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: a4c1a888-137d-4800-98f8-93d0365422d8 +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=flex + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + + +# This script is called as the first step in removing the package from +# the system. This includes cases where the user explicitly asked for +# the package to be removed, upgrade, automatic removal due to conflicts, +# and deconfiguration due to temporary removal of a depended-on package. + +case "$1" in + remove) + # This package about to be removed. + : + + # Remove package-specific directories from /usr/local. Don't try + # to remove standard directories such as /usr/local/lib. + ##: if test -d /usr/local/lib/${package_name}; then + ##: rmdir /usr/local/lib/${package_name} || true + ##: fi + + # Deactivate menu-methods script. + ##: chmod a-x /etc/menu-methods/${package_name} + + # Withdraw our version of a program. + ##: update-alternatives --remove program /usr/bin/alternative + + # Get rid of the installed docs + ##: if which install-docs >/dev/null 2>&1; then + ##: install-docs -r $package_name + ##: fi + + # Get rid of the byte compiled files + ##: if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then + ##: /usr/lib/emacsen-common/emacs-package-remove $package_name + ##: fi + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + # There are two sub-cases: + if test "${2+set}" = set; then + if test "$2" != in-favour; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # We are being removed because of a conflict with package $3 + # (version $4), which is now being installed. + : + + else + # The package is being removed in its own right. + : + + fi ;; + deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # Package $6 (version $7) which we depend on is being removed due + # to a conflict with package $3 (version $4), and this package is + # being deconfigured until $6 can be reinstalled. + : + + ;; + upgrade) + # Prepare to upgrade FROM THIS VERSION of this package to version $2. + : + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + ;; + failed-upgrade) + # Prepare to upgrade from version $2 of this package TO THIS VERSION. + # This is only used if the old version's prerm couldn't handle it, + # and returned non-zero. (Fix old prerm bugs here.) + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- flex-2.5.35.orig/debian/scan.l.md5sum +++ flex-2.5.35/debian/scan.l.md5sum @@ -0,0 +1 @@ +f44ac89c7b3395bc923204e728f80047 scan.l --- flex-2.5.35.orig/debian/doc.prerm +++ flex-2.5.35/debian/doc.prerm @@ -0,0 +1,121 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# prerm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:16:39 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Wed Dec 3 21:16:22 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 11 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: db831a44-6be7-472f-b41c-a10de13e2f47 +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=flex-doc + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + + +# This script is called as the first step in removing the package from +# the system. This includes cases where the user explicitly asked for +# the package to be removed, upgrade, automatic removal due to conflicts, +# and deconfiguration due to temporary removal of a depended-on package. + +case "$1" in + remove) + # This package about to be removed. + : + + # Remove package-specific directories from /usr/local. Don't try + # to remove standard directories such as /usr/local/lib. + ##: if test -d /usr/local/lib/${package_name}; then + ##: rmdir /usr/local/lib/${package_name} || true + ##: fi + + # Deactivate menu-methods script. + ##: chmod a-x /etc/menu-methods/${package_name} + + # Withdraw our version of a program. + ##: update-alternatives --remove program /usr/bin/alternative + + # Get rid of the byte compiled files + ##: if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then + ##: /usr/lib/emacsen-common/emacs-package-remove $package_name + ##: fi + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + # There are two sub-cases: + if test "${2+set}" = set; then + if test "$2" != in-favour; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # We are being removed because of a conflict with package $3 + # (version $4), which is now being installed. + : + + else + # The package is being removed in its own right. + : + + fi ;; + deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # Package $6 (version $7) which we depend on is being removed due + # to a conflict with package $3 (version $4), and this package is + # being deconfigured until $6 can be reinstalled. + : + + ;; + upgrade) + # Prepare to upgrade FROM THIS VERSION of this package to version $2. + : + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + ;; + failed-upgrade) + # Prepare to upgrade from version $2 of this package TO THIS VERSION. + # This is only used if the old version's prerm couldn't handle it, + # and returned non-zero. (Fix old prerm bugs here.) + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- flex-2.5.35.orig/debian/docentry +++ flex-2.5.35/debian/docentry @@ -0,0 +1,20 @@ +Document: flex-doc +Title: flex +Author: various +Abstract: Fast LEXical analyzer generator + Flex is a tool for generating programs that perform pattern-matching on + text. It generates "scanners": programs which recognized lexical + patterns in text. `flex' reads the given input files, or its + standard input if no file names are given, for a description of a + scanner to generate. The description is in the form of pairs of + regular expressions and C code, called "rules". `flex' generates as + output a C source file, `lex.yy.c', which defines a routine + `yylex()'. This file is compiled and linked with the `-lfl' library + to produce an executable. When the executable is run, it analyzes + its input for occurrences of the regular expressions. Whenever it + finds one, it executes the corresponding C code. +Section: Programming + +Format: HTML +Index: /usr/share/doc/flex-doc/html/index.html +Files: /usr/share/doc/flex-doc/html/*.html --- flex-2.5.35.orig/debian/libfl.shared_object +++ flex-2.5.35/debian/libfl.shared_object @@ -0,0 +1,23 @@ +/* GNU ld script + * -*- Mode: C -*- + * libfl.so --- + * Author : Manoj Srivastava ( srivasta@golden-gryphon.com ) + * Created On : Mon Sep 11 13:25:55 2006 + * Created On Node : glaurung.internal.golden-gryphon.com + * Last Modified By : Manoj Srivastava + * Last Modified On : Tue Sep 12 03:34:30 2006 + * Last Machine Used: glaurung.internal.golden-gryphon.com + * Update Count : 2 + * Status : Unknown, Use with caution! + * HISTORY : + * Description : + * + * GNU ld script + * When shared linking is requested, map the request to the PIC static + * library, which is the closest we come to a shared library here. + * + * arch-tag: ce35efb4-3893-42c7-bdcb-56d95beba2ac + */ + +INPUT( /usr/lib/libfl_pic.a ) + --- flex-2.5.35.orig/debian/local-vars.mk +++ flex-2.5.35/debian/local-vars.mk @@ -0,0 +1,103 @@ +############################ -*- Mode: Makefile -*- ########################### +## local-vars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 10:43:00 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Wed Dec 3 23:16:54 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 19 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 1a76a87e-7af5-424a-a30d-61660c8f243e +## +############################################################################### + +AUTOCONF_FILES = INSTALL Makefile.in aclocal.m4 conf.in config.guess \ + config.sub configure depcomp doc/Makefile.in \ + doc/mdate-sh doc/texinfo.tex examples/Makefile.in \ + examples/fastwc/Makefile.in examples/manual/Makefile.in \ + install-sh m4/Makefile.in missing mkinstalldirs \ + tests/Makefile.in tests/TEMPLATE/Makefile.in \ + tests/test-alloc-extra/Makefile.in \ + tests/test-array-nr/Makefile.in \ + tests/test-array-r/Makefile.in \ + tests/test-basic-nr/Makefile.in \ + tests/test-basic-r/Makefile.in \ + tests/test-bison-nr/Makefile.in \ + tests/test-bison-yylloc/Makefile.in \ + tests/test-bison-yylval/Makefile.in \ + tests/test-c++-basic/Makefile.in \ + tests/test-c++-multiple-scanners/Makefile.in \ + tests/test-c++-yywrap/Makefile.in \ + tests/test-c-cpp-nr/Makefile.in \ + tests/test-c-cpp-r/Makefile.in \ + tests/test-ccl/Makefile.in \ + tests/test-concatenated-options/Makefile.in \ + tests/test-debug-nr/Makefile.in \ + tests/test-debug-r/Makefile.in \ + tests/test-extended/Makefile.in \ + tests/test-header-nr/Makefile.in \ + tests/test-header-r/Makefile.in \ + tests/test-include-by-buffer/Makefile.in \ + tests/test-include-by-push/Makefile.in \ + tests/test-include-by-reentrant/Makefile.in \ + tests/test-linedir-r/Makefile.in \ + tests/test-lineno-nr/Makefile.in \ + tests/test-lineno-r/Makefile.in \ + tests/test-mem-nr/Makefile.in \ + tests/test-mem-r/Makefile.in \ + tests/test-multiple-scanners-nr/Makefile.in \ + tests/test-multiple-scanners-r/Makefile.in \ + tests/test-noansi-nr/Makefile.in \ + tests/test-noansi-r/Makefile.in \ + tests/test-posix/Makefile.in \ + tests/test-posixly-correct/Makefile.in \ + tests/test-prefix-nr/Makefile.in \ + tests/test-prefix-r/Makefile.in \ + tests/test-pthread/Makefile.in \ + tests/test-quotes/Makefile.in \ + tests/test-reject/Makefile.in \ + tests/test-rescan-nr/Makefile.in \ + tests/test-rescan-r/Makefile.in \ + tests/test-string-nr/Makefile.in \ + tests/test-string-r/Makefile.in \ + tests/test-table-opts/Makefile.in \ + tests/test-top/Makefile.in \ + tests/test-yyextra/Makefile.in tools/Makefile.in \ + po/Makevars.template ylwrap +FILES_TO_CLEAN = TAGS tags debian/files debian/substvars ChangeLog \ + flex.spec $(AUTOCONF_FILES) +STAMPS_TO_CLEAN = +DIRS_TO_CLEAN = doc/flex.html debian/stamp autom4te.cache + +# Location of the source dir +SRCTOP := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) +TMPTOP = $(SRCTOP)/debian/$(package) +LINTIANDIR = $(TMPTOP)/usr/share/lintian/overrides +DOCBASEDIR = $(TMPTOP)/usr/share/doc-base +MENUDIR = $(TMPTOP)/usr/share/menu + + +BINDIR = $(TMPTOP)$(PREFIX)/bin +LIBDIR = $(TMPTOP)$(PREFIX)/lib +MANDIR = $(TMPTOP)$(PREFIX)/share/man +DOCDIR = $(TMPTOP)$(PREFIX)/share/doc/$(package) +INFODIR = $(TMPTOP)$(PREFIX)/share/info +DOCTOP = $(TMPTOP)/usr/share/doc +MAN1DIR = $(MANDIR)/man1 +MAN3DIR = $(MANDIR)/man3 +MAN5DIR = $(MANDIR)/man5 +MAN7DIR = $(MANDIR)/man7 +MAN8DIR = $(MANDIR)/man8 + +define checkdir + @test -f debian/rules -a -f flexdef.h || \ + (echo Not in correct source directory; exit 1) +endef + +define checkroot + @test $$(id -u) = 0 || (echo need root priviledges; exit 1) +endef --- flex-2.5.35.orig/debian/control +++ flex-2.5.35/debian/control @@ -0,0 +1,44 @@ +Source: flex +VCS-Git: git://git.debian.org/~srivasta/debian/flex.git +VCS-Browser: http://git.debian.org/?p=users/srivasta/debian/flex.git +Section: devel +Homepage: http://flex.sf.net/ +Priority: optional +Build-Depends: bison, gettext, texinfo, help2man, file, po-debconf, + autoconf, automake | automaken, autopoint +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Manoj Srivastava +Standards-Version: 3.8.3.0 + +Package: flex +Architecture: any +Pre-Depends: debconf | debconf-2.0 +Depends: ${shlibs:Depends}, m4, dpkg (>= 1.15.4) | install-info +Recommends: gcc | c-compiler +Suggests: bison, build-essential +Multi-Arch: allowed +Description: A fast lexical analyzer generator. + Flex is a tool for generating scanners: programs which recognized lexical + patterns in text. It reads the given input files for a description of a + scanner to generate. The description is in the form of pairs of regular + expressions and C code, called rules. Flex generates as output a C source + file, lex.yy.c, which defines a routine yylex(). This file is compiled + and linked with the -lfl library to produce an executable. When the + executable is run, it analyzes its input for occurrences of the regular + expressions. Whenever it finds one, it executes the corresponding C code. + +Package: flex-doc +Section: doc +Priority: optional +Architecture: all +Description: Documentation for flex (a fast lexical analyzer generator). + Flex is a tool for generating scanners: programs which recognized lexical + patterns in text. It reads the given input files for a description of a + scanner to generate. The description is in the form of pairs of regular + expressions and C code, called rules. Flex generates as output a C source + file, lex.yy.c, which defines a routine yylex(). This file is compiled + and linked with the -lfl library to produce an executable. When the + executable is run, it analyzes its input for occurrences of the regular + expressions. Whenever it finds one, it executes the corresponding C code. + . + This package contains the HTML documentation for flex. --- flex-2.5.35.orig/debian/README +++ flex-2.5.35/debian/README @@ -0,0 +1,21 @@ + + Starting with version 2.5.31-18 of flex we have started providing + a static library compiled with position independent code, namely, + libfl_pic.a. The problem is with packages that contain shared + libraries with a flex scanner compiled in. Since flex generates code + that is not self contained, and the missing symbols live in + libfl.a. However, since linking a shared library with a object + containing non position independent code stopped working with gcc 4.1 + (apparently, it was sheer luck that it worked at all). So now we also + provide libfla_pic.a for shared library packages to link with. + + An alternative would have been to provide a full fledged + shared library, but that would have been a major break with upstream + and other distributions that also have flex, and would entail + creating new library and devel packages for flex, which is more work + that seems justified (considering that we would have to maintain the + fork, and keep track of any ABI changes, and all that). + + manoj + +arch-tag: 7421b315-d205-4e09-9a81-0fef07ba57b7 --- flex-2.5.35.orig/debian/postinst +++ flex-2.5.35/debian/postinst @@ -0,0 +1,223 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postinst --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 11:25:07 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Thu Dec 4 02:36:10 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 13 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 5401e9ef-39cc-4aee-96a4-61dfb8f32cf7 +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=flex + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called as the last step of the installation of the +# package. All the package's files are in place, dpkg has already done +# its automatic conffile handling, and all the packages we depend of +# are already fully installed and configured. +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +# The following idempotent stuff doesn't generally need protecting +# against being run in the abort-* cases. + +# Create stub directories under /usr/local +##: if test ! -d /usr/local/lib/${package_name}; then +##: if test ! -d /usr/local/lib; then +##: if mkdir /usr/local/lib; then +##: chown root.staff /usr/local/lib || true +##: chmod 2775 /usr/local/lib || true +##: fi +##: fi +##: if mkdir /usr/local/lib/${package_name}; then +##: chown root.staff /usr/local/lib/${package_name} || true +##: chmod 2775 /usr/local/lib/${package_name} || true +##: fi +##: fi + +# Ensure the menu system is updated +##: [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +# Arrange for a daemon to be started at system boot time +##: update-rc.d ${package_name} default >/dev/null + +# This package uses debconf to ask a question, so source the debconf +# confmodule as early as possible. However, it does not depend on debconf, +# so debconf may not be installed. +################################################# +# if [ -e /usr/share/debconf/confmodule ]; then # +# . /usr/share/debconf/confmodule # +# db_capb # +# fi # +################################################# + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. + # Install emacs lisp files + ##:if [ -x /usr/lib/emacsen-common/emacs-package-install ]; then + ##: /usr/lib/emacsen-common/emacs-package-install $package_name + ##:fi + + + # Activate menu-methods script + ##: chmod a+x /etc/menu-methods/${package_name} + + # Update ld.so cache + ##: ldconfig + + # Make our version of a program available + ##: update-alternatives \ + ##: --install /usr/bin/program program /usr/bin/alternative 50 \ + ##: --slave /usr/man/man1/program.1.gz program.1.gz \ + ##: /usr/man/man1/alternative.1.gz + + # Tell ucf that the file in /usr/share/foo is the latest + # maintainer version, and let it handle how to manage the real + # confuguration file in /etc. This is how a static configuration + # file can be handled: + ##:if which ucf >/dev/null 2>&1; then + ##: ucf /usr/share/${package_name}/configuration /etc/${package_name}.conf + ##:fi + + ### We could also do this on the fly. The following is from Tore + ### Anderson: + + #. /usr/share/debconf/confmodule + + ### find out what the user answered. + # db_get foo/run_on_boot + # run_on_boot=$RET + # db_stop + + ### safely create a temporary file to generate our suggested + ### configuration file. + # tempfile=`tempfile` + # cat << _eof > $tempfile + ### Configuration file for Foo. + + ### this was answered by you, the user in a debconf dialogue + # RUNONBOOT=$run_on_boot + + ### this was not, as it has a sane default value. + # COLOUROFSKY=blue + + #_eof + + ### Note that some versions of debconf do not release stdin, so + ### the following invocation of ucf may not work, since the stdin + ### is never coneected to ucfr. + + ### now, invoke ucf, which will take care of the rest, and ask + ### the user if he wants to update his file, if it is modified. + #ucf $tempfile /etc/foo.conf + + ### done! now we'll just clear up our cruft. + #rm -f $tempfile + + + + # There are three sub-cases: + if test "${2+set}" != set; then + # We're being installed by an ancient dpkg which doesn't remember + # which version was most recently configured, or even whether + # there is a most recently configured version. + : + + elif test -z "$2" || test "$2" = ""; then + # The package has not ever been configured on this system, or was + # purged since it was last configured. + : + + else + # Version $2 is the most recently configured version of this + # package. + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package FROM THIS VERSION + # to version $2. Undo the effects of "prerm upgrade $2". + : + + ;; + abort-remove) + if test "$2" != in-favour; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to remove this package, which was due to + # a conflict with package $3 (version $4). Undo the effects of + # "prerm remove in-favour $3 $4". + : + + ;; + abort-deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to deconfigure this package, which was + # due to package $6 (version $7) which we depend on being removed + # to make way for package $3 (version $4). Undo the effects of + # "prerm deconfigure in-favour $3 $4 removing $6 $7". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +# Install doc base documentation +##:if which install-docs >/dev/null 2>&1; then +##: if [ -e /usr/share/doc-base/${package_name} ]; then +##: install-docs -i /usr/share/doc-base/${package_name} +##: fi +##:fi + +exit 0 --- flex-2.5.35.orig/debian/local.mk +++ flex-2.5.35/debian/local.mk @@ -0,0 +1,185 @@ +############################ -*- Mode: Makefile -*- ########################### +## local.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 10:42:10 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Fri Oct 20 14:14:16 2006 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 48 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4 +## +############################################################################### + +testdir: + $(testdir) + +debian/stamp/pre-config-common: debian/stamp/conf/flex +debian/stamp/BUILD/flex: debian/stamp/build/flex +debian/stamp/INST/flex: debian/stamp/install/flex +debian/stamp/BIN/flex: debian/stamp/binary/flex + +debian/stamp/BUILD/flex-doc: debian/stamp/build/flex-doc +debian/stamp/INST/flex-doc: debian/stamp/install/flex-doc +debian/stamp/BIN/flex-doc: debian/stamp/binary/flex-doc + +CLN-common:: + $(REASON) + $(MAKE) clean -C po || true + rm -f doc/flex.info doc/flex.info-[0-9] doc/flex.info-[0-9][0-9] + +CLEAN/flex:: + -rm -rf $(TMPTOP) + +CLEAN/flex-doc:: + -rm -rf $(TMPTOP) + +debian/stamp/conf/flex: + $(checkdir) + $(REASON) + @test -d debian/stamp/conf || mkdir -p debian/stamp/conf + if ! which flex >/dev/null 2>&1; then \ + if [ -e debian/scan.l.md5sum ] && \ + [ "`md5sum scan.l`" = "`cat debian/scan.l.md5sum`" ]; then \ + if [ scan.l -nt scan.c ]; then \ + echo "scan.l newer than scan.c"; \ + fi; \ + touch scan.c; \ + fi; \ + fi + WARNINGS=none autoreconf --warnings=none -f -i + ac_cv_lib_util_getloadavg=no ./configure --verbose \ + --prefix=$(PREFIX) $(confflags) + @echo done > $@ + +debian/stamp/build/flex: + $(checkdir) + $(REASON) + $(CHECKPO) + @test -d debian/stamp/build || mkdir -p debian/stamp/build + bash -n debian/doc.postinst + bash -n debian/doc.prerm + bash -n debian/postinst + bash -n debian/prerm + $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" + $(MAKE) -C po +ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + $(MAKE) check + endif +endif + $(check-libraries) + @echo done > $@ + +debian/stamp/build/flex-doc: + $(checkdir) + $(REASON) + @test -d debian/stamp/build || mkdir -p debian/stamp/build + $(MAKE) -C doc flex.info flex.html + @echo done > $@ + +debian/stamp/install/flex-doc: + $(checkdir) + $(REASON) + $(TESTROOT) + rm -rf $(TMPTOP) + $(make_directory) $(TMPTOP) + $(make_directory) $(DOCDIR)/html + $(make_directory) $(DOCBASEDIR) + $(make_directory) $(LINTIANDIR) + $(install_file) debian/doc.lintian.overrides $(LINTIANDIR)/$(package) + $(install_file) README $(DOCDIR)/README + $(install_file) NEWS $(DOCDIR)/NEWS + $(install_file) debian/changelog $(DOCDIR)/changelog.Debian + gzip -9fqr $(DOCDIR)/ +# Make sure the copyright file is not compressed + $(install_file) debian/copyright $(DOCDIR)/copyright + $(install_file) doc/flex.html/* $(DOCDIR)/html/ + ln -s NEWS.gz $(DOCDIR)/changelog.gz + $(install_file) debian/docentry $(DOCBASEDIR)/$(package) + @test -d debian/stamp/install || mkdir -p debian/stamp/install + @echo done > $@ + +debian/stamp/install/flex: + $(checkdir) + $(REASON) + $(TESTROOT) + rm -rf $(TMPTOP) + $(make_directory) $(TMPTOP) + $(make_directory) $(BINDIR) + $(make_directory) $(LIBDIR) + $(make_directory) $(INFODIR) + $(make_directory) $(MAN1DIR) + $(make_directory) $(DOCDIR) + $(make_directory) $(LINTIANDIR) + $(install_file) debian/lintian.overrides $(LINTIANDIR)/$(package) + $(MAKE) $(INT_INSTALL_TARGET) prefix=$(TMPTOP)/usr \ + infodir=$(INFODIR) mandir=$(MANDIR) \ + INSTALL_PROGRAM="$(install_program)" + $(install_file) debian/libfl.shared_object $(LIBDIR)/libfl.so + $(MAKE) install -C po infodir=$(INFODIR) prefix=$(TMPTOP)/usr + $(MAKE) install-info -C doc infodir=$(INFODIR) prefix=$(TMPTOP)/usr + ln -s flex $(BINDIR)/flex++ + test ! -e $(INFODIR)/dir || rm -f $(INFODIR)/dir + test ! -e $(INFODIR)/dir.old || rm -f $(INFODIR)/dir.old + $(install_file) README $(DOCDIR)/README + $(install_file) debian/README $(DOCDIR)/README.Debian + $(install_file) debian/NEWS.Debian $(DOCDIR)/NEWS.Debian + $(install_file) NEWS $(DOCDIR)/NEWS + $(install_file) debian/changelog $(DOCDIR)/changelog.Debian + gzip -9frq $(DOCDIR)/ +# Make sure the copyright file is not compressed + $(install_file) debian/copyright $(DOCDIR)/copyright + gzip -9fqr $(MANDIR)/ + test ! -e $(INFODIR)/dir || rm -f $(INFODIR)/dir + test ! -e $(INFODIR)/dir.old || rm -f $(INFODIR)/dir.old + gzip -9fqr $(INFODIR) + if [ ! -e debian/scan.l.md5sum ] || \ + [ "`md5sum scan.l`" != "`cat debian/scan.l.md5sum`" ]; then \ + md5sum scan.l > debian/scan.l.md5sum; \ + fi + $(strip-exec) + $(strip-lib) + ln -s NEWS.gz $(DOCDIR)/changelog.gz + ln -s flex.1.gz $(MAN1DIR)/lex.1.gz + ln -s flex.1.gz $(MAN1DIR)/flex++.1.gz + ln -s flex $(BINDIR)/lex + ln -s libfl.a $(LIBDIR)/libl.a + @test -d debian/stamp/install || mkdir -p debian/stamp/install + @echo done > $@ + +debian/stamp/binary/flex-doc: + $(checkdir) + $(REASON) + $(TESTROOT) + $(make_directory) $(TMPTOP)/DEBIAN + $(install_script) debian/doc.postinst $(TMPTOP)/DEBIAN/postinst + $(install_script) debian/doc.prerm $(TMPTOP)/DEBIAN/prerm + $(install_script) debian/doc.postrm $(TMPTOP)/DEBIAN/postrm + dpkg-gencontrol -p$(package) -isp -P$(TMPTOP) + $(create_md5sum) $(TMPTOP) + chown -R root:root $(TMPTOP) + chmod -R u+w,go=rX $(TMPTOP) + dpkg --build $(TMPTOP) .. + @test -d debian/stamp/binary || mkdir -p debian/stamp/binary + @echo done > $@ + +debian/stamp/binary/flex: + $(checkdir) + $(REASON) + $(TESTROOT) + $(make_directory) $(TMPTOP)/DEBIAN + $(install_script) debian/postinst $(TMPTOP)/DEBIAN/postinst + $(install_script) debian/prerm $(TMPTOP)/DEBIAN/prerm + $(get-shlib-deps) + dpkg-gencontrol -p$(package) -isp -P$(TMPTOP) + $(create_md5sum) $(TMPTOP) + chown -R root:root $(TMPTOP) + chmod -R u+w,go=rX $(TMPTOP) + dpkg --build $(TMPTOP) .. + @test -d debian/stamp/binary || mkdir -p debian/stamp/binary + @echo done > $@ --- flex-2.5.35.orig/debian/copyright +++ flex-2.5.35/debian/copyright @@ -0,0 +1,76 @@ +This is the Debian prepackaged version of flex, the fast lexical +analyzer generator. + +This package was first put together by Robert Leslie . +It is currently maintained by Manoj Srivastava , +who took over from Santiago Vila , +and it is built from sources obtained from: + +http://flex.sourceforge.net/ + +Copyright: + Flex carries the copyright used for BSD software, slightly modified + because it originated at the Lawrence Berkeley (not Livermore!) Laboratory, + which operates under a contract with the Department of Energy: + + Copyrig © 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The Flex Project. + + Copyright © 1990, 1993, 1997 The Regents of the University of California. + All rights reserved. + + + This code is derived from software contributed to Berkeley by + Vern Paxson. + + The United States Government has rights in this work pursuant + to contract no. DE-AC03-76SF00098 between the United States + Department of Energy and the University of California. + + 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. + + 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. + + This basically says "do whatever you please with this software except + remove this notice or take advantage of the University's (or the flex + authors') name". + + Note that the "flex.skl" scanner skeleton carries no copyright notice. + You are free to do whatever you please with scanners generated using flex; + for them, you are not even bound by the above copyright. + +Parts of the code are + Copyright © 1999 Karl Fogel + Copyright © 2001,2002,2003 Martyn J. Pearce +and distributed under the terms of the GNU General Public License, +version 2. + +The Debian specific changes are © 2003, 2004, 2005, 2006, 2008 Manoj +Srivastava , and distributed under the terms of +the GNU General Public License, version 2. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + + A copy of the GNU General Public License is also available at + . You may also obtain + it by writing to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301 USA + + +Manoj Srivastava +arch-tag: d4250e44-a0e0-4ee0-adb9-2bd74f6eeb27 --- flex-2.5.35.orig/debian/watch +++ flex-2.5.35/debian/watch @@ -0,0 +1,10 @@ +# format version number, currently 2; this line is compulsory! +version=3 + +http://sf.net/flex/flex-([\d\.]*)\.tar\.gz +#ftp://ftp.sf.net/pub/sourceforge/f/fl/flex/flex-([\d.]*)\.tar\.gz + +# If the project uses stable=even and unstable=odd (middle) version numbers, +# http://sf.net//-(\d+)\.(\d*[02468])\.(\d+)\.tar\.gz +# http://sf.net//-(\d+\.\d?[02468]\.\d+)\.tar\.gz + --- flex-2.5.35.orig/debian/doc.postinst +++ flex-2.5.35/debian/doc.postinst @@ -0,0 +1,206 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postinst --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 11:25:07 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Thu Dec 4 02:35:13 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 14 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: b5b8f5a7-813f-494e-8aa0-f51e8986f9ee +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=flex-doc + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called as the last step of the installation of the +# package. All the package's files are in place, dpkg has already done +# its automatic conffile handling, and all the packages we depend of +# are already fully installed and configured. +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +# The following idempotent stuff doesn't generally need protecting +# against being run in the abort-* cases. + +# Create stub directories under /usr/local +##: if test ! -d /usr/local/lib/${package_name}; then +##: if test ! -d /usr/local/lib; then +##: if mkdir /usr/local/lib; then +##: chown root.staff /usr/local/lib || true +##: chmod 2775 /usr/local/lib || true +##: fi +##: fi +##: if mkdir /usr/local/lib/${package_name}; then +##: chown root.staff /usr/local/lib/${package_name} || true +##: chmod 2775 /usr/local/lib/${package_name} || true +##: fi +##: fi + +# Ensure the menu system is updated +## [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +# Arrange for a daemon to be started at system boot time +##: update-rc.d ${package_name} default >/dev/null + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. + # Install emacs lisp files + ##:if [ -x /usr/lib/emacsen-common/emacs-package-install ]; then + ##: /usr/lib/emacsen-common/emacs-package-install $package_name + ##:fi + + + # Activate menu-methods script + ##: chmod a+x /etc/menu-methods/${package_name} + + # Update ld.so cache + ##: ldconfig + + # Make our version of a program available + ##: update-alternatives \ + ##: --install /usr/bin/program program /usr/bin/alternative 50 \ + ##: --slave /usr/man/man1/program.1.gz program.1.gz \ + ##: /usr/man/man1/alternative.1.gz + + # Tell ucf that the file in /usr/share/foo is the latest + # maintainer version, and let it handle how to manage the real + # confuguration file in /etc. This is how a static configuration + # file can be handled: + ##:if which ucf >/dev/null 2>&1; then + ##: ucf /usr/share/${package_name}/configuration /etc/${package_name}.conf + ##:fi + + ### We could also do this on the fly. The following is from Tore + ### Anderson: + + #. /usr/share/debconf/confmodule + + ### find out what the user answered. + # db_get foo/run_on_boot + # run_on_boot=$RET + # db_stop + + ### safely create a temporary file to generate our suggested + ### configuration file. + # tempfile=`tempfile` + # cat << _eof > $tempfile + ### Configuration file for Foo. + + ### this was answered by you, the user in a debconf dialogue + # RUNONBOOT=$run_on_boot + + ### this was not, as it has a sane default value. + # COLOUROFSKY=blue + + #_eof + + ### Note that some versions of debconf do not release stdin, so + ### the following invocation of ucf may not work, since the stdin + ### is never coneected to ucfr. + + ### now, invoke ucf, which will take care of the rest, and ask + ### the user if he wants to update his file, if it is modified. + #ucf $tempfile /etc/foo.conf + + ### done! now we'll just clear up our cruft. + #rm -f $tempfile + + + + # There are three sub-cases: + if test "${2+set}" != set; then + # We're being installed by an ancient dpkg which doesn't remember + # which version was most recently configured, or even whether + # there is a most recently configured version. + : + + elif test -z "$2" || test "$2" = ""; then + # The package has not ever been configured on this system, or was + # purged since it was last configured. + : + + else + # Version $2 is the most recently configured version of this + # package. + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package FROM THIS VERSION + # to version $2. Undo the effects of "prerm upgrade $2". + : + + ;; + abort-remove) + if test "$2" != in-favour; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to remove this package, which was due to + # a conflict with package $3 (version $4). Undo the effects of + # "prerm remove in-favour $3 $4". + : + + ;; + abort-deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to deconfigure this package, which was + # due to package $6 (version $7) which we depend on being removed + # to make way for package $3 (version $4). Undo the effects of + # "prerm deconfigure in-favour $3 $4 removing $6 $7". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- flex-2.5.35.orig/debian/common/automake.mk +++ flex-2.5.35/debian/common/automake.mk @@ -0,0 +1,37 @@ +############################ -*- Mode: Makefile -*- ########################### +## automake.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:47:23 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Nov 15 02:47:53 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 1 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 1fabe69b-7cc8-4ecc-9411-bc5906b19857 +## +############################################################################### + +AUTOCONF_VERSION:=$(shell if [ -e configure ]; then \ + grep "Generated automatically using autoconf" \ + configure | sed -e 's/^.*autoconf version //g'; \ + fi) +HAVE_NEW_AUTOMAKE:=$(shell if [ "X$(AUTOCONF_VERSION)" != "X2.13" ]; then \ + echo 'YES' ; fi) + +ifneq ($(strip $(HAVE_NEW_AUTOMAKE)),) + ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_BUILD_GNU_TYPE) + else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) + endif +else + ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += $(DEB_HOST_GNU_TYPE) + else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) + endif +endif --- flex-2.5.35.orig/debian/common/install_cmds.mk +++ flex-2.5.35/debian/common/install_cmds.mk @@ -0,0 +1,58 @@ +######################### -*- Mode: Makefile-Gmake -*- ######################## +## install_cmds.mk --- +## Author : Manoj Srivastava ( srivasta@golden-gryphon.com ) +## Created On : Fri Jun 16 14:40:20 2006 +## Created On Node : glaurung.internal.golden-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Wed Sep 6 11:43:05 2006 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 9 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071 +## +## 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 program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + +# install commands +INSTALL = install +ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif +install_file = $(INSTALL) -p -o root -g root -m 644 +install_program = $(INSTALL) -p -o root -g root -m 755 +install_script = $(INSTALL) -p -o root -g root -m 755 +make_directory = $(INSTALL) -p -d -o root -g root -m 755 + +define create_md5sum + create_md5sums_fn () { \ + cd $$1 ; \ + find . -type f \ + ! -regex './DEBIAN/.*' \ + ! -regex './var/.*' $(EXTRA_MD5SUM_EXCLUDE) \ + -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \ + if [ -z "DEBIAN/md5sums" ] ; then \ + rm -f "DEBIAN/md5sums" ; \ + fi ; \ + } ; \ + create_md5sums_fn +endef + +#Local variables: +#mode: makefile +#End: --- flex-2.5.35.orig/debian/common/ChangeLog +++ flex-2.5.35/debian/common/ChangeLog @@ -0,0 +1,59 @@ +2008-02-06 Manoj Srivastava + + * copt.mk: + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-4 + The cross building support in Debian has been rewritten + to stop overriding the CC variable to $(MAKE) in order + to correctly support those packages that build internal + tools with the native compiler during the build. This + means that other packages that assume that CC will be + overridden by the cross-compiling build scripts now fail + to build. The patch is simply to set CC to + $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is + detected. + +2007-10-09 Manoj Srivastava + + * targets.mk: + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-1 + fix dependency tree for targets, allow parralel + compilatoin. Many changes, thanks to dot. + +2007-09-20 Manoj Srivastava + + * targets.mk (stamp-clean): + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--base-0 + make clean not remove zero sized files. removed the part + that cleaned out zero sized files; since there are uses + for zero sized files (like, to nuke out files in + upstream sources and not inflate the diff. Any zero + sized files can still be nuked in the local.mk file. + +2006-10-02 Manoj Srivastava + + * checklibs: + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-15 + New file, to detect if there are unneeded library + dependencies + +2006-10-01 Manoj Srivastava + + * archvars.mk (doit): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-14 + Add a macro to execute $(shell ...) macos verbosely to + help debugging. + +2006-09-15 Manoj Srivastava + + * targets.mk (stamp-clean): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-13 + Exclude version control directories from the generic + clean command. + + +2006-08-23 Manoj Srivastava + + * pkgvars.mk (DEB_DISTRIBUTION): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-6 + Add variable that contains the distribution information + --- flex-2.5.35.orig/debian/common/debconf.mk +++ flex-2.5.35/debian/common/debconf.mk @@ -0,0 +1,42 @@ +############################ -*- Mode: Makefile -*- ########################### +## debconf.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) +## Created On : Fri Mar 12 11:11:31 2004 +## Created On Node : glaurung.internal.golden-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Mon Apr 11 13:19:10 2005 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 20 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : helps with using debconf +## +## arch-tag: 32b933a9-05ad-4c03-97a8-8644745b832a +## +############################################################################### + +# The idea behind this scheme is that the maintainer (or whoever's +# building the package for upload to unstable) has to build on a +# machine with po-debconf installed, but nobody else does. + +# Also, make sure that debian/control has ${debconf-depends} in the +# appropriate Depends: line., and use the following in the binary +# target: +# dpkg-gencontrol -V'debconf-depends=debconf (>= $(MINDEBCONFVER))' +# + +# WARNING!! You need to create the debian/templates file before this +# all works. + +# Run debconf-updatepo whenever the template file changes. +# the tool podebconf-report-po is also a great friend to have in such +# circumstances +define CHECKPO + @for i in debian/po/*.po; do \ + if [ -f $$i ]; then \ + echo \"Checking: $$i\"; \ + msgmerge -U $$i debian/po/templates.pot; \ + msgfmt -o /dev/null -c --statistics $$i; \ + fi; \ + done +endef --- flex-2.5.35.orig/debian/common/perlvars.mk +++ flex-2.5.35/debian/common/perlvars.mk @@ -0,0 +1,27 @@ +############################ -*- Mode: Makefile -*- ########################### +## perlvars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:55:47 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Dec 13 13:50:58 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 3 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a97a01ba-d08d-404d-aa81-572717c03e6c +## +############################################################################### + +# Perl variables +PERL = /usr/bin/perl + +INSTALLPRIVLIB = $(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'installprivlib'}\n";') +INSTALLARCHLIB = $(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'installarchlib'}\n";') +INSTALLVENDORLIB =$(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'vendorlibexp'}\n";') +CONFIG = INSTALLDIRS=vendor --- flex-2.5.35.orig/debian/common/targets.dot +++ flex-2.5.35/debian/common/targets.dot @@ -0,0 +1,293 @@ +strict digraph Targets { + //ranksep=0.750; + //nodesep=0.500; + + // Nodes attributes: filled == Double-colon targt (most work is done here) + // Oval == Target based on a time stamp + // Octagon == Phony target + // Double lines denote a mandatory target (periperies=2) + + // Edge attributes: Dotted line indicates the target is called using $(MAKE) + + "debian/stamp/dummy-config-common" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-config-common" [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-config-common" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-config-arch" [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-config-arch" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-config-indep" [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-config-indep" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/CONFIG/foo-arch" [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/CONFIG/bar-indep" [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-configure-arch" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-configure-indep" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-configure-arch" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-configure-indep" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10] + "configure-arch" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "configure-indep" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "configure" [ style="bold", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + + "debian/stamp/pre-build-common" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-build-arch" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-build-arch" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-build-indep" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-build-indep" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/BUILD/foo-arch" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/BUILD/bar-indep" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-build-arch" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-build-indep" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-build-arch" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-build-indep" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "build-arch" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + "build-indep" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + "build" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + "debian/stamp/post-build-arch" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/post-build-indep" [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-post-build-arch" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-post-build-indep" [ style="bold", color="#74A5ED", fontcolor="NavyBlue", fontsize=10] + + "debian/stamp/pre-inst-common" [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-inst-arch" [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-inst-arch" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-inst-indep" [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-inst-indep" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/INST/foo-arch" [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/INST/bar-indep" [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-install-arch" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-install-indep" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-install-arch" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-install-indep" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10] + "install-arch" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "install-indep" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "install" [ style="bold", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + + "debian/stamp/pre-bin-common" [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-bin-arch" [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-bin-arch" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/pre-bin-indep" [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-pre-bin-indep" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/BIN/foo-arch" [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/BIN/bar-indep" [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-binary-arch" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/dep-binary-indep" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-binary-arch" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "debian/stamp/do-binary-indep" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10] + "binary-arch" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + "binary-indep" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + "binary" [ style="bold", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + + + "CLN-common" [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "CLN-arch" [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "CLN-indep" [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "CLEAN/foo-arch" [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "CLEAN/bar-indep" [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "clean-arch" [ style="bold", color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "clean-indep" [ style="bold", color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"] + "clean" [ style="bold", color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2] + + + "CLN-common" -> "CLN-arch" [dir=back] + "CLN-common" -> "CLN-indep" [dir=back] + "CLN-arch" -> "CLEAN/foo-arch" [dir=back] + "CLN-indep" -> "CLEAN/bar-indep" [dir=back] + "CLN-arch" -> "clean-arch" [dir=back] + "CLEAN/foo-arch" -> "clean-arch" [dir=back] + "CLN-indep" -> "clean-indep" [dir=back] + "CLEAN/bar-indep" -> "clean-indep" [dir=back] + "clean-indep" -> "clean" [dir=back] + "clean-arch" -> "clean" [dir=back] + +// "debian/stamp/dummy-config-common" -> "debian/stamp/pre-config-common" [dir=back] + "debian/stamp/dummy-config-common" -> "debian/stamp/do-pre-config-common" [dir=back] + "debian/stamp/pre-config-common" -> "debian/stamp/do-pre-config-common" [dir=back color="Red"] +// "CUSTOM-1" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-1" -> "debian/stamp/pre-config-common" [dir=back] +// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-arch" [dir=back] + "debian/stamp/do-pre-config-common" -> "debian/stamp/do-pre-config-arch" [dir=back] + "debian/stamp/pre-config-arch" -> "debian/stamp/do-pre-config-arch" [dir=back color="Red"] +// "CUSTOM-2" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-2" -> "debian/stamp/pre-config-arch" [dir=back] +// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-indep" [dir=back] + "debian/stamp/do-pre-config-common" -> "debian/stamp/do-pre-config-indep" [dir=back] + "debian/stamp/pre-config-indep" -> "debian/stamp/do-pre-config-indep" [dir=back color="Red"] +// "CUSTOM-3" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-3" -> "debian/stamp/pre-config-indep" [dir=back] +// "debian/stamp/do-pre-config-arch" -> "debian/stamp/CONFIG/foo-arch" [dir=back] +// "debian/stamp/do-pre-config-indep" -> "debian/stamp/CONFIG/bar-indep" [dir=back] +// "debian/stamp/do-pre-config-arch" -> "debian/stamp/dep-configure-arch" [dir=back] + "debian/stamp/CONFIG/foo-arch" -> "debian/stamp/dep-configure-arch" [dir=back] +// "debian/stamp/do-pre-config-indep" -> "debian/stamp/dep-configure-indep" [dir=back] + "debian/stamp/CONFIG/bar-indep" -> "debian/stamp/dep-configure-indep" [dir=back] + + "debian/stamp/do-pre-config-arch" -> "debian/stamp/do-configure-arch" [dir=back] + "debian/stamp/dep-configure-arch" -> "debian/stamp/do-configure-arch" [dir=back color="Red"] +// "CUSTOM-4" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-4" -> "debian/stamp/CONFIG/foo-arch" [dir=back] + "debian/stamp/do-pre-config-indep" -> "debian/stamp/do-configure-indep" [dir=back] + "debian/stamp/dep-configure-indep" -> "debian/stamp/do-configure-indep" [dir=back color="Red"] +// "CUSTOM-5" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-5" -> "debian/stamp/CONFIG/bar-indep" [dir=back] + "debian/stamp/do-configure-arch" -> "configure-arch" [dir=back] + "debian/stamp/do-configure-indep" -> "configure-indep" [dir=back] + "debian/stamp/do-configure-arch" -> "configure" [dir=back] + "debian/stamp/do-configure-indep" -> "configure" [dir=back] + +// "debian/stamp/do-configure-arch" -> "debian/stamp/pre-build-arch" [dir=back] + "debian/stamp/do-configure-arch" -> "debian/stamp/do-pre-build-arch" [dir=back] + "debian/stamp/pre-build-common" -> "debian/stamp/do-pre-build-arch" [dir=back color="Red"] +// "CUSTOM-6" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-6" -> "debian/stamp/pre-build-common" [dir=back] + "debian/stamp/pre-build-arch" -> "debian/stamp/do-pre-build-arch" [dir=back color="Red"] +// "CUSTOM-7" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-7" -> "debian/stamp/pre-build-arch" [dir=back] + "debian/stamp/pre-build-common" -> "debian/stamp/do-pre-build-indep" [dir=back color="Red"] + "debian/stamp/do-configure-indep" -> "debian/stamp/do-pre-build-indep" [dir=back] +// "debian/stamp/do-configure-indep" -> "debian/stamp/pre-build-indep" [dir=back] + "debian/stamp/pre-build-indep" -> "debian/stamp/do-pre-build-indep" [dir=back color="Red"] +// "CUSTOM-8" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-8" -> "debian/stamp/pre-build-indep" [dir=back] +// "debian/stamp/do-pre-build-arch" -> "debian/stamp/BUILD/foo-arch" [dir=back] +// "debian/stamp/do-pre-build-indep" -> "debian/stamp/BUILD/bar-indep" [dir=back] +// "debian/stamp/do-pre-build-arch" -> "debian/stamp/dep-build-arch" [dir=back] + "debian/stamp/BUILD/foo-arch" -> "debian/stamp/dep-build-arch" [dir=back] +// "debian/stamp/do-pre-build-indep" -> "debian/stamp/dep-build-indep" [dir=back] + "debian/stamp/BUILD/bar-indep" -> "debian/stamp/dep-build-indep" [dir=back] + "debian/stamp/do-pre-build-arch" -> "debian/stamp/do-build-arch" [dir=back] + "debian/stamp/dep-build-arch" -> "debian/stamp/do-build-arch" [dir=back color="Red"] +// "CUSTOM-9" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-9" -> "debian/stamp/BUILD/foo-arch" [dir=back] + "debian/stamp/do-pre-build-indep" -> "debian/stamp/do-build-indep" [dir=back] + "debian/stamp/dep-build-indep" -> "debian/stamp/do-build-indep" [dir=back color="Red"] +// "CUSTOM-10" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-10" -> "debian/stamp/BUILD/bar-indep" [dir=back] + "debian/stamp/do-build-arch" -> "build-arch" [dir=back] + "debian/stamp/do-build-indep" -> "build-indep" [dir=back] + "debian/stamp/do-build-arch" -> "build" [dir=back] + "debian/stamp/do-build-indep" -> "build" [dir=back] +// "debian/stamp/do-build-arch" -> "debian/stamp/post-build-arch" [dir=back] + "debian/stamp/do-build-arch" -> "debian/stamp/do-post-build-arch" [dir=back] + "debian/stamp/do-build-indep" -> "debian/stamp/do-post-build-indep" [dir=back] + "debian/stamp/post-build-arch" -> "debian/stamp/do-post-build-arch" [dir=back color="Red"] +// "CUSTOM-11" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-11" -> "debian/stamp/post-build-arch" [dir=back] + "debian/stamp/post-build-indep" -> "debian/stamp/do-post-build-indep" [dir=back color="Red"] +// "CUSTOM-12" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-12" -> "debian/stamp/post-build-indep" [dir=back] +// "debian/stamp/do-post-build-arch" -> "debian/stamp/pre-inst-arch" [dir=back] + "debian/stamp/pre-inst-common" -> "debian/stamp/do-pre-inst-arch" [dir=back color="Red"] +// "CUSTOM-13" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-13" -> "debian/stamp/pre-inst-common" [dir=back] + "debian/stamp/do-post-build-arch" -> "debian/stamp/do-pre-inst-arch" [dir=back] + "debian/stamp/pre-inst-arch" -> "debian/stamp/do-pre-inst-arch" [dir=back color="Red"] +// "CUSTOM-14" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-14" -> "debian/stamp/pre-inst-arch" [dir=back] +// "debian/stamp/do-post-build-indep" -> "debian/stamp/pre-inst-indep" [dir=back] + "debian/stamp/pre-inst-common" -> "debian/stamp/do-pre-inst-indep" [dir=back color="Red"] + "debian/stamp/do-post-build-indep" -> "debian/stamp/do-pre-inst-indep" [dir=back] + "debian/stamp/pre-inst-indep" -> "debian/stamp/do-pre-inst-indep" [dir=back color="Red"] +// "CUSTOM-15" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-15" -> "debian/stamp/pre-inst-indep" [dir=back] +// "debian/stamp/do-pre-inst-arch" -> "debian/stamp/INST/foo-arch" [dir=back] +// "debian/stamp/do-pre-inst-indep" -> "debian/stamp/INST/bar-indep" [dir=back] +// "debian/stamp/do-pre-inst-arch" -> "debian/stamp/dep-install-arch" [dir=back] + "debian/stamp/INST/foo-arch" -> "debian/stamp/dep-install-arch" [dir=back] +// "debian/stamp/do-pre-inst-indep" -> "debian/stamp/dep-install-indep" [dir=back] + "debian/stamp/INST/bar-indep" -> "debian/stamp/dep-install-indep" [dir=back] + "debian/stamp/do-pre-inst-arch" -> "debian/stamp/do-install-arch" [dir=back] + "debian/stamp/dep-install-arch" -> "debian/stamp/do-install-arch" [dir=back color="Red"] +// "CUSTOM-16" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-16" -> "debian/stamp/INST/foo-arch" [dir=back] + "debian/stamp/do-pre-inst-indep" -> "debian/stamp/do-install-indep" [dir=back] + "debian/stamp/dep-install-indep" -> "debian/stamp/do-install-indep" [dir=back color="Red"] +// "CUSTOM-17" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-17" -> "debian/stamp/INST/bar-indep" [dir=back] + "debian/stamp/do-install-arch" -> "install-arch" [dir=back] + "debian/stamp/do-install-indep" -> "install-indep" [dir=back] + "debian/stamp/do-install-arch" -> "install" [dir=back] + "debian/stamp/do-install-indep" -> "install" [dir=back] +// "debian/stamp/do-install-arch" -> "debian/stamp/pre-bin-arch" [dir=back] + "debian/stamp/do-install-arch" -> "debian/stamp/do-pre-bin-arch" [dir=back] + "debian/stamp/pre-bin-common" -> "debian/stamp/do-pre-bin-arch" [dir=back color="Red"] +// "CUSTOM-18" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-18" -> "debian/stamp/pre-bin-common" [dir=back] + "debian/stamp/pre-bin-arch" -> "debian/stamp/do-pre-bin-arch" [dir=back color="Red"] +// "CUSTOM-19" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-19" -> "debian/stamp/pre-bin-arch" [dir=back] +// "debian/stamp/do-install-indep" -> "debian/stamp/pre-bin-indep" [dir=back] + "debian/stamp/pre-bin-common" -> "debian/stamp/do-pre-bin-indep" [dir=back color="Red"] + "debian/stamp/do-install-indep" -> "debian/stamp/do-pre-bin-indep" [dir=back] + "debian/stamp/pre-bin-indep" -> "debian/stamp/do-pre-bin-indep" [dir=back color="Red"] +// "CUSTOM-20" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-20" -> "debian/stamp/pre-bin-indep" [dir=back] +// "debian/stamp/do-pre-bin-arch" -> "debian/stamp/BIN/foo-arch" [dir=back] +// "debian/stamp/do-pre-bin-indep" -> "debian/stamp/BIN/bar-indep" [dir=back] +// "debian/stamp/pre-bin-arch" -> "debian/stamp/dep-binary-arch" [dir=back] + "debian/stamp/BIN/foo-arch" -> "debian/stamp/dep-binary-arch" [dir=back] +// "debian/stamp/do-pre-bin-indep" -> "debian/stamp/dep-binary-indep" [dir=back] + "debian/stamp/BIN/bar-indep" -> "debian/stamp/dep-binary-indep" [dir=back] + "debian/stamp/do-pre-bin-arch" -> "debian/stamp/do-binary-arch" [dir=back] + "debian/stamp/dep-binary-arch" -> "debian/stamp/do-binary-arch" [dir=back color="Red"] +// "CUSTOM-21" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-21" -> "debian/stamp/BIN/foo-arch" [dir=back] + "debian/stamp/do-pre-bin-indep" -> "debian/stamp/do-binary-indep" [dir=back] + "debian/stamp/dep-binary-indep" -> "debian/stamp/do-binary-indep" [dir=back color="Red"] +// "CUSTOM-22" [ style="filled", color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"] +// "CUSTOM-22" -> "debian/stamp/BIN/bar-indep" [dir=back] + "debian/stamp/do-binary-arch" -> "binary-arch" [dir=back] + "debian/stamp/do-binary-indep" -> "binary-indep" [dir=back] + "debian/stamp/do-binary-arch" -> "binary" [dir=back] + "debian/stamp/do-binary-indep" -> "binary" [dir=back] + + + "debian/stamp/dummy-config-common" -> "debian/stamp/pre-config-common" [style="invis"] + "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-arch" [style="invis"] + "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-indep" [style="invis"] + "debian/stamp/do-pre-config-arch" -> "debian/stamp/CONFIG/foo-arch" [style="invis"] + "debian/stamp/do-pre-config-indep" -> "debian/stamp/CONFIG/bar-indep" [style="invis"] + + "debian/stamp/dep-configure-arch" -> "configure" [style="invis"] + "debian/stamp/dep-configure-indep" -> "configure" [style="invis"] + "debian/stamp/dep-configure-arch" -> "configure-arch" [style="invis"] + "debian/stamp/dep-configure-indep" -> "configure-arch" [style="invis"] + "debian/stamp/dep-configure-arch" -> "configure-indep" [style="invis"] + "debian/stamp/dep-configure-indep" -> "configure-indep" [style="invis"] + "configure-arch" -> "configure" [style="invis"] + "configure-indep" -> "configure" [style="invis"] + "configure" -> "debian/stamp/pre-build-common" [style="invis"] + + + "debian/stamp/pre-build-common" -> "debian/stamp/pre-build-indep" [style="invis"] + "debian/stamp/pre-build-common" -> "debian/stamp/pre-build-arch" [style="invis"] + + "debian/stamp/do-pre-build-arch" -> "debian/stamp/BUILD/foo-arch" [style="invis"] + "debian/stamp/do-pre-build-indep" -> "debian/stamp/BUILD/bar-indep" [style="invis"] + "debian/stamp/do-build-arch" -> "debian/stamp/post-build-arch" [style="invis"] + "debian/stamp/do-build-indep" -> "debian/stamp/post-build-indep" [style="invis"] + "debian/stamp/do-post-build-arch" -> "build-arch" [style="invis"] + "debian/stamp/do-post-build-arch" -> "build" [style="invis"] + "debian/stamp/do-post-build-indep" -> "build-indep" [style="invis"] + "debian/stamp/do-post-build-indep" -> "build" [style="invis"] + "build-arch" -> "build" [style="invis"] + "build-indep" -> "build" [style="invis"] + + "build" -> "debian/stamp/pre-inst-common" [style="invis"] + + "debian/stamp/pre-inst-common" -> "debian/stamp/pre-inst-indep" [style="invis"] + "debian/stamp/pre-inst-common" -> "debian/stamp/pre-inst-arch" [style="invis"] + "debian/stamp/do-pre-inst-arch" -> "debian/stamp/INST/foo-arch" [style="invis"] + "debian/stamp/do-pre-inst-indep" -> "debian/stamp/INST/bar-indep" [style="invis"] + + "install-arch" -> "install" [style="invis"] + "install-indep" -> "install" [style="invis"] + + "debian/stamp/pre-bin-common" -> "debian/stamp/pre-bin-indep" [style="invis"] + "debian/stamp/pre-bin-common" -> "debian/stamp/pre-bin-arch" [style="invis"] + + "install" -> "debian/stamp/pre-bin-common" [style="invis"] + "debian/stamp/do-pre-bin-arch" -> "debian/stamp/BIN/foo-arch" [style="invis"] + "debian/stamp/do-pre-bin-indep" -> "debian/stamp/BIN/bar-indep" [style="invis"] + + "binary-arch" -> "binary" [style="invis"] + "binary-indep" -> "binary" [style="invis"] + +} --- flex-2.5.35.orig/debian/common/README +++ flex-2.5.35/debian/common/README @@ -0,0 +1,78 @@ +# This file provides a quick overview of this build system. The idea is +# to convert ./debian/rules into a framework, which abstracts most of +# the work required to create a Debian package into this common set of +# make snippets. + +# The rules file would look like this: + +## Include dpkg-architecture generated variables +# This make snippet uses dpkg-architecture to set the various +# DEB_BUILD* and DEB_HOST* variables. It also adds a couple of DEBUG +# macros for use in the rules file. +include debian/common/archvars.mk + +## variables useful for perl packages +# This sets things like the installed location of the private lib, +# arch dependent lib, and vendor library directories. +include debian/common/perlvars.mk + +## Install commands +# This sets the convenience macros install_{file,script,program} and +# a make directory macro, all run as root, for the install and binary +# targets. It also includes a macro to create the md5sum for +# installed files. +include debian/common/install_cmds.mk + +## Per package variable settings. +# This file sets the Make variables on a per package basis. Things +# like include files, C, C++, and LD flags are set here, as well as +# installation paths or, really, anything else that would be needed +# during packaging operations +include debian/local-vars.mk + +## Setting C compiler flags. +# This file takes care of setting C compiler flags, setting the +# compiler if a cross compilation effort is detected, and either +# arranges for binaries to be stripped or not based on +# DEB_BUILD_OPTIONS. +include debian/common/copt.mk + +## Set automake configuration flags +# This file sets confflags variable with the proper --host and +# --build options if it detects a cross compilation effort underway. +include debian/common/automake.mk + +# Set up the default target. +all: + @echo nothing to be done + +## Include the common targets +# This file sets up the flow of control during a Debian package build +# process, taking into account policy requirements (mandatory +# targets, ordering targets). It sets up rules for each package found +# in ./debian/control file in the package, and arranges package build +# to follow the order of configuration, building, installation, and +# binary package creation (and of course, clean). + +# The details of the targets can be seen visually by running dot on +# the accompanying targets.dot file. In the figure, the legend is: +# Nodes attributes: +# filled == Work target (most work is done in dependencies added +# to these targets). These are the targets referred to +# in the local.mk file +# Octagon == Phony target +# Oval == Real target based on a time stamp +# Double lines denote a mandatory target +# +# Edge attributes: A Red line indicates the target is called using +# $(MAKE) -f ./debian/rules . So the targets connected by the +# red lines are run after all the dependencies have been updated, but +# before anything else is done. + +include debian/common/targets.mk + +## The bulk of packaging +# This file adds dependencies to the double-colon rules set up in +# targets.mk above, and perform the bulk of the packaging. +include debian/local.mk + --- flex-2.5.35.orig/debian/common/copt.mk +++ flex-2.5.35/debian/common/copt.mk @@ -0,0 +1,44 @@ +############################ -*- Mode: Makefile -*- ########################### +## copt.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:48:40 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Nov 15 02:49:07 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 1 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8 +## +############################################################################### + +PREFIX := /usr +# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) + CC=$(DEB_HOST_GNU_TYPE)-gcc +else + CC = cc +endif + +# Policy 10.1 says to make this the default +CFLAGS = -Wall -g + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +## endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP += -s + LDFLAGS += -s + INT_INSTALL_TARGET = install +else + INT_INSTALL_TARGET = install +endif --- flex-2.5.35.orig/debian/common/get_shlib_ver +++ flex-2.5.35/debian/common/get_shlib_ver @@ -0,0 +1,40 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# get_shlib_ver --- +# Author : Manoj Srivastava ( srivasta@golden-gryphon.com ) +# Created On : Tue Sep 1 15:27:07 2009 +# Created On Node : anzu.internal.golden-gryphon.com +# Last Modified By : Manoj Srivastava +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# If there is a symbols file preent, get the most recent version a +# symbol was added in. +# + + +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +# Make sure we abort on error +set -e +progname="$(basename \"$0\")" + +test ! -d debian || \ + find debian -wholename 'debian/*\.symbols' | while read lib; do + echo -n "Shlib info for" ${lib%%.symbols} ": "; + sort -n -k 2,2b $lib | grep '^ ' | tail -n 1 | awk '{print $2;}'; +done + --- flex-2.5.35.orig/debian/common/checklibs +++ flex-2.5.35/debian/common/checklibs @@ -0,0 +1,78 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# checklibs.sh --- +# Author : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) +# Created On : Fri Sep 29 15:36:22 2006 +# Created On Node : glaurung.internal.golden-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Wed Sep 2 01:16:46 2009 +# Last Machine Used: anzu.internal.golden-gryphon.com +# Update Count : 47 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 8ba11489-77fa-45a0-92c4-9c5b162ee119 +# +# 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +# Make sure we abort on error +set -e +progname="$(basename \"$0\")" + +trap 'rm -f search_patterns.txt;' ALRM HUP INT PIPE TERM ABRT FPE BUS QUIT SEGV ILL EXIT + +# Find all undefined symbols in all ELF objects in this tree +readelf -s -D -W $(find . -type f -print0 | xargs -0r file | grep " ELF" | \ + awk '{print $1}' | sed -e 's/:$//') | grep UND | grep -v LOCAL | + perl -ple 's/.*\s(\S+)\s*$/\^$1\$/g' | sort -u > search_patterns.txt; + +LOCAL_LIBS=$(find . -type f -print0 | xargs -0r file | egrep "ELF.*shared object" | \ + awk '{print $1}' | sed -e 's/:$//' -e 's,/[^/]*$,,') + +# Find all the libraries needed in this tree +objdump -T --private-headers $(find . -type f -print0 | \ + xargs -0r file | egrep "ELF.*(shared object|executable)" | \ + awk '{print $1}' | sed -e 's/:$//') | grep NEEDED | sort -u | awk '{print $2}' | + while read lib; do + # For each library, see where it lives on the file system + LIB= + for library_dir in "/lib" "/usr/lib" $LOCAL_LIBS $EXTRA_LIBRARY_PATHS; do + if [ -e "$library_dir/$lib" ]; then + LIB="$library_dir/$lib"; + break + fi + done + if [ -z "$LIB" ]; then + echo >&2 "Can't find $lib" + continue + fi + # If we fond the library, find what symbols it defines, and if these symbols + # are some that we need + if readelf -s -D -W $LIB | grep -v UND | perl -ple 's/.*\s(\S+)\s*$/$1/g' | \ + sort -u | grep -q -f search_patterns.txt ; then + # Library provides at least some symbols we need + if [ -n "$DEBUG" ]; then echo "Found $LIB"; fi + else + # Library does not provide any symbols we need + echo "$LIB" ; + fi +done + +# Get rid of the intermediate file +rm -f search_patterns.txt; +exit 0 + --- flex-2.5.35.orig/debian/common/archvars.mk +++ flex-2.5.35/debian/common/archvars.mk @@ -0,0 +1,118 @@ +############################ -*- Mode: Makefile -*- ########################### +## archvars.mk --- +## Author : Manoj Srivastava ( srivasta@golden-gryphon.com ) +## Created On : Sat Nov 15 02:40:56 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Tue Nov 16 23:36:15 2004 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 5 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : calls dpkg-architecture and sets up various arch +## related variables +## +## arch-tag: e16dd848-0fd6-4c0e-ae66-bef20d1f7c63 +## +## 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 program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + + +DPKG_ARCH := dpkg-architecture + +ifeq ($(strip $(KPKG_ARCH)),um) + MAKING_VIRTUAL_IMAGE:=YES +endif +ifeq ($(strip $(KPKG_ARCH)),xen) + MAKING_VIRTUAL_IMAGE:=YES +endif + +ifneq ($(strip $(CONFIG_UM)),) + MAKING_VIRTUAL_IMAGE:=YES + KPKG_ARCH=um +endif + +ifneq ($(strip $(CONFIG_XEN)),) + MAKING_VIRTUAL_IMAGE:=YES + ifneq ($(strip $(CONFIG_X86_XEN)$(CONFIG_X86_64_XEN)),) + KPKG_SUBARCH=xen + else + KPKG_ARCH=xen + ifeq ($(strip $(CONFIG_XEN_PRIVILEGED_GUEST)),) + KPKG_SUBARCH=xenu + else + KPKG_SUBARCH=xen0 + endif + endif +endif + +ifdef KPKG_ARCH + ifeq ($(strip $(MAKING_VIRTUAL_IMAGE)),) + ifneq ($(CROSS_COMPILE),-) + ha:=-a$(KPKG_ARCH) + endif + endif +endif + +# set the dpkg-architecture vars +export DEB_BUILD_ARCH := $(shell $(DPKG_ARCH) -qDEB_BUILD_ARCH) +export DEB_BUILD_GNU_CPU := $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_CPU) +export DEB_BUILD_GNU_SYSTEM:= $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_SYSTEM) +export DEB_BUILD_GNU_TYPE := $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_TYPE) +export DEB_HOST_ARCH := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH) +export DEB_HOST_ARCH_OS := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_OS \ + 2>/dev/null|| true) +export DEB_HOST_ARCH_CPU := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_CPU \ + 2>/dev/null|| true) +export DEB_HOST_GNU_CPU := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_CPU) +export DEB_HOST_GNU_SYSTEM := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_SYSTEM) +export DEB_HOST_GNU_TYPE := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_TYPE) + +# arrgh. future proofing +ifeq ($(DEB_HOST_GNU_SYSTEM), linux) + DEB_HOST_GNU_SYSTEM=linux-gnu +endif +ifeq ($(DEB_HOST_ARCH_OS),) + ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu) + DEB_HOST_ARCH_OS := linux + endif + ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu) + DEB_HOST_ARCH_OS := kfreebsd + endif +endif + +REASON = @if [ -f $@ ]; then \ + echo "====== making $(notdir $@) because of $(notdir $?) ======";\ + else \ + echo "====== making target $@ [new prereqs: $(notdir $?)]======"; \ + fi + +OLDREASON = @if [ -f $@ ]; then \ + echo "====== making $(notdir $@) because of $(notdir $?) ======";\ + else \ + echo "====== making (creating) $(notdir $@) ======"; \ + fi + +LIBREASON = @echo "====== making $(notdir $@)($(notdir $%))because of $(notdir $?)======" + + +# macro outputing $(1) if DEBUG_DEBIAN_RULES is set, and resolving it +# in all cases usage $(call doit,some shell command) +doit = $(if $(DEBUG_DEBIAN_RULES),$(warning DEBUG: $(1)))$(shell $(1)) + +#Local variables: +#mode: makefile +#End: --- flex-2.5.35.orig/debian/common/pkgvars.mk +++ flex-2.5.35/debian/common/pkgvars.mk @@ -0,0 +1,168 @@ +############################ -*- Mode: Makefile -*- ########################### +## pkgvars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:56:30 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Thu Jun 15 12:05:46 2006 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 11 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : This is what allows us toseparate out the top level +## targets, by determining which packages needto be built. +## +## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331 +## +## +## 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 program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + +# The maintainer information. +maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \ + sed 's/^Maintainer: *//') +email := srivasta@debian.org + +# Priority of this version (or urgency, as dchanges would call it) +urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \ + sed 's/^Urgency: *//') + +# Common useful variables +DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | \ + cut -f 2 -d ':')) +DEB_VERSION := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + egrep '^Version:' | cut -f 2 -d ' ')) +DEB_ISNATIVE := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);')) +DEB_DISTRIBUTION := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + egrep '^Distribution:' | cut -f 2 -d ' ')) + +DEB_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; print "$$p " if $$p; \ + }' debian/control ) + +DEB_INDEP_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; \ + $$a=$$1 if m/^Architecture:\s*(\S+)/m; \ + next unless ($$a eq "all"); \ + print "$$p " if $$p; \ + }' debian/control ) + +DEB_ARCH_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; \ + $$c=""; \ + if (/^Architecture:\s*(.*?)\s*$$/sm) { \ + @a = split /\s+/, $$1 }; \ + for my $$b (@a) { \ + next unless ($$b eq "$(DEB_HOST_ARCH)" || \ + $$b eq "any"); \ + $$c="$$p"; \ + } \ + print "$$c " if $$c; \ + }' debian/control ) + +# This package is what we get after removing the psuedo dirs we use in rules +package = $(notdir $@) +DEBIANDIR = $(dir $(firstword $(MAKEFILE_LIST))) + +ifeq (,$(filter parallel=%,$(FAILS_PARALLEL_BUILD))) + ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,-j%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + endif +endif + +# Define canned sequences used to strip executables and libraries, +# keeping in mind the directives in DEB_BUILD_OPTIONS +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +define strip-exec +find $(TMPTOP) -type f | while read i; do \ + if file -b $$i | egrep -q "^ELF.*executable"; then \ + strip --strip-all --remove-section=.comment --remove-section=.note $$i; \ + fi; \ + done +endef + +define strip-lib +find $(TMPTOP) -type f | while read i; do \ + if file -b $$i | egrep -q "^ELF.*shared object"; then \ + strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \ + fi; \ +done +endef +else +define strip-exec +@echo Not strippping executables as asked +endef + +define strip-lib +@echo Not strippping libraries as asked +endef + +endif + +# this canned command specifies how to run dpkg-shlibs to add things +# to debian/substvars by scanning executables and libraries; this +# should suffice for the common case. Some rules files might need some +# changes to the command sequence, though +define get-shlib-deps +k=`find $(TMPTOP) -type f | ( while read i; do \ + if file -b $$i | \ + egrep -q "^ELF.*(executable.*dynamically linked|shared object)"; then \ + j="$$j $$i"; \ + fi; \ +done; echo $$j; )`; if [ -n "$$k" ]; then dpkg-shlibdeps $$k; fi +endef + +# This canned sequence checks to see if all the libraries we link to +# actually provide some symbols needed by some executable ot library +# in the package itself. +ifeq (,$(strip $(filter nocheck,$(DEB_BUILD_OPTIONS)))) + ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +define check-libraries +echo Checking libs +xtra=$$($(SHELL) debian/common/checklibs); \ +if [ -n "$$extra" ]; then \ + echo "Extra libraries: $$extra"; \ + exit 1; \ +fi +endef + else +define check-libraries +echo Not checking libs +endef + endif +else +define check-libraries +echo Not checking libs +endef +endif + + +#Local variables: +#mode: makefile +#End: --- flex-2.5.35.orig/debian/common/targets.mk +++ flex-2.5.35/debian/common/targets.mk @@ -0,0 +1,532 @@ +############################ -*- Mode: Makefile -*- ########################### +## targets.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 01:10:05 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Apr 26 22:33:09 2008 +## Last Machine Used: anzu.internal.golden-gryphon.com +## Update Count : 131 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : The top level targets mandated by policy, as well as +## their dependencies. +## +## arch-tag: a81086a7-00f7-4355-ac56-8f38396935f4 +## +## 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 program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## +############################################################################### + +####################################################################### +####################################################################### +############### Miscellaneous ############### +####################################################################### +####################################################################### +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +define TESTROOT + @test $$(id -u) = 0 || (echo need root priviledges; exit 1) +endef + +testroot: + $(TESTROOT) + +checkpo: + $(CHECKPO) + +# arch-buildpackage likes to call this +prebuild: + +ifneq (,$(shell if [ -f $(DEBIANDIR)/watch ]; then echo yes; fi)) +.PHONY: get-orig-source +get-orig-source: + cd $(DEBIANDIR)/.. && \ + uscan --verbose --rename --destdir $(DEBIANDIR)../.. || true +endif + +# OK. We have two sets of rules here, one for arch dependent packages, +# and one for arch independent packages. We have already calculated a +# list of each of these packages. + +# In each set, we may need to do things in five steps: configure, +# build, install, package, and clean. Now, there can be a common +# actions to be taken for all the packages, all arch dependent +# packages, all all independent packages, and each package +# individually at each stage. + +########################################################################### +# The current code does a number of things: It ensures that the highest # +# dependency at any stage (usually the -Common target) depends on the # +# stamp-STAGE of the previous stage; so no work on a succeeding stage can # +# start before the previous stage is all done. # +########################################################################### + +########################################################################### +# In the following, the do_* targets make sure all the real non-generic # +# work is done, but are not in the direct line of dependencies. This # +# makes sure that previous step in the order is all up to date before any # +# of the per package target dependencies are run. # +########################################################################### + + +####################################################################### +####################################################################### +############### Configuration ############### +####################################################################### +####################################################################### +# Just a dummy target to make sure that the stamp directory exists +debian/stamp/dummy-config-common: + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +# Configuration tasks common to arch and arch indep packages go here +debian/stamp/pre-config-common: debian/stamp/dummy-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +# Do not add dependencies to this rule +debian/stamp/do-pre-config-common: debian/stamp/dummy-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/pre-config-common + @echo done > $@ + +# Arch specific and arch independent tasks go here +debian/stamp/pre-config-arch: debian/stamp/do-pre-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +# Do not add dependencies to this rule +debian/stamp/do-pre-config-arch: debian/stamp/do-pre-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/pre-config-arch + @echo done > $@ + + +debian/stamp/pre-config-indep: debian/stamp/do-pre-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +# Do not add dependencies to this rule +debian/stamp/do-pre-config-indep: debian/stamp/do-pre-config-common + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/pre-config-indep + @echo done > $@ + +# Per package work happens as an added dependency of this rule. +$(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES)) : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-arch + $(REASON) + $(checkdir) + @test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG + @echo done > $@ +$(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-indep + $(REASON) + $(checkdir) + @test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG + @echo done > $@ + +# Do not add dependencies to this rule +debian/stamp/dep-configure-arch: debian/stamp/do-pre-config-arch $(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +# Do not add dependencies to this rule +debian/stamp/dep-configure-indep: debian/stamp/do-pre-config-indep $(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/do-configure-arch: debian/stamp/do-pre-config-arch + $(REASON) + @test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG + $(MAKE) -f debian/rules debian/stamp/dep-configure-arch + @echo done > $@ +debian/stamp/do-configure-indep: debian/stamp/do-pre-config-indep + $(REASON) + @test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG + $(MAKE) -f debian/rules debian/stamp/dep-configure-indep + @echo done > $@ + +# These three targets are required by policy +configure-arch: debian/stamp/do-configure-arch + $(REASON) +configure-indep: debian/stamp/do-configure-indep + $(REASON) +configure: debian/stamp/do-configure-arch debian/stamp/do-configure-indep + $(REASON) + +####################################################################### +####################################################################### +############### Build ############### +####################################################################### +####################################################################### +# tasks common to arch and arch indep packages go here +debian/stamp/pre-build-common: + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +# Arch specific and arch independent tasks go here +debian/stamp/pre-build-arch: debian/stamp/do-configure-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-build-arch: debian/stamp/do-configure-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common + $(MAKE) -f debian/rules debian/stamp/pre-build-arch + @echo done > $@ + +debian/stamp/pre-build-indep: debian/stamp/do-configure-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-build-indep: debian/stamp/do-configure-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common + $(MAKE) -f debian/rules debian/stamp/pre-build-indep + @echo done > $@ + +# Per package work happens as an added dependency of this rule. +$(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES)) : debian/stamp/BUILD/% : debian/stamp/do-pre-build-arch + $(REASON) + $(checkdir) + @test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD + @echo done > $@ + +$(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BUILD/% : debian/stamp/do-pre-build-indep + $(REASON) + $(checkdir) + @test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD + @echo done > $@ + +# These do targeta make sure all the per package configuration is +# done, but is not in the direct line of dependencies. This makes sure +# that pre-config targets are all up to date before any of the per +# package target dependencies are run. +debian/stamp/dep-build-arch: debian/stamp/do-pre-build-arch $(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/dep-build-indep: debian/stamp/do-pre-build-indep $(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/do-build-arch: debian/stamp/do-pre-build-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-build-arch + @echo done > $@ +debian/stamp/do-build-indep: debian/stamp/do-pre-build-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-build-indep + @echo done > $@ + +# required +build-arch: debian/stamp/do-build-arch + $(REASON) +build-indep: debian/stamp/do-build-indep + $(REASON) +build: debian/stamp/do-build-arch debian/stamp/do-build-indep + $(REASON) + +# Work here +debian/stamp/post-build-arch: debian/stamp/do-build-arch + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-post-build-arch: debian/stamp/do-build-arch + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/post-build-arch + @echo done > $@ + +debian/stamp/post-build-indep: debian/stamp/do-build-indep + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-post-build-indep: debian/stamp/do-build-indep + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/post-build-indep + @echo done > $@ + +####################################################################### +####################################################################### +############### Install ############### +####################################################################### +####################################################################### +# tasks common to arch and arch indep packages go here +debian/stamp/pre-inst-common: + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +# Arch specific and arch independent tasks go here +debian/stamp/pre-inst-arch: debian/stamp/do-post-build-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-inst-arch: debian/stamp/do-post-build-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common + $(MAKE) -f debian/rules debian/stamp/pre-inst-arch + @echo done > $@ + +debian/stamp/pre-inst-indep: debian/stamp/do-post-build-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-inst-indep: debian/stamp/do-post-build-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common + $(MAKE) -f debian/rules debian/stamp/pre-inst-indep + @echo done > $@ + + +# Per package work happens as an added dependency of this rule +$(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES)) : debian/stamp/INST/% : debian/stamp/do-pre-inst-arch + $(REASON) + $(checkdir) + @test -d debian/stamp/INST || mkdir -p debian/stamp/INST + @echo done > $@ +$(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/INST/% : debian/stamp/do-pre-inst-indep + $(REASON) + $(checkdir) + @test -d debian/stamp/INST || mkdir -p debian/stamp/INST + @echo done > $@ + +# These do targeta make sure all the per package configuration is +# done, but is not in the direct line of dependencies. This makes sure +# that pre-config targets are all up to date before any of the per +# package target dependencies are run. +debian/stamp/dep-install-arch: debian/stamp/do-pre-inst-arch $(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/dep-install-indep: debian/stamp/do-pre-inst-indep $(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + + +debian/stamp/do-install-arch: debian/stamp/do-pre-inst-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-install-arch + @echo done > $@ +debian/stamp/do-install-indep: debian/stamp/do-pre-inst-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-install-indep + @echo done > $@ + +#required +install-arch: debian/stamp/do-install-arch + $(REASON) + $(TESTROOT) +install-indep: debian/stamp/do-install-indep + $(REASON) + $(TESTROOT) +install: debian/stamp/do-install-arch debian/stamp/do-install-indep + $(REASON) + $(TESTROOT) + +####################################################################### +####################################################################### +############### Package ############### +####################################################################### +####################################################################### +# tasks common to arch and arch indep packages go here +debian/stamp/pre-bin-common: + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +# Arch specific and arch independent tasks go here +debian/stamp/pre-bin-arch: debian/stamp/do-install-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-bin-arch: debian/stamp/do-install-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common + $(MAKE) -f debian/rules debian/stamp/pre-bin-arch + @echo done > $@ + +debian/stamp/pre-bin-indep: debian/stamp/do-install-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ +debian/stamp/do-pre-bin-indep: debian/stamp/do-install-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + @test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common + $(MAKE) -f debian/rules debian/stamp/pre-bin-indep + @echo done > $@ + +# Per package work happens as an added dependency of this rule +$(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES)) : debian/stamp/BIN/% : debian/stamp/do-pre-bin-arch + $(REASON) + $(checkdir) + @test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN + @echo done > $@ + +$(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BIN/% : debian/stamp/do-pre-bin-indep + $(REASON) + $(checkdir) + @test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN + @echo done > $@ + +# These do targeta make sure all the per package work is done, but is +# not in the direct line of dependencies. This makes sure that +# pre-config targets are all up to date before any of the per package +# target dependencies are run. +debian/stamp/dep-binary-arch: debian/stamp/pre-bin-arch $(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/dep-binary-indep: debian/stamp/pre-bin-indep $(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @test -d debian/stamp || mkdir -p debian/stamp + @echo done > $@ + +debian/stamp/do-binary-arch: debian/stamp/do-pre-bin-arch + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-binary-arch + @echo done > $@ +debian/stamp/do-binary-indep: debian/stamp/do-pre-bin-indep + $(REASON) + $(checkdir) + @test -d debian/stamp || mkdir -p debian/stamp + $(MAKE) -f debian/rules debian/stamp/dep-binary-indep + @echo done > $@ +# required +binary-arch: debian/stamp/do-binary-arch + $(REASON) + $(TESTROOT) +binary-indep: debian/stamp/do-binary-indep + $(REASON) + $(TESTROOT) +binary: debian/stamp/do-binary-arch debian/stamp/do-binary-indep + $(REASON) + $(TESTROOT) + @echo arch package = $(DEB_ARCH_PACKAGES) + @echo indep packages = $(DEB_INDEP_PACKAGES) + +####################################################################### +####################################################################### +############### Clean ############### +####################################################################### +####################################################################### +# Work here +CLN-common:: + $(REASON) + $(checkdir) + +# sync Work here +CLN-arch:: CLN-common + $(REASON) + $(checkdir) +CLN-indep:: CLN-common + $(REASON) + $(checkdir) +# Work here +$(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES)) :: CLEAN/% : CLN-arch + $(REASON) + $(checkdir) +$(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) :: CLEAN/% : CLN-indep + $(REASON) + $(checkdir) + +clean-arch: CLN-arch $(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES)) + $(REASON) +clean-indep: CLN-indep $(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) + $(REASON) +clean: clean-indep clean-arch + $(REASON) + -test -f Makefile && $(MAKE) distclean + -rm -f $(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN) + -rm -rf $(DIRS_TO_CLEAN) debian/stamp + -rm -f core TAGS \ + `find . ! -regex '.*/\.git/.*' ! -regex '.*/\{arch\}/.*' \ + ! -regex '.*/CVS/.*' ! -regex '.*/\.arch-ids/.*' \ + ! -regex '.*/\.svn/.*' \ + \( -name '*.orig' -o -name '*.rej' -o -name '*~' -o \ + -name '*.bak' -o -name '#*#' -o -name '.*.orig' -o \ + -name '.*.rej' -o -name '.SUMS' \) \ + -print` + + +####################################################################### +####################################################################### +############### ############### +####################################################################### +####################################################################### +.PHONY: configure-arch configure-indep configure \ + build-arch build-indep build \ + install-arch install-indep install \ + binary-arch binary-indep binary \ + CLN-common CLN-indep CLN-arch clean-arch clean-indep clean \ + $(patsubst %,CLEAN/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,CLEAN/%, $(DEB_ARCH_PACKAGES)) \ + implode explode prebuild checkpo + + +#Local variables: +#mode: makefile +#End: --- flex-2.5.35.orig/tests/test-bison-yylval/Makefile.am +++ flex-2.5.35/tests/test-bison-yylval/Makefile.am @@ -34,7 +34,7 @@ testname = test-bison-yylval -scanner.c: $(srcdir)/scanner.l +scanner.c scanner.h: $(srcdir)/scanner.l $(FLEX) $< parser.c: $(srcdir)/parser.y @@ -50,4 +50,4 @@ $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< parser.h: parser.c -main.o: parser.h +main.o: parser.h scanner.h --- flex-2.5.35.orig/tests/test-bison-nr/Makefile.am +++ flex-2.5.35/tests/test-bison-nr/Makefile.am @@ -34,7 +34,7 @@ testname = test-bison-nr -scanner.c: $(srcdir)/scanner.l +scanner.c scanner.h: $(srcdir)/scanner.l $(FLEX) $< parser.c: $(srcdir)/parser.y @@ -50,4 +50,5 @@ $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< parser.h: parser.c -scanner.c main.o: parser.h +scanner.o: parser.h +main.o: parser.h scanner.h --- flex-2.5.35.orig/tests/test-bison-yylloc/Makefile.am +++ flex-2.5.35/tests/test-bison-yylloc/Makefile.am @@ -34,7 +34,7 @@ testname = test-bison-yylloc -scanner.c: $(srcdir)/scanner.l +scanner.c scanner.h: $(srcdir)/scanner.l $(FLEX) $< parser.c: $(srcdir)/parser.y @@ -50,4 +50,5 @@ $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $< parser.h: parser.c -scanner.c main.o: parser.h +scanner.o: parser.h +main.o: parser.h scanner.h