Skip to content

Commit 03efbba

Browse files
authored
Merge pull request #533 from k-okada/add_ga
[ga] add debian:sid test
2 parents 71a2528 + 5a0bb77 commit 03efbba

File tree

4 files changed

+39
-37
lines changed

4 files changed

+39
-37
lines changed

.github/workflows/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- DOCKER_IMAGE: ubuntu:bionic
1818
- DOCKER_IMAGE: ubuntu:focal
1919
- DOCKER_IMAGE: debian:stretch
20+
- DOCKER_IMAGE: debian:sid
2021
- DOCKER_IMAGE: ubuntu:trusty
2122
ROS_DISTRO: indigo
2223
- DOCKER_IMAGE: ubuntu:xenial

.travis.sh

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,15 @@ function travis_time_end {
3232
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
3333

3434
travis_time_start setup.apt-get_update
35-
if [[ "$DOCKER_IMAGE" == *"jessie" ]] ; then
36-
# Jessie is EOL, rewrite sources.list and configure apt
37-
# http://archive.debian.org/debian-archive/
38-
DIST_NAME="jessie"
39-
echo "Rewriting /etc/apt/sources.list for ${DIST_NAME}"
40-
echo "deb http://archive.debian.org/debian/ ${DIST_NAME} main" > /etc/apt/sources.list
41-
echo "deb http://archive.debian.org/debian-security/ ${DIST_NAME}/updates main" >> /etc/apt/sources.list
42-
printf 'Acquire::AllowInsecureRepositories "true";\nAcquire::Check-Valid-Until "false";\n' > /etc/apt/apt.conf.d/99-force-apt-update
43-
fi
44-
if [[ "$DOCKER_IMAGE" == *"stretch" ]] ; then
45-
cat /etc/apt/sources.list
46-
sed -i s@httpredir.debian.org@archive.debian.org@ /etc/apt/sources.list;
47-
sed -i s@deb.debian.org@archive.debian.org@ /etc/apt/sources.list;
48-
sed -i s@security.debian.org/debian-security@archive.debian.org/debian-security@ /etc/apt/sources.list
49-
sed -i '/-updates/ s/^#*/#/' /etc/apt/sources.list
50-
fi
51-
if [[ "$DOCKER_IMAGE" == *"buster" ]] ; then
35+
if [[ "$DOCKER_IMAGE" == *"jessie" || "$DOCKER_IMAGE" == *"stretch" || "$DOCKER_IMAGE" == *"buster" ]] ; then
36+
# Busteris EOL, rewrite sources.list and configure apt
5237
cat /etc/apt/sources.list
53-
sed -i 's@deb.debian.org/debian buster@archive.debian.org/debian buster@' /etc/apt/sources.list;
38+
echo "Rewriting /etc/apt/sources.list"
39+
sed -i 's@deb.debian.org/debian@archive.debian.org/debian@' /etc/apt/sources.list;
40+
sed -i 's@security.debian.org/debian@archive.debian.org/debian@' /etc/apt/sources.list
5441
sed -i '/-updates/ s/^#*/#/' /etc/apt/sources.list
5542
cat /etc/apt/sources.list
43+
printf 'Acquire::AllowInsecureRepositories "true";\nAcquire::Check-Valid-Until "false";\n' > /etc/apt/apt.conf.d/99-force-apt-update
5644
fi
5745
if [ ! -e /usr/bin/sudo ] ; then apt-get update && apt-get install -y --force-yes sudo; else sudo apt-get update; fi
5846
travis_time_end

lisp/c/eusioctl.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ static char *rcsid="@(#)$Id$";
99
#include <sys/termios.h>
1010
#include <sys/ioctl.h>
1111
#ifndef Darwin
12-
#include <termio.h>
12+
#include <features.h>
13+
#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 42))
14+
#warning "Since glibc 2.42, termio.h is no longer supported. Dropping TCGETA TCSETA TCSETAW TCSETAF"
15+
#define USE_TERMIOS
16+
#include <termios.h>
17+
#else
18+
#define USE_TERMIO
19+
#include <termio.h>
20+
#endif
1321
#endif
1422
/* #include <sgtty.h> */
1523

@@ -200,6 +208,7 @@ pointer argv[];
200208
{ return(ioctl_struct(n,argv,TCSETSF,sizeof(struct termios)));}
201209
#endif
202210

211+
#ifdef USE_TERMIO
203212
pointer IOCTL_TCGETA(ctx,n,argv)
204213
register context *ctx;
205214
int n;
@@ -223,6 +232,7 @@ int n;
223232
pointer argv[];
224233
{ return(ioctl_struct(n,argv,TCSETAW,sizeof(struct termio)));}
225234
#endif
235+
#endif
226236

227237
pointer TCGETATTR(ctx,n,argv)
228238
register context *ctx;
@@ -281,10 +291,12 @@ register pointer mod;
281291
defunpkg(ctx,"TCSETSW",mod,IOCTL_TCSETSW,unixpkg);
282292
defunpkg(ctx,"TCSETSF",mod,IOCTL_TCSETSF,unixpkg);
283293
#endif
294+
#ifdef USE_TERMIO
284295
defunpkg(ctx,"TCGETA",mod,IOCTL_TCGETA,unixpkg);
285296
defunpkg(ctx,"TCSETA",mod,IOCTL_TCSETA,unixpkg);
286297
defunpkg(ctx,"TCSETAW",mod,(pointer(*)(context*,int,pointer*))IOCTL_TCSETAW,unixpkg);
287298
defunpkg(ctx,"TCSETAF",mod,IOCTL_TCSETAF,unixpkg);
299+
#endif
288300
#endif
289301
defunpkg(ctx,"TCGETATTR",mod,TCGETATTR,unixpkg);
290302
defunpkg(ctx,"TCSETATTR",mod,TCSETATTR,unixpkg);

lisp/tool/eustags.c

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ struct nd_st { /* sorting structure */
150150
struct nd_st *left,*right; /* left and right sons */
151151
};
152152

153-
long ftell();
153+
long ftell(FILE *);
154154
typedef struct nd_st NODE;
155155

156156
int number; /* tokens found so far on line starting with # (including #) */
@@ -204,21 +204,22 @@ void find_entries (char *file);
204204
void free_tree (NODE *node);
205205
void put_entries (NODE *node);
206206

207-
char *savestr();
208-
char *savenstr ();
209-
char *_rindex();
210-
char *_index();
211-
char *concat ();
212-
void initbuffer ();
213-
long readline ();
214-
215-
int total_size_of_entries ();
216-
int PF_funcs ();
217-
int xmalloc ();
218-
int consider_token ();
219-
int tail ();
220-
int TEX_Token ();
221-
int xrealloc ();
207+
struct linebuffer; /* Forward declaration of 'struct linebuffer' */
208+
char *savestr(char *cp);
209+
char *savenstr (char *cp, int len);
210+
char *_rindex(char *sp, char c);
211+
char *_index(char *sp, char c);
212+
char *concat (char *s1, char *s2, char *s3);
213+
void initbuffer (struct linebuffer *);
214+
long readline (struct linebuffer *, register FILE *);
215+
216+
int total_size_of_entries (NODE *node);
217+
int PF_funcs (FILE *fi);
218+
int xmalloc (int size);
219+
int consider_token (char **lpp, char *token, int *f, int level);
220+
int tail (char *cp);
221+
int TEX_Token (char *cp);
222+
int xrealloc (char *ptr, int size);
222223

223224
/* A `struct linebuffer' is a structure which holds a line of text.
224225
`readline' reads a line from a stream into a linebuffer
@@ -1395,7 +1396,7 @@ struct TEX_tabent *TEX_toktab = NULL; /* Table with tag tokens */
13951396
static char *TEX_defenv =
13961397
":chapter:section:subsection:subsubsection:eqno:label:ref:cite:bibitem:typeout";
13971398

1398-
struct TEX_tabent *TEX_decode_env ();
1399+
struct TEX_tabent *TEX_decode_env (char *evarname, char *defenv);
13991400

14001401
static char TEX_esc = '\\';
14011402
static char TEX_opgrp = '{';
@@ -1498,7 +1499,7 @@ TEX_decode_env (evarname, defenv)
14981499
char *defenv;
14991500
{
15001501
register char *env, *p;
1501-
extern char *savenstr (), *_index ();
1502+
extern char *savenstr (char *cp, int len), *_index (char *sp, char c);
15021503

15031504
struct TEX_tabent *tab;
15041505
int size, i;

0 commit comments

Comments
 (0)