source: trunk/dports/devel/cssc/files/patch-config.h.diff @ 126199

Last change on this file since 126199 was 126199, checked in by ryandesign@…, 4 years ago

cssc: add upstream patches to fix build failure on OS X <= 10.6 (#45258); become maintainer

File size: 12.6 KB
  • auxfiles/Makefile.in

    http://lists.gnu.org/archive/html/bug-cssc/2014-09/msg00003.html
    http://git.savannah.gnu.org/cgit/cssc.git/commit/?id=9737f41b5d2a49e61061e9f896b5a9ae19e3a3ac
     
    799799top_build_prefix = @top_build_prefix@
    800800top_builddir = @top_builddir@
    801801top_srcdir = @top_srcdir@
    802 EXTRA_DIST = check-testfiles.sh
     802EXTRA_DIST = check-testfiles.sh firstinclude.sed
    803803all: all-am
    804804
    805805.SUFFIXES:
  • (a) dev/null vs. (b) auxfiles/firstinclude.sed

    a b  
     1/^ *# *include ["<].*[">]/ {
     2s/^ *# *include ["<]\(.*\)[">]/\1/
     3t YESREALLY
     4i\
     5Internal error - regexes are inconsistent
     6q
     7: YESREALLY
     8#s/^\(config\|cssc\).h$//
     9s/^config\.h$//
     10t OK
     11=
     12i\
     13config.h should be #included first
     14: OK
     15# q with an exit code is a GNU extension, don't use it.
     16q
     17}
     18
     19   
  • src/Makefile.in

     
    16151615sccsdiff: sccsdiff.sh
    16161616        sed -e 's:__csscutildir__:$(csscutildir):g' < sccsdiff.sh > $@ && chmod a+x $@ || { rm -f $@; false; }
    16171617
     1618check-include-order:
     1619        rv=0; \
     1620        for f in $(srcdir)/*.cc; \
     1621        do \
     1622                msg="`sed -n -f $(top_srcdir)/auxfiles/firstinclude.sed < $$f`"; \
     1623                if test -n "$${msg}"; \
     1624                then \
     1625                        set -- $${msg} ; line=$${1} ; shift; errmsg="$${*}"; \
     1626                        echo "$${f}:$${line}:$${errmsg}" >&2; \
     1627                        rv=1; \
     1628                fi \
     1629        done; \
     1630        exit $${rv}
     1631
    16181632testsplit$(EXEEXT): fnsplit.cc mystring.$(OBJEXT) quit.$(OBJEXT)
    16191633        $(CXXCOMPILE) -DTEST_FNSPLIT -o testsplit$(EXEEXT) \
    16201634                $(srcdir)/fnsplit.cc mystring.$(OBJEXT) quit.$(OBJEXT)
  • src/admin.cc

     
    2323 * Administer and create SCCS files.
    2424 *
    2525 */
     26#include <config.h>
     27
    2628#include <errno.h>
    2729
    2830#include "cssc.h"
  • src/bodyio.cc

     
    2323 *
    2424 */
    2525
     26#include <config.h>
     27
     28#include <cstdio>
     29#include <cstring>
     30
     31#include "cssc.h"
    2632#include "bodyio.h"
    2733#include "quit.h"
    2834#include "cssc-assert.h"
     
    3238#include "ioerr.h"
    3339#include "file.h"
    3440
    35 #include <cstdio>
    36 #include <cstring>
    37 
    3841/* Check if we have exceeded the maximum line length.
    3942 */
    4043static bool check_line_len(const char *iname,
  • src/cap.cc

     
    2323 * Utilities for limiting output to the constraints of the file format.
    2424 */
    2525
     26#include <config.h>
     27
    2628#include "cssc.h"
    2729
    2830
  • src/cdc.cc

     
    2323 *
    2424 */
    2525
     26#include <config.h>
     27
    2628#include "cssc.h"
    2729#include "my-getopt.h"
    2830#include "fileiter.h"
  • src/delta-iterator.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
     29
     30#include "cssc.h"
    2831#include "delta-iterator.h"
    2932#include "delta-table.h"
    3033#include "cssc-assert.h"
  • src/delta-table.cc

     
    2222 *
    2323 */
    2424
     25#include <config.h>
     26
     27#include "cssc.h"
    2528#include "delta-table.h"
    2629#include "delta-iterator.h"
    2730
  • src/delta.cc

     
    2424 *
    2525 */
    2626
     27
     28#include <config.h>
     29
     30#include "cssc.h"
    2731#include "delta.h"
    2832#include "cleanup.h"
    2933#include "my-getopt.h"
  • src/dtbl-prepend.cc

     
    2424 *
    2525 */
    2626
     27#include <config.h>
     28
     29#include "cssc.h"
    2730#include "delta-table.h"
    2831
    2932
  • src/encoding.cc

     
    2525 * Compile on its own, defining TEST_CODE, to compile a test program.
    2626 */
    2727
     28#include <config.h>
     29
     30#include "cssc.h"
    2831#include "bodyio.h"
    2932#include "cssc-assert.h"
    3033
  • src/environment.cc

     
    2222 * sections "Environment" and "Interoperability" in the CSSC manual.
    2323 *
    2424 */
     25#include "config.h"
     26
     27#include <cerrno>
     28#include <cstdio>
    2529#include <cstdlib>
    2630#include <cstring>
    27 #include <cstdio>
    28 #include <cerrno>
    29 
    30 #include "cssc.h"
    31 
    3231#include <limits.h>
    3332
     33#include "cssc.h"
    3434
    3535bool binary_file_creation_allowed (void)
    3636{
  • src/fatalsig.cc

     
    2222 * Handle fatal signals...
    2323 *
    2424 */
     25#include "config.h"
     26
    2527#include <cstdlib>
     28#include <signal.h>             /* TODO: consider using sigaction(). */
    2629
     30#include "cssc-assert.h"
    2731#include "cssc.h"
    28 #include "version.h"
    2932#include "quit.h"
    30 
    31 #include <signal.h>             /* TODO: consider using sigaction(). */
    32 #include "cssc-assert.h"
     33#include "version.h"
    3334
    3435
    3536/* The expansion of RETSIGTYPE is automatically decided by the configure
  • src/fdclosed.cc

     
    3131 * the file pointer on our file too).
    3232 */
    3333
    34 #include "cssc.h"
    35 #include "sysdep.h"
    36 #include "defaults.h"           // CONFIG_NULL_FILENAME
     34#include <config.h>
    3735
    3836#include <unistd.h>
    3937#include <stdio.h>              /* perror() */
    4038
     39#include "cssc.h"
     40#include "sysdep.h"
     41#include "defaults.h"           // CONFIG_NULL_FILENAME
    4142
    4243class SafeFdCheck
    4344{
  • src/file.cc

     
    2323 * System dependent routines for accessing files.
    2424 *
    2525 */
     26#include "config.h"
     27
    2628#include <errno.h>
     29#include <sys/types.h>
     30#include <sys/stat.h>
     31#include <unistd.h>
     32#include <stdio.h>
     33#include <stdlib.h>
    2734
    28 #include "cssc.h"
     35#include "cssc.h"               /* for CONFIG_CAN_HARD_LINK_AN_OPEN_FILE */
    2936#include "cssc-assert.h"
    3037#include "sysdep.h"
    3138#include "file.h"
    3239#include "quit.h"
    3340#include "ioerr.h"
    3441#include "defaults.h"
    35 
    36 #include <unistd.h>
    37 #include <sys/stat.h>
    38 #include <stdio.h>
    3942#include "dirent-safer.h"
    4043
    4144/* Redirects stdout to a "null" file (eg. /dev/null). */
     
    152155
    153156
    154157
     158static int unprivileged = 0;
     159
    155160#ifdef CONFIG_UIDS
    156161
    157162/* A flag to indicate whether or not the programme is an privileged
    158163   (effective UID != real UID) or unprivileged (effective UID == real
    159164   UID). */
    160165
    161 static int unprivileged = 0;
    162 
    163166#ifdef SAVED_IDS_OK
    164167
    165168static uid_t old_euid;
  • src/file.h

     
    3333#include <sys/types.h>
    3434
    3535#include "filelock.h"
     36#include "mystring.h"
    3637
    3738enum create_mode {
    3839        CREATE_EXCLUSIVE     =  001,
  • src/filelock.h

     
    2828#define CSSC__FILELOCK_H__
    2929
    3030#include "cleanup.h"
     31#include "mystring.h"
    3132
    3233class file_lock : private cleanup {
    3334        int locked;
  • src/fnsplit.cc

     
    2020 * Functions for canonifying filenames.
    2121 */
    2222
     23#include <config.h>
     24
    2325#include "cssc.h"
    2426#include "mystring.h"
    2527#include "file.h"               // declaration of split_filename.
  • src/get.cc

     
    2323 * Extract a requested delta from a SCCS file.
    2424 *
    2525 */
     26#include "config.h"
     27
    2628#include <errno.h>
    2729
    2830#include "cssc.h"
  • src/l-split.cc

     
    2424 *
    2525 */
    2626
     27#include <config.h>
     28
    2729#include "cssc.h"
    2830#include "mylist.h"
    2931#include "sccsfile.h"           // declares these functions.
  • src/linebuf.cc

     
    2323 * Members of the class cssc_linebuf.
    2424 *
    2525 */
     26#include "config.h"
     27
    2628#include <cstdio>
    2729#include <cstring>
    2830#include <climits>
  • src/pf-add.cc

     
    2323 *
    2424 */
    2525
     26#include <config.h>
     27
    2628#include "cssc.h"
    2729#include "pfile.h"
    2830#include "except.h"
  • src/pf-del.cc

     
    2424 * a p-file.
    2525 *
    2626 */
     27#include "config.h"
     28
    2729#include <utility>
    2830
    2931#include "cssc.h"
  • src/pfile.cc

     
    2323 * Common members of the class sccs_pfile.
    2424 *
    2525 */
     26#include "config.h"
     27
    2628#include <errno.h>
    2729
    2830#include "cssc.h"
  • src/prompt.cc

     
    2424 *
    2525 */
    2626
     27#include "config.h"
     28
    2729#include <cstdio>
    2830#include <cstring>
    2931#include <cstdio>
  • src/prs.cc

     
    2424 *
    2525 */
    2626
     27#include <config.h>
    2728#include "cssc.h"
    2829#include "fileiter.h"
    2930#include "sccsfile.h"
  • src/prt.cc

     
    2626 */
    2727
    2828
     29#include <config.h>
    2930#include "cssc.h"
    3031#include "fileiter.h"
    3132#include "sccsfile.h"
  • src/quit.cc

     
    2323 * Functions for cleaning up and quitting.
    2424 *
    2525 */
     26#include "config.h"
     27
    2628#include <cstdio>
    2729#include <cstring>
    2830#include <cerrno>
  • src/rel_list.cc

     
    2020 * placed in the Public Domain.
    2121 *
    2222 */
     23#include "config.h"
    2324#include <cstdlib>
    2425
    2526#include "cssc.h"
  • src/rl-merge.cc

     
    2222 *
    2323 */
    2424
     25#include <config.h>
    2526#include "cssc.h"
    2627#include "rel_list.h"
    2728
  • src/rmdel.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
    2829#include "cssc.h"
    2930#include "fileiter.h"
    3031#include "sccsfile.h"
  • src/run.cc

     
    2424 * Routines for running programmes.
    2525 *
    2626 */
     27#include "config.h"
     28
    2729#include <cstdio>
    2830#include <errno.h>
    2931
  • src/sact.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
    2829#include "cssc.h"
    2930#include "fileiter.h"
    3031#include "pfile.h"
  • src/sccs-delta.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
    2829#include "cssc.h"
    2930#include "sccsfile.h"
    3031#include "delta.h"
  • src/sccsdate.cc

     
    2424 * Members of the class sccs_date.
    2525 *
    2626 */
     27#include <config.h>
    2728#include <cstring>
    2829
    2930#include "cssc.h"
  • src/sccsfile.cc

     
    2525 * the members in this file are used to read from the SCCS file.
    2626 *
    2727 */
     28#include <config.h>
    2829#include <errno.h>
    2930
    3031#include "cssc.h"
  • src/sccsname.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
    2829#include "cssc.h"
    2930#include "sccsname.h"
    3031#include "cssc-assert.h"
  • src/seqstate.cc

     
    2121 *
    2222 */
    2323
     24#include <config.h>
    2425#include "cssc.h"
    2526#include "seqstate.h"
    2627
  • src/sf-add.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
    2930#include "cssc.h"
    3031#include "sccsfile.h"
    3132#include "delta.h"
  • src/sf-admin.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
    2930#include "cssc.h"
    3031#include "sccsfile.h"
    3132#include "sl-merge.h"
  • src/sf-cdc.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
    2930#include "cssc.h"
    3031#include "sccsfile.h"
    3132#include "delta.h"
  • src/sf-chkid.cc

     
    2323 *
    2424 */
    2525
     26#include <config.h>
     27
     28#include <string.h>
     29
    2630#include "cssc.h"
    2731#include "sccsfile.h"
    2832#include "linebuf.h"
    2933#include "bodyio.h"
    3034
    31 #include <string.h>
    32 
    3335bool
    3436is_id_keyword_letter(char ch)
    3537{
  • src/sf-delta.cc

     
    2525 * Members of sccs_file for adding a delta to the SCCS file.
    2626 *
    2727 */
     28#include <config.h>
     29
    2830#include <errno.h>
     31#include <unistd.h>
    2932
    3033#include "cssc.h"
    3134#include "sccsfile.h"
     
    4346
    4447#undef JAY_DEBUG
    4548
    46 #include <unistd.h>
    47 
    48 
    4949
    5050class diff_state
    5151{
  • src/sf-get.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
     30
    2931#include "cssc.h"
    3032#include "sccsfile.h"
    3133#include "pfile.h"
  • src/sf-get2.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
     29
     30#include <ctype.h>
     31
    2832#include "cssc.h"
    2933#include "sccsfile.h"
    3034#include "pfile.h"
     
    3337#include "delta-table.h"
    3438
    3539
    36 #include <ctype.h>
    37 
    3840bool sccs_file::sid_matches(const sid& requested,
    3941                            const sid& found,
    4042                            bool get_top_delta) const
  • src/sf-get3.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
     29
    2830#include "cssc.h"
    2931#include "sccsfile.h"
    3032#include "seqstate.h"
  • src/sf-kw.cc

     
    2121 * sccs_file::no_id_keywords()
    2222 */
    2323
     24#include <config.h>
     25
    2426#include "cssc.h"
    2527#include "sccsfile.h"
    2628#include "except.h"
  • src/sf-prs.cc

     
    2727 *
    2828 */
    2929
     30#include <config.h>
     31
    3032#include "cssc.h"
    3133#include "sccsfile.h"
    3234#include "seqstate.h"
  • src/sf-prt.cc

     
    2424 */
    2525
    2626
     27#include <config.h>
     28
    2729#include "cssc.h"
    2830#include "sccsfile.h"
    2931#include "seqstate.h"
  • src/sf-rmdel.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
     30
    2931#include "cssc.h"
    3032#include "sccsfile.h"
    3133#include "delta.h"
  • src/sf-val.cc

     
    2222 * Members of class sccs_file used by "val".
    2323 *
    2424 */
     25#include <config.h>
     26
    2527#include <vector>
     28
    2629#include "cssc.h"
    2730#include "sccsfile.h"
    2831#include "delta.h"
  • src/sf-write.cc

     
    2626 *
    2727 */
    2828
     29#include <config.h>
     30
    2931#include "cssc.h"
    3032#include "sccsfile.h"
    3133#include "delta.h"
  • src/sid.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
     29
     30#include <ctype.h>
     31
    2832#include "cssc.h"
    2933#include "sid.h"
    3034#include "ioerr.h"
    3135
    32 #include <ctype.h>
    33 
    3436mystring sid::as_string() const
    3537{
    3638  char buf[32];
  • src/unget.cc

     
    2525 *
    2626 */
    2727
     28#include <config.h>
     29
    2830#include "cssc.h"
    2931#include "fileiter.h"
    3032#include "pfile.h"
  • src/val.cc

     
    2121 *
    2222 */
    2323
     24#include <config.h>
     25
    2426#include "cssc.h"
    2527#include "fileiter.h"
    2628#include "sccsfile.h"
  • src/writesubst.cc

     
    2222 *
    2323 */
    2424
     25#include <config.h>
     26
    2527#include "cssc.h"
    2628#include "sccsfile.h"
    2729#include "delta.h"
Note: See TracBrowser for help on using the repository browser.