Commit Graph

41 Commits

Author SHA1 Message Date
Panu Matilainen ca8d1cf3f4 Add a build option for enabling address sanitizer, use for CI
Now that fakechroot preload is out of the way, this is suddenly far
more feasible, but we still need to kick glibc malloc debug out of
the way. ASAN is way more powerful so that's not a real loss.

There are some special cases to deal with:
ASAN and dlclose() are not great friends, and upstream basically
recommends simply not using dlclose() when ASAN is in use. So do that.
Python is such a mess that we have to disable it entirely for now.
2024-01-31 10:13:08 +02:00
Takuya Wakazono f401979a4c Don't use _nl_msg_cat_cntr if it's not available
musl doesn't need to use libintl from GNU gettext because it has its
own NLS implementation. Assuming _nl_msg_cat_cntr exists breaks the
build against the musl system.
2024-01-23 12:47:31 +02:00
Panu Matilainen 57f3711846 Fix unconditional dependency on non-POSIX GLOB_ONLYDIR flag
This regressed when we axed our internal glob copy in commit
66fa46c006. Luckily GLOB_ONLYDIR is only
an optimization so we can just skip it if not available.
2024-01-08 12:32:35 +02:00
Panu Matilainen 3be76d7144 Default to C.UTF-8 locale, allow fallback to C
Mostly everything around us is UTF-8 these days, we need to get on with
the times. Especially now that glibc >= 2.35 finally supports it too.
Default to C.UTF-8 but allow disabling it via cmake option to fallback
to the traditional C locale instead.

Fixes: #2587
2023-08-23 15:01:28 +03:00
Florian Festi 1bd0f9cd2e Make RUNDIR lower case (rundir)
to match all other directory related CMake variables. Yes, it looks like
RUNDIR was added to end up as a C macro which are typically upper case
(and there still is an RUNDIR C macro) but it looks weird in the
CMakeLists.txt file.
2023-07-17 15:54:47 +02:00
Panu Matilainen a2b49273aa Honor rpm vendor setting from cmake, use a saner name
The vendor was hardwired to "redhat" as a leftoever from early cmake
bootstrapping phase and bugs in the surrounding logic. Simplify the
setup somewhat: call the setting RPM_VENDOR and pass that around in the
code tree as well. The CANON fubar along with other similar weirdness
can thus remain hidden in the makemacros() cmake function.

Reported and initial patch by Neil Gompa.
2023-03-30 11:52:59 +03:00
Panu Matilainen e7b2478ffb Use cmake native PROJECT_FOO to pass around names and versions
Rids us of one layer of autotools compat, yay.
2022-10-21 14:39:03 +03:00
Panu Matilainen 160dfd75b8 Use proper form of #define for string constants in config.h.in
Using #cmakedefine only makes sense for conditional values, and behaves
in unexpected ways when used for other purposes.
2022-10-21 12:09:42 +03:00
Panu Matilainen 527be10240 Rename cmconfig.h.in to config.h.in now that it doesn't clash 2022-10-21 09:59:00 +03:00
jbj 043529894e Nuke'em again.
CVS patchset: 3344
CVS date: 1999/09/29 23:37:04
1999-09-29 23:37:04 +00:00
jbj a20c89d42b Check in time stamps again.
CVS patchset: 3343
CVS date: 1999/09/29 23:29:57
1999-09-29 23:29:57 +00:00
jbj 32942a7b6b Check in time stamps.
CVS patchset: 3342
CVS date: 1999/09/29 23:26:08
1999-09-29 23:26:08 +00:00
jbj 2daecca27b Eliminate generated files.
CVS patchset: 2750
CVS date: 1999/01/25 19:46:40
1999-01-25 19:46:40 +00:00
jbj 777388f163 Add required file.
CVS patchset: 2749
CVS date: 1999/01/25 15:07:44
1999-01-25 15:07:44 +00:00
ewt 179e9c159a 1) added more portability checks
2) use new dependency scheume
3) use autoheader

