summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-09Use autoconf instead of cpp to generate ccmakedep, mergelib, & xmkmfHEADmasterAlan Coopersmith7-156/+195
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08Fix mdepend.cpp: error: invalid preprocessing directive #FlagAlan Coopersmith1-3/+3
Seen with GNU cpp, but not Solaris cpp: ./mdepend.cpp:128:27: error: invalid preprocessing directive #Flag 128 | # Flag to tell compiler to output dependencies directly | ^~~~ ./mdepend.cpp:129:27: error: invalid preprocessing directive #For 129 | # For example, with Sun compilers, -xM or -xM1 or | ^~~ ./mdepend.cpp:130:27: error: invalid preprocessing directive #with 130 | # with gcc, -M | ^~~~ Reported-by: https://bugs.gentoo.org/919846 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08imake 1.0.10imake-1.0.10Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-11Fix -Wincompatible-pointer-types warning (Issue #3)Alan Coopersmith1-1/+1
Fixes warning from gcc 13 that is becoming an error in gcc 14 imake.c: In function ‘doit’: imake.c:797:29: error: passing argument 2 of ‘execvp’ from incompatible pointer type [-Werror=incompatible-pointer-types] 797 | execvp(cmd, argv); | ^~~~ | | | const char ** In file included from imake.c:172: /usr/include/unistd.h:359:33: note: expected ‘char * const*’ but argument is of type ‘const char **’ 359 | extern int execvp(const char *, char *const *); | ^~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15configure: Use AC_SYS_LARGEFILE to enable large file supportAlan Coopersmith1-0/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19imake 1.0.9imake-1.0.9Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Add .git-blame-ignore-revs to hide whitespace commits from git blameAlan Coopersmith1-0/+16
To use this in your local repo clone, you will need to either run `git blame --ignore-revs-file .git-blame-ignore-revs` or set it permanently with `git config blame.ignoreRevsFile .git-blame-ignore-revs` Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17unifdef SIGNALRETURNSINTAlan Coopersmith1-8/+0
Signal handlers have been required to have a void return, not int, since C89. This #define hadn't been set in many years. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Simplify HAVE_MKSTEMP blockAlan Coopersmith1-4/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Make Emalloc() argument a size_t to match malloc()Alan Coopersmith1-6/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Fix -Wshadow warningsAlan Coopersmith1-11/+11
imake.c: In function ‘FindImakefile’: imake.c:662:27: warning: declaration of ‘Imakefile’ shadows a global declaration [-Wshadow] FindImakefile(const char *Imakefile) ^~~~~~~~~ imake.c:319:13: note: shadowed declaration is here const char *Imakefile = NULL; ^~~~~~~~~ imake.c: In function ‘define_os_defaults’: imake.c:1636:9: warning: declaration of ‘name’ shadows a previous local [-Wshadow] char name[PATH_MAX]; ^~~~ imake.c:1430:18: note: shadowed declaration is here struct utsname *name = NULL; ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-17Fix -Wsign-compare warningsAlan Coopersmith1-8/+8
imake.c: In function ‘ask_sun_compiler_for_versions’: imake.c:1200:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (len < sizeof(cmdtorun)) { ^ imake.c: In function ‘get_gcc’: imake.c:1380:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sizeof (gcc_path) / sizeof gcc_path[0]; i++) { ^ imake.c: In function ‘writetmpfile’: imake.c:2027:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (fwrite(buf, sizeof(char), cnt, fd) == -1) ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parametersAlan Coopersmith1-1/+2
configure.ac:130: warning: AC_OUTPUT should be used without arguments. configure.ac:130: You should run autoupdate. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-15Fix spelling/wording issuesAlan Coopersmith2-4/+4
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-15gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-15Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-16imake 1.0.8imake-1.0.8Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update README for gitlab migrationAlan Coopersmith2-16/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-23imake support for lcc compilerAndrew Savchenko1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=105136 Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2015-12-11README: reword status sectionAlan Coopersmith1-3/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-08Use SEEK_* names instead of raw numbers for fseek whence argumentAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-21Bump to 1.0.7imake-1.0.7Julien Cristau1-2/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2014-03-24Pass files to cpp via CLI arg instead of stdin to workaround gcc 4.8 changeGreg Turner1-3/+3
Replicates Alan Coopersmith's fix for xinit. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74031 Signed-off-by: Julien Cristau <jcristau@debian.org>
2013-08-18Replace fprintf with fputsJulien Cristau1-1/+1
Fix build failure with -Werror=format-security: imake.c:1008:5: error: format not a string literal and no format arguments [-Werror=format-security] fprintf (inFile, command); ^ Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-22imake 1.0.6imake-1.0.6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-06Avoid use of low-level troff markup that can't be lifted structurally.Eric S. Raymond1-50/+58
2013-01-19config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-2/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-04unifdef -U__UNIXOS2__Alan Coopersmith2-28/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-27Let configure pick cpp path on Solaris, instead of hardcoding in imakemdep.hAlan Coopersmith1-3/+0
Simply removing the definition lets the path found by configure be used, seems to be the simplest way to handle the move from /usr/ccs/lib/cpp on Solaris 10 and older to /usr/lib/cpp on Solaris 11 & later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-25Ensure inFile is always closed on error in cppit()Alan Coopersmith1-2/+5
Another instance of the can-return-in-rare-cases nature of LogFatal() raising red flags in static analysis. Resolves warning from Parfait 1.0.1: Error: File Leak File Leak: Leaked File inFile at line 1719 of imake.c in function 'cppit'. inFile initialized at line 1699 with fopen inFile leaks when inFile != NULL at line 1700 and fprintf(inFile, "%s\n", "/* imake - temporary file */") < 0 at line 1702. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-25Avoid closing inFile twice in CheckImakefileC if LogFatal returnsAlan Coopersmith1-1/+2
Imake's LogFatal() checks if it's being re-entered and if so, returns, so we can't mark it NORETURN, leading to static analyzers believing it can return even in call paths it shouldn't. Resolves warning from Parfait 1.0.1: Error: File Invalid File not Initialized: The value inFile is not initialized as a file. at line 748 of imake.c in function 'CheckImakefileC'. inFile initialized at line 738 with fopen(masterc, "r"). inFile destroyed at line 745 with fclose(inFile). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-07imake 1.0.5imake-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-10xmkmf.man: Remove instructions for "X Consortium" monolithic build treeAlan Coopersmith1-14/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Fix a bunch of "too many arguments for format" warningsAlan Coopersmith1-10/+10
Now that the log functions take variable arguments, don't need to pass empty strings when there is no argument for the format string. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Convert error logging functions to normal idiomsAlan Coopersmith1-23/+30
Allows use of printf attributes for checking format strings/arguments, gets rid of LogFatalI wrapper just used for casting int to char *. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Rework temp filename pointers into const & non-const partsAlan Coopersmith1-16/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2-52/+53
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Strip trailing whitespaceAlan Coopersmith12-67/+67
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-07Remove unused variable in get_sun_compiler_versionsAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-02Silence useless pedantry warning from find(1) when running cleanlinks.Adam Jackson1-1/+1
"find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments." Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
2010-10-30imake 1.0.4imake-1.0.4Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30Use autoconf standard HAVE_MKSTEMP instead of HAS_MKSTEMPAlan Coopersmith2-6/+5
We no longer need to maintain compatibility with the monolith Imakefile -D flags in the sources. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>