CVS patchset: 2026
CVS date: 1998/03/04 16:53:54
1998-03-04 16:53:54 +00:00
ewt 1e318ff6d1 various header file cleanups
CVS patchset: 1903
CVS date: 1997/11/18 03:13:56
1997-11-18 03:13:56 +00:00
ewt aceb7c9740 fixed SYS_SOCKET symbol
CVS patchset: 1898
CVS date: 1997/11/12 14:46:39
1997-11-12 14:46:39 +00:00
ewt 5bfbd87d1d fixed oldpatch stuff
CVS patchset: 1869
CVS date: 1997/10/22 03:22:17
1997-10-22 03:22:17 +00:00
ewt 7ade608775 added check for old patch versions
CVS patchset: 1868
CVS date: 1997/10/22 00:20:06
1997-10-22 00:20:06 +00:00
ewt dfe564e55d more osf getmntent_r() patches
CVS patchset: 1712
CVS date: 1997/06/25 16:10:19
1997-06-25 16:10:19 +00:00
ewt dda52c18d6 Changes for OSF/1 getmntinfo_r()
CVS patchset: 1708
CVS date: 1997/06/19 22:18:02
1997-06-19 22:18:02 +00:00
ewt bfad9c3271 First pass at SCO getmntent()
CVS patchset: 1702
CVS date: 1997/06/19 13:30:47
1997-06-19 13:30:47 +00:00
ewt aaecdd0b19 Fixed mntctl() checking
CVS patchset: 1690
CVS date: 1997/06/17 14:49:07
1997-06-17 14:49:07 +00:00
ewt 9b9de6ce15 Provide an alternate getmntent() if necessary.
CVS patchset: 1679
CVS date: 1997/06/02 19:59:07
1997-06-02 19:59:07 +00:00
ewt 9491610f7e added virtual query tag ability, fsnames query tag,
CVS patchset: 1668
CVS date: 1997/05/30 14:16:20
1997-05-30 14:16:20 +00:00
ewt c5c46a7c38 Use lchown() if it's available
CVS patchset: 1644
CVS date: 1997/05/20 15:28:25
1997-05-20 15:28:25 +00:00
ewt 1296efb89a Applied changes for AIX. This involved using <sys/select.h> if it's available.
CVS patchset: 1638
CVS date: 1997/05/16 15:32:57
1997-05-16 15:32:57 +00:00
ewt ba03c6c1f8 Check for chown() following symlinks
CVS patchset: 1631
CVS date: 1997/05/15 14:32:24
1997-05-15 14:32:24 +00:00
ewt 49a247317a Include sys/socket.h if it's available
CVS patchset: 1614
CVS date: 1997/05/07 19:27:21
1997-05-07 19:27:21 +00:00
ewt 80a62f5091 Look for limits.h (strtol.c uses it)
CVS patchset: 1610
CVS date: 1997/05/07 15:15:42
1997-05-07 15:15:42 +00:00
ewt 00237aeb99 added NEED_TIMEZONE, NEED_MYREALLOC
CVS patchset: 1604
CVS date: 1997/05/07 15:05:26
1997-05-07 15:05:26 +00:00
ewt 260850e9b8 Doesn't use cpio to unpack archives anymore...
CVS patchset: 1595
CVS date: 1997/05/05 20:46:58
1997-05-05 20:46:58 +00:00
ewt 250bbe29e1 Use strings.h on SCO (there's probably a better way of doing this, but this
will work so why bother?).

CVS patchset: 1590
CVS date: 1997/05/02 15:47:37
1997-05-02 15:47:37 +00:00
ewt acb0a9c928 Look for S_IFSOCK and define it as 0 if it doesn't exist (this is for SCO).
CVS patchset: 1563
CVS date: 1997/04/30 15:32:40
1997-04-30 15:32:40 +00:00
ewt d27dd974ec made WORDS_BIGENDIAN look like the rest of config.h
CVS patchset: 1502
CVS date: 1997/03/28 17:45:08
1997-03-28 17:45:08 +00:00
root 587687ee47 add WORDS_BIGENDIAN
CVS patchset: 1500
CVS date: 1997/03/28 03:22:36
1997-03-28 03:22:36 +00:00
ewt 5c343ab3c1 added HAVE_S_ISLNK and HAVE_S_ISSOCK
CVS patchset: 1493
CVS date: 1997/03/20 15:19:51
1997-03-20 15:19:51 +00:00
ewt fc3a2d33a9 added HAVE_DIRENT_H
CVS patchset: 1447
CVS date: 1997/02/20 02:20:46
1997-02-20 02:20:46 +00:00
ewt 87a10745a2 added STDC_HEADERS, HAVE_STRING_H, HAVE_REALPATH
CVS patchset: 1359
CVS date: 1997/01/24 19:05:23
1997-01-24 19:05:23 +00:00
ewt 11fda8ed4f added HAVE_HERRNO
CVS patchset: 1327
CVS date: 1997/01/20 22:34:26
1997-01-20 22:34:26 +00:00
ewt 176e84672b Initial revision
CVS patchset: 1310
CVS date: 1997/01/17 16:20:07
1997-01-17 16:20:07 +00:00