xorg-cf-files: Support Darwin/aarch64.diff -r1.33 -r1.34 pkgsrc/x11/xorg-cf-files/distinfo
(jperkin)
@@ -1,21 +1,21 @@ | @@ -1,21 +1,21 @@ | |||
1 | $NetBSD: distinfo,v 1.33 2021/10/26 11:34:54 nia Exp $ | 1 | $NetBSD: distinfo,v 1.34 2022/12/01 21:14:08 jperkin Exp $ | |
2 | 2 | |||
3 | BLAKE2s (xorg-cf-files-1.0.7.tar.bz2) = 7c971e7951a9369904f766fb5a9e6c78fd07703131e2a042e858e53480f27fd7 | 3 | BLAKE2s (xorg-cf-files-1.0.7.tar.bz2) = 7c971e7951a9369904f766fb5a9e6c78fd07703131e2a042e858e53480f27fd7 | |
4 | SHA512 (xorg-cf-files-1.0.7.tar.bz2) = 0dd73b9db9fc16bddc94ef23f11434be6ea2f8e0c7bc5ef3c3bfe6749e13843f88d397eed9f980bbbe9e74147172326bd3c3ccb7adedc9150302756e4b07191e | 4 | SHA512 (xorg-cf-files-1.0.7.tar.bz2) = 0dd73b9db9fc16bddc94ef23f11434be6ea2f8e0c7bc5ef3c3bfe6749e13843f88d397eed9f980bbbe9e74147172326bd3c3ccb7adedc9150302756e4b07191e | |
5 | Size (xorg-cf-files-1.0.7.tar.bz2) = 345575 bytes | 5 | Size (xorg-cf-files-1.0.7.tar.bz2) = 345575 bytes | |
6 | SHA1 (patch-OpenBSDLib.rules) = 65b02b660839adb6e9c13287396a794a4586d927 | 6 | SHA1 (patch-OpenBSDLib.rules) = 65b02b660839adb6e9c13287396a794a4586d927 | |
7 | SHA1 (patch-X11.rules) = 2dac9bcc111f63b2dd887967ea5fab656f52f06b | 7 | SHA1 (patch-X11.rules) = 2dac9bcc111f63b2dd887967ea5fab656f52f06b | |
8 | SHA1 (patch-X11.tmpl) = 3f0c5b8ad7a60cd0e1e47afcddaace936b9aaeed | 8 | SHA1 (patch-X11.tmpl) = 3f0c5b8ad7a60cd0e1e47afcddaace936b9aaeed | |
9 | SHA1 (patch-aa) = 795f9f2db4627cbb1ff9e54dfd4e5b7d3cc495f0 | 9 | SHA1 (patch-aa) = a5edc4de740bc20f173a8deaa0d0a68f06955a08 | |
10 | SHA1 (patch-ab) = f8f816409eb233ae4d8430bd9d43b9bf83c5711d | 10 | SHA1 (patch-ab) = f8f816409eb233ae4d8430bd9d43b9bf83c5711d | |
11 | SHA1 (patch-ac) = 1f977650d9e903a4ea72afc8541b7649cb989ab8 | 11 | SHA1 (patch-ac) = 1f977650d9e903a4ea72afc8541b7649cb989ab8 | |
12 | SHA1 (patch-ad) = 12c918ad85fa44518525d2c4bc628b342b8c0280 | 12 | SHA1 (patch-ad) = fcdddf191f676287b7f42e2b16729ed34afc6786 | |
13 | SHA1 (patch-ae) = 7f39d7b26f8b85529af0b9550ee213ed08aaddde | 13 | SHA1 (patch-ae) = d89ea1af22b3d0fab3cc431e3353c9efe4a92264 | |
14 | SHA1 (patch-af) = 27ee42892b9a3f53e43891ca0caec0301c849c85 | 14 | SHA1 (patch-af) = 42c0e0738a5ca20c2f7aa09684630093970c1dee | |
15 | SHA1 (patch-ag) = d06e660d887fa457d13ac9e9e9469e20995c95c2 | 15 | SHA1 (patch-ag) = b7c07619141df8d8ae718732343fd185098bdafb | |
16 | SHA1 (patch-ah) = 9b64b2e5f419ab190d47dd8156b8f84634fd6a36 | 16 | SHA1 (patch-ah) = 9b64b2e5f419ab190d47dd8156b8f84634fd6a36 | |
17 | SHA1 (patch-ai) = 455b398bba0d06ded08ed99f1e0e85cc4ff20449 | 17 | SHA1 (patch-ai) = fd846dba8f2e90ebf039cba68f35ceb6351c19a6 | |
18 | SHA1 (patch-aj) = 3be677041b6bff008caa1375d1e6dd5c90d9f501 | 18 | SHA1 (patch-aj) = 3be677041b6bff008caa1375d1e6dd5c90d9f501 | |
19 | SHA1 (patch-ak) = dba7e9f6bd9043e438bf6f309a5dc6f424204fd9 | 19 | SHA1 (patch-ak) = ec4e8c30782e3081a84b8c3bd8ab71961a0f13cb | |
20 | SHA1 (patch-gnuLib.rules) = 44a39881b4f4b6a10250f7ae4b4508af76cef71d | 20 | SHA1 (patch-gnuLib.rules) = 44a39881b4f4b6a10250f7ae4b4508af76cef71d | |
21 | SHA1 (patch-sv4Lib.rules) = f7ea2b29a8d3f4e866578fc81d0bbb6a3e598bb3 | 21 | SHA1 (patch-sv4Lib.rules) = f7ea2b29a8d3f4e866578fc81d0bbb6a3e598bb3 |
@@ -1,51 +1,51 @@ | @@ -1,51 +1,51 @@ | |||
1 | $NetBSD: patch-aa,v 1.4 2015/12/27 11:31:54 wiz Exp $ | 1 | $NetBSD: patch-aa,v 1.5 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | --- NetBSD.cf.orig 2009-10-16 21:45:42.000000000 +0000 | 3 | --- NetBSD.cf.orig 2021-08-02 01:00:38 | |
4 | +++ NetBSD.cf | 4 | +++ NetBSD.cf | |
5 | @@ -126,7 +126,7 @@ | 5 | @@ -126,7 +126,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
6 | # if ((OSMajorVersion == 2 && OSMinorVersion == 99 && OSTeenyVersion < 11) || \ | 6 | # if ((OSMajorVersion == 2 && OSMinorVersion == 99 && OSTeenyVersion < 11) || \ | |
7 | (OSMajorVersion == 2 && OSMinorVersion < 99) || \ | 7 | (OSMajorVersion == 2 && OSMinorVersion < 99) || \ | |
8 | (OSMajorVersion < 2)) | 8 | (OSMajorVersion < 2)) | |
9 | -# define LibraryMTDefines -DUSE_NBSD_THREADLIB | 9 | -# define LibraryMTDefines -DUSE_NBSD_THREADLIB | |
10 | +# define LibraryMTDefines @@NETBSD_THREADLIB@@ | 10 | +# define LibraryMTDefines @@NETBSD_THREADLIB@@ | |
11 | # endif | 11 | # endif | |
12 | # define SystemMTDefines -D_REENTRANT | 12 | # define SystemMTDefines -D_REENTRANT | |
13 | # define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI | 13 | # define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI | |
14 | @@ -150,7 +150,7 @@ | 14 | @@ -150,7 +150,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
15 | #define MkdirHierCmd mkdir -p | 15 | #define MkdirHierCmd mkdir -p | |
16 | 16 | |||
17 | #undef CcCmd | 17 | #undef CcCmd | |
18 | -#define CcCmd gcc | 18 | -#define CcCmd gcc | |
19 | +#define CcCmd @@PKGSRC_CC@@ | 19 | +#define CcCmd @@PKGSRC_CC@@ | |
20 | #ifndef DefaultCCOptions | 20 | #ifndef DefaultCCOptions | |
21 | #if defined(UseInstalled) | 21 | #if defined(UseInstalled) | |
22 | #define DefaultCCOptions /**/ | 22 | #define DefaultCCOptions /**/ | |
23 | @@ -166,7 +166,7 @@ | 23 | @@ -166,7 +166,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
24 | #endif | 24 | #endif | |
25 | #endif | 25 | #endif | |
26 | 26 | |||
27 | -#define CppCmd cpp | 27 | -#define CppCmd cpp | |
28 | +#define CppCmd @@PKGSRC_CPP@@ | 28 | +#define CppCmd @@PKGSRC_CPP@@ | |
29 | #define StandardCppOptions -traditional | 29 | #define StandardCppOptions -traditional | |
30 | #define StandardCppDefines /**/ | 30 | #define StandardCppDefines /**/ | |
31 | #define PreProcessCmd CcCmd -E | 31 | #define PreProcessCmd CcCmd -E | |
32 | @@ -199,6 +199,8 @@ | 32 | @@ -199,6 +199,8 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
33 | # ifndef DoLoadableServer | 33 | # ifndef DoLoadableServer | |
34 | # define DoLoadableServer YES | 34 | # define DoLoadableServer YES | |
35 | # endif | 35 | # endif | |
36 | +#elif defined(ia64Architecture) || defined(AMD64Architecture) | 36 | +#elif defined(ia64Architecture) || defined(AMD64Architecture) | |
37 | +#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64 | 37 | +#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64 | |
38 | #else | 38 | #else | |
39 | # ifndef DoLoadableServer | 39 | # ifndef DoLoadableServer | |
40 | # define DoLoadableServer NO | 40 | # define DoLoadableServer NO | |
41 | @@ -344,6 +346,10 @@ | 41 | @@ -342,6 +344,10 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
42 | */ | |||
43 | #ifndef HasPerl | |||
42 | #define HasPerl NO | 44 | #define HasPerl NO | |
43 | #endif | |||
44 | ||||
45 | +#if defined(AMD64Architecture) | |||
46 | +# define HasMTRRBuiltin YES | |||
47 | +#endif | 45 | +#endif | |
48 | + | 46 | + | |
47 | +#if defined(AMD64Architecture) | |||
48 | +# define HasMTRRBuiltin YES | |||
49 | #endif | |||
50 | ||||
49 | /* | 51 | /* | |
50 | * NetBSD doesn't have gperf in default system | |||
51 | * you may override this in host.def if you installed perl from the packages |
@@ -1,31 +1,31 @@ | @@ -1,31 +1,31 @@ | |||
1 | $NetBSD: patch-ae,v 1.4 2015/07/15 17:21:10 dholland Exp $ | 1 | $NetBSD: patch-ae,v 1.5 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | --- DragonFly.cf.orig 2010-05-16 12:38:48.000000000 +0200 | 3 | --- DragonFly.cf.orig 2021-08-02 01:00:38 | |
4 | +++ DragonFly.cf 2010-05-16 12:41:18.000000000 +0200 | 4 | +++ DragonFly.cf | |
5 | @@ -96,12 +96,12 @@ | 5 | @@ -96,12 +96,12 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
6 | #define HasFlex YES | 6 | #define HasFlex YES | |
7 | 7 | |||
8 | #ifndef CcCmd | 8 | #ifndef CcCmd | |
9 | -# define CcCmd cc | 9 | -# define CcCmd cc | |
10 | +# define CcCmd @@PKGSRC_CC@@ | 10 | +# define CcCmd @@PKGSRC_CC@@ | |
11 | #endif | 11 | #endif | |
12 | #ifndef CplusplusCmd | 12 | #ifndef CplusplusCmd | |
13 | -# define CplusplusCmd c++ | 13 | -# define CplusplusCmd c++ | |
14 | +# define CplusplusCmd @@PKGSRC_CXX@@ | 14 | +# define CplusplusCmd @@PKGSRC_CXX@@ | |
15 | #endif | 15 | #endif | |
16 | -#define CppCmd /usr/bin/cpp | 16 | -#define CppCmd /usr/bin/cpp | |
17 | +#define CppCmd @@PKGSRC_CPP@@ | 17 | +#define CppCmd @@PKGSRC_CPP@@ | |
18 | #define PreProcessCmd CppCmd | 18 | #define PreProcessCmd CppCmd | |
19 | #define StandardCppOptions -traditional | 19 | #define StandardCppOptions -traditional | |
20 | #define StandardCppDefines /**/ | 20 | #define StandardCppDefines /**/ | |
21 | @@ -116,10 +116,6 @@ | 21 | @@ -115,10 +115,6 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
22 | # define NoSystemWarn | |||
22 | # endif | 23 | # endif | |
23 | # define DefaultCCOptions -ansi NoSystemWarn -Dasm=__asm GccWarningOptions | 24 | # define DefaultCCOptions -ansi NoSystemWarn -Dasm=__asm GccWarningOptions | |
24 | #endif | 25 | -#endif | |
25 | -#ifndef ExtraLibraries | 26 | -#ifndef ExtraLibraries | |
26 | -/* support for multi-byte locales is in libxpg4 rather than libc */ | 27 | -/* support for multi-byte locales is in libxpg4 rather than libc */ | |
27 | -#define ExtraLibraries -lxpg4 | 28 | -#define ExtraLibraries -lxpg4 | |
28 | -#endif | 29 | #endif | |
29 | #define HasSetUserContext YES | 30 | #define HasSetUserContext YES | |
30 | #define HasGetpeereid YES | 31 | #define HasGetpeereid YES | |
31 | #define HasMTRRSupport YES |
@@ -1,51 +1,68 @@ | @@ -1,51 +1,68 @@ | |||
1 | $NetBSD: patch-ad,v 1.1.1.1 2006/12/19 22:54:51 joerg Exp $ | 1 | $NetBSD: patch-ad,v 1.2 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | --- darwin.cf.orig 2005-12-06 11:18:05.000000000 +0100 | 3 | Support aarch64. | |
4 | +++ darwin.cf 2005-12-06 11:20:10.000000000 +0100 | 4 | ||
5 | @@ -97,7 +97,7 @@ | 5 | --- darwin.cf.orig 2021-08-02 01:00:38 | |
6 | +++ darwin.cf | |||
7 | @@ -97,7 +97,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |||
6 | * Turn off to build on raw Darwin systems. | 8 | * Turn off to build on raw Darwin systems. | |
7 | */ | 9 | */ | |
8 | #ifndef DarwinQuartzSupport | 10 | #ifndef DarwinQuartzSupport | |
9 | -# define DarwinQuartzSupport YES | 11 | -# define DarwinQuartzSupport YES | |
10 | +# define DarwinQuartzSupport @@DARWIN_USE_QUARTZ@@ | 12 | +# define DarwinQuartzSupport @@DARWIN_USE_QUARTZ@@ | |
11 | #endif | 13 | #endif | |
12 | 14 | |||
13 | #if DarwinQuartzSupport | 15 | #if DarwinQuartzSupport | |
14 | @@ -170,7 +170,7 @@ | 16 | @@ -170,7 +170,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
15 | * so we use the 3.1-based version in this case. | 17 | * so we use the 3.1-based version in this case. | |
16 | */ | 18 | */ | |
17 | #if (GccMajorVersion == 3) && (GccMinorVersion == 3) | 19 | #if (GccMajorVersion == 3) && (GccMinorVersion == 3) | |
18 | -# define CppCmd /usr/bin/cpp3 | 20 | -# define CppCmd /usr/bin/cpp3 | |
19 | +# define CppCmd /usr/bin/cpp | 21 | +# define CppCmd /usr/bin/cpp | |
20 | #else | 22 | #else | |
21 | # define CppCmd /usr/bin/cpp | 23 | # define CppCmd /usr/bin/cpp | |
22 | #endif | 24 | #endif | |
23 | @@ -184,8 +184,8 @@ | 25 | @@ -184,8 +184,8 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
24 | #endif | 26 | #endif | |
25 | 27 | |||
26 | /* we have a gcc compatible compiler, but its not called gcc */ | 28 | /* we have a gcc compatible compiler, but its not called gcc */ | |
27 | -#define CcCmd /usr/bin/cc | 29 | -#define CcCmd /usr/bin/cc | |
28 | -#define CplusplusCmd /usr/bin/c++ | 30 | -#define CplusplusCmd /usr/bin/c++ | |
29 | +#define CcCmd @@PKGSRC_CC@@ | 31 | +#define CcCmd @@PKGSRC_CC@@ | |
30 | +#define CplusplusCmd @@PKGSRC_CXX@@ | 32 | +#define CplusplusCmd @@PKGSRC_CXX@@ | |
31 | 33 | |||
32 | /* default flags to pass to cc */ | 34 | /* default flags to pass to cc */ | |
33 | #ifndef DefaultCCOptions | 35 | #ifndef DefaultCCOptions | |
34 | @@ -213,7 +213,7 @@ | 36 | @@ -213,7 +213,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
35 | #ifdef PpcDarwinArchitecture | 37 | #ifdef PpcDarwinArchitecture | |
36 | # define DarwinMachineDefines -D__powerpc__ | 38 | # define DarwinMachineDefines -D__powerpc__ | |
37 | # if HasGcc3 | 39 | # if HasGcc3 | |
38 | -# define OptimizedCDebugFlags -Os | 40 | -# define OptimizedCDebugFlags -Os | |
39 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | 41 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | |
40 | # else | 42 | # else | |
41 | # define OptimizedCDebugFlags -O2 | 43 | # define OptimizedCDebugFlags -O2 | |
42 | # endif | 44 | # endif | |
43 | @@ -223,7 +223,7 @@ | 45 | @@ -223,13 +223,22 @@ XCOMM operating system: OSName (OSMajorVersion./**/OS | |
44 | #ifdef i386DarwinArchitecture | 46 | #ifdef i386DarwinArchitecture | |
45 | # define DarwinMachineDefines -D__i386__ | 47 | # define DarwinMachineDefines -D__i386__ | |
46 | # if HasGcc3 | 48 | # if HasGcc3 | |
47 | -# define OptimizedCDebugFlags -Os | 49 | -# define OptimizedCDebugFlags -Os | |
48 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | 50 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | |
49 | # else | 51 | # else | |
50 | # define OptimizedCDebugFlags -O2 -fno-strength-reduce | 52 | # define OptimizedCDebugFlags -O2 -fno-strength-reduce | |
51 | # endif | 53 | # endif | |
54 | # define ByteOrder X_LITTLE_ENDIAN | |||
55 | #endif /* i386DarwinArchitecture */ | |||
56 | ||||
57 | +#ifdef aarch64DarwinArchitecture | |||
58 | +# define DarwinMachineDefines -D__aarch64__ | |||
59 | +# if HasGcc3 | |||
60 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | |||
61 | +# else | |||
62 | +# define OptimizedCDebugFlags -O2 -fno-strength-reduce | |||
63 | +# endif | |||
64 | +# define ByteOrder X_LITTLE_ENDIAN | |||
65 | +#endif | |||
66 | ||||
67 | #ifdef x86_64DarwinArchitecture | |||
68 | # define DarwinMachineDefines -D__x86_64__ |
@@ -1,46 +1,46 @@ | @@ -1,46 +1,46 @@ | |||
1 | $NetBSD: patch-af,v 1.9 2016/09/20 16:37:24 jperkin Exp $ | 1 | $NetBSD: patch-af,v 1.10 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | - Ensure all programs and libraries have a LOCALBASE rpath. | 3 | - Ensure all programs and libraries have a LOCALBASE rpath. | |
4 | - Disable Solaris64bitSubdir, at least until multi-arch is supported. | 4 | - Disable Solaris64bitSubdir, at least until multi-arch is supported. | |
5 | - Use pkgsrc CC, CXX, CFLAGS and INSTALL. | 5 | - Use pkgsrc CC, CXX, CFLAGS and INSTALL. | |
6 | 6 | |||
7 | --- sun.cf.orig 2015-12-22 01:28:02.000000000 +0000 | 7 | --- sun.cf.orig 2021-08-02 01:00:39 | |
8 | +++ sun.cf | 8 | +++ sun.cf | |
9 | @@ -430,9 +430,9 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 9 | @@ -430,9 +430,9 @@ XCOMM SunPro C++ CplusplusCompilerMajorVersion./**/Cpl | |
10 | # endif | 10 | # endif | |
11 | # endif | 11 | # endif | |
12 | # if OSMinorVersion > 10 | 12 | # if OSMinorVersion > 10 | |
13 | -# define InstallCmd /usr/gnu/bin/install | 13 | -# define InstallCmd /usr/gnu/bin/install | |
14 | +# define InstallCmd @@INSTALL@@ | 14 | +# define InstallCmd @@INSTALL@@ | |
15 | # elif OSMinorVersion > 3 | 15 | # elif OSMinorVersion > 3 | |
16 | -# define InstallCmd /usr/ucb/install | 16 | -# define InstallCmd /usr/ucb/install | |
17 | +# define InstallCmd @@INSTALL@@ | 17 | +# define InstallCmd @@INSTALL@@ | |
18 | # endif | 18 | # endif | |
19 | #ifndef LargefileDefines | 19 | #ifndef LargefileDefines | |
20 | # if (OSMajorVersion > 5) || (OSMajorVersion == 5 && OSMinorVersion >= 6) | 20 | # if (OSMajorVersion > 5) || (OSMajorVersion == 5 && OSMinorVersion >= 6) | |
21 | @@ -682,29 +682,29 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 21 | @@ -682,29 +682,29 @@ XCOMM SunPro C++ CplusplusCompilerMajorVersion./**/Cpl | |
22 | # endif | 22 | # endif | |
23 | # if HasGcc2 | 23 | # if HasGcc2 | |
24 | # ifndef CcCmd | 24 | # ifndef CcCmd | |
25 | -# define CcCmd gcc | 25 | -# define CcCmd gcc | |
26 | +# define CcCmd @@PKGSRC_CC@@ | 26 | +# define CcCmd @@PKGSRC_CC@@ | |
27 | +# endif | 27 | # endif | |
28 | +# ifndef CppCmd | 28 | +# ifndef CppCmd | |
29 | +# define CppCmd @@PKGSRC_CPP@@ | 29 | +# define CppCmd @@PKGSRC_CPP@@ | |
30 | +# endif | 30 | +# endif | |
31 | +# ifndef CplusplusCmd | 31 | +# ifndef CplusplusCmd | |
32 | +# define CplusplusCmd @@PKGSRC_CXX@@ | 32 | +# define CplusplusCmd @@PKGSRC_CXX@@ | |
33 | # endif | 33 | +# endif | |
34 | # ifndef AsCmd | 34 | # ifndef AsCmd | |
35 | # define AsCmd CcCmd -c -x assembler | 35 | # define AsCmd CcCmd -c -x assembler | |
36 | # endif | 36 | # endif | |
37 | # ifndef OptimizedCDebugFlags | 37 | # ifndef OptimizedCDebugFlags | |
38 | -# ifdef i386Architecture | 38 | -# ifdef i386Architecture | |
39 | -# define OptimizedCDebugFlags DefaultGcc2i386Opt | 39 | -# define OptimizedCDebugFlags DefaultGcc2i386Opt | |
40 | -# elif defined(AMD64Architecture) | 40 | -# elif defined(AMD64Architecture) | |
41 | -# define OptimizedCDebugFlags DefaultGcc2AMD64Opt | 41 | -# define OptimizedCDebugFlags DefaultGcc2AMD64Opt | |
42 | -# else | 42 | -# else | |
43 | -# define OptimizedCDebugFlags -O2 | 43 | -# define OptimizedCDebugFlags -O2 | |
44 | -# endif | 44 | -# endif | |
45 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | 45 | +# define OptimizedCDebugFlags @@PKGSRC_CFLAGS@@ | |
46 | # endif | 46 | # endif | |
@@ -48,40 +48,40 @@ $NetBSD: patch-af,v 1.9 2016/09/20 16:37 | @@ -48,40 +48,40 @@ $NetBSD: patch-af,v 1.9 2016/09/20 16:37 | |||
48 | -# if OSMajorVersion == 5 && OSMinorVersion > 6 && defined(i386Architecture) | 48 | -# if OSMajorVersion == 5 && OSMinorVersion > 6 && defined(i386Architecture) | |
49 | +# if OSMajorVersion == 5 && OSMinorVersion > 6 && OSMinorVersion < 8 && defined(i386Architecture) | 49 | +# if OSMajorVersion == 5 && OSMinorVersion > 6 && OSMinorVersion < 8 && defined(i386Architecture) | |
50 | /* This is to work around what appears to be a PIC bug in some gcc/egcs | 50 | /* This is to work around what appears to be a PIC bug in some gcc/egcs | |
51 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ | 51 | versions that shows up with the Solaris 7/x86 <ctype.h>. */ | |
52 | # define SharedLibraryLdCmd $(LD) | 52 | # define SharedLibraryLdCmd $(LD) | |
53 | # define SharedLibraryLoadFlags -G -z textwarn | 53 | # define SharedLibraryLoadFlags -G -z textwarn | |
54 | # else | 54 | # else | |
55 | # define SharedLibraryLdCmd $(CC) | 55 | # define SharedLibraryLdCmd $(CC) | |
56 | -# define SharedLibraryLoadFlags -shared -z text | 56 | -# define SharedLibraryLoadFlags -shared -z text | |
57 | +# define SharedLibraryLoadFlags -shared -z text RpathLoadFlags | 57 | +# define SharedLibraryLoadFlags -shared -z text RpathLoadFlags | |
58 | # endif | 58 | # endif | |
59 | # endif | 59 | # endif | |
60 | # else | 60 | # else | |
61 | @@ -829,7 +829,7 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 61 | @@ -829,7 +829,7 @@ XCOMM SunPro C++ CplusplusCompilerMajorVersion./**/Cpl | |
62 | # endif | 62 | # endif | |
63 | #endif | 63 | #endif | |
64 | #ifndef Mapfile_NoExData | 64 | #ifndef Mapfile_NoExData | |
65 | -# if defined(SparcArchitecture) | 65 | -# if defined(SparcArchitecture) | |
66 | +# if defined(SparcArchitecture) || defined(Sparc64Architecture) | 66 | +# if defined(SparcArchitecture) || defined(Sparc64Architecture) | |
67 | /* SPARC archictecture requires PLT section in .data be executable, so | 67 | /* SPARC archictecture requires PLT section in .data be executable, so | |
68 | we can only make .bss, not all of .data no-exec on SPARC */ | 68 | we can only make .bss, not all of .data no-exec on SPARC */ | |
69 | # define Mapfile_NoExData /**/ | 69 | # define Mapfile_NoExData /**/ | |
70 | @@ -846,7 +846,7 @@ XCOMM SunPro C++ CplusplusCompilerMajorV | 70 | @@ -846,7 +846,7 @@ MAPFILES_FOR_PROGS = Mapfile_BssAlign Mapfile_NoExStac | |
71 | MAPFILES_FOR_PROGS = Mapfile_BssAlign Mapfile_NoExStack | 71 | MAPFILES_FOR_PROGS = Mapfile_BssAlign Mapfile_NoExStack | |
72 | /* ExtraLoadFlags apply to all binaries - programs & libraries */ | 72 | /* ExtraLoadFlags apply to all binaries - programs & libraries */ | |
73 | # ifndef ExtraLoadFlags | 73 | # ifndef ExtraLoadFlags | |
74 | -# define ExtraLoadFlags LazyLoadFlag $(MAPFILES_FOR_ALL) | 74 | -# define ExtraLoadFlags LazyLoadFlag $(MAPFILES_FOR_ALL) | |
75 | +# define ExtraLoadFlags RpathLoadFlags LazyLoadFlag $(MAPFILES_FOR_ALL) | 75 | +# define ExtraLoadFlags RpathLoadFlags LazyLoadFlag $(MAPFILES_FOR_ALL) | |
76 | # endif | 76 | # endif | |
77 | /* ExtraLoadOptions only apply to programs */ | 77 | /* ExtraLoadOptions only apply to programs */ | |
78 | # ifndef ExtraLoadOptions | 78 | # ifndef ExtraLoadOptions | |
79 | @@ -863,7 +863,7 @@ MAPFILES_FOR_PROGS = Mapfile_BssAlign Ma | 79 | @@ -863,7 +863,7 @@ MAPFILES_FOR_PROGS = Mapfile_BssAlign Mapfile_NoExStac | |
80 | # endif | 80 | # endif | |
81 | #endif | 81 | #endif | |
82 | 82 | |||
83 | -#ifdef Solaris64bitSubdir | 83 | -#ifdef Solaris64bitSubdir | |
84 | +#ifdef NotYetSolaris64bitSubdir | 84 | +#ifdef NotYetSolaris64bitSubdir | |
85 | # define LibDirName Concat3(lib,/,Solaris64bitSubdir) | 85 | # define LibDirName Concat3(lib,/,Solaris64bitSubdir) | |
86 | #endif | 86 | #endif | |
87 | 87 |
@@ -1,53 +1,62 @@ | @@ -1,53 +1,62 @@ | |||
1 | $NetBSD: patch-ag,v 1.7 2017/01/06 21:12:39 tez Exp $ | 1 | $NetBSD: patch-ag,v 1.8 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | Add __ppc64__ and __arm__ | 3 | Add __ppc64__ and __arm__ | |
4 | Recognize __sun as well as sun | 4 | Recognize __sun as well as sun | |
5 | Add __ia64__ | 5 | Add __ia64__ | |
6 | Also recognize __sparc__ apparently now needed for gcc49 on solaris sparc | 6 | Also recognize __sparc__ apparently now needed for gcc49 on solaris sparc | |
7 | to avoid -M /usr/lib/ld/map.noexdata which in does not work on SPARC | 7 | to avoid -M /usr/lib/ld/map.noexdata which in does not work on SPARC | |
8 | 8 | |||
9 | --- Imake.cf.orig 2015-12-22 01:28:02.000000000 +0000 | 9 | --- Imake.cf.orig 2021-08-02 01:00:38 | |
10 | +++ Imake.cf | 10 | +++ Imake.cf | |
11 | @@ -25,9 +25,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v | 11 | @@ -25,14 +25,19 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1 | |
12 | # define MacroIncludeFile <darwin.cf> | 12 | # define MacroIncludeFile <darwin.cf> | |
13 | # define MacroFile darwin.cf | 13 | # define MacroFile darwin.cf | |
14 | # define DarwinArchitecture | 14 | # define DarwinArchitecture | |
15 | -# ifdef __ppc__ | 15 | -# ifdef __ppc__ | |
16 | +# if defined __ppc__ || defined __ppc64__ | 16 | +# if defined __ppc__ || defined __ppc64__ | |
17 | # define PpcDarwinArchitecture | 17 | # define PpcDarwinArchitecture | |
18 | # undef __ppc__ | 18 | # undef __ppc__ | |
19 | +# undef __ppc64__ | 19 | +# undef __ppc64__ | |
20 | # endif | 20 | # endif | |
21 | # ifdef __i386__ | 21 | # ifdef __i386__ | |
22 | # define i386DarwinArchitecture | 22 | # define i386DarwinArchitecture | |
23 | @@ -255,6 +256,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v | 23 | # undef __i386__ | |
24 | # endif | |||
25 | +# ifdef __aarch64__ | |||
26 | +# define aarch64DarwinArchitecture | |||
27 | +# undef __aarch64__ | |||
28 | +# endif | |||
29 | # ifdef __x86_64__ | |||
30 | # define x86_64DarwinArchitecture | |||
31 | # undef __x86_64__ | |||
32 | @@ -255,6 +260,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1 | |||
24 | # define AMD64Architecture | 33 | # define AMD64Architecture | |
25 | # undef __x86_64__ | 34 | # undef __x86_64__ | |
26 | # endif | 35 | # endif | |
27 | +# ifdef __ia64__ | 36 | +# ifdef __ia64__ | |
28 | +# define ia64Architecture | 37 | +# define ia64Architecture | |
29 | +# undef __ia64__ | 38 | +# undef __ia64__ | |
30 | +# endif | 39 | +# endif | |
31 | #endif /* NetBSD */ | 40 | #endif /* NetBSD */ | |
32 | 41 | |||
33 | /* Systems based on kernel of NetBSD */ | 42 | /* Systems based on kernel of NetBSD */ | |
34 | @@ -352,7 +357,7 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v | 43 | @@ -352,7 +361,7 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1 | |
35 | # endif | 44 | # endif | |
36 | #endif /* AMOEBA */ | 45 | #endif /* AMOEBA */ | |
37 | 46 | |||
38 | -#ifdef sun | 47 | -#ifdef sun | |
39 | +#if defined(sun) || defined(__sun) | 48 | +#if defined(sun) || defined(__sun) | |
40 | # define MacroIncludeFile <sun.cf> | 49 | # define MacroIncludeFile <sun.cf> | |
41 | # define MacroFile sun.cf | 50 | # define MacroFile sun.cf | |
42 | # ifdef SVR4 | 51 | # ifdef SVR4 | |
43 | @@ -363,6 +368,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v | 52 | @@ -361,6 +370,10 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.88 2003/12/1 | |
44 | # undef sparc | |||
45 | # define SparcArchitecture | |||
46 | # endif | 53 | # endif | |
47 | +# ifdef __sparc__ | 54 | # ifdef sparc | |
48 | +# undef __sparc__ | 55 | # undef sparc | |
49 | +# define SparcArchitecture | 56 | +# define SparcArchitecture | |
50 | +# endif | 57 | +# endif | |
58 | +# ifdef __sparc__ | |||
59 | +# undef __sparc__ | |||
60 | # define SparcArchitecture | |||
61 | # endif | |||
51 | # ifdef __sparcv9 | 62 | # ifdef __sparcv9 | |
52 | # undef __sparcv9 | |||
53 | # define Sparc64Architecture |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | $NetBSD: patch-ai,v 1.3 2012/04/12 14:01:17 hans Exp $ | 1 | $NetBSD: patch-ai,v 1.4 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | --- Imake.tmpl.orig 2009-10-16 21:45:42.000000000 +0000 | 3 | --- Imake.tmpl.orig 2021-08-02 01:00:38 | |
4 | +++ Imake.tmpl | 4 | +++ Imake.tmpl | |
5 | @@ -898,24 +898,18 @@ TCLIBDIR = TclLibDir | 5 | @@ -898,24 +898,18 @@ TCLIBDIR = TclLibDir | |
6 | #ifndef ManPath | 6 | #ifndef ManPath | |
7 | #define ManPath ManDirectoryRoot | 7 | #define ManPath ManDirectoryRoot | |
8 | #endif | 8 | #endif | |
9 | -#ifndef ManSourcePath | 9 | -#ifndef ManSourcePath | |
10 | +#undef ManSourcePath | 10 | +#undef ManSourcePath | |
11 | #define ManSourcePath $(MANPATH)/man | 11 | #define ManSourcePath $(MANPATH)/man | |
12 | -#endif | 12 | -#endif | |
13 | -#ifndef ManDir | 13 | -#ifndef ManDir | |
14 | +#undef ManDir | 14 | +#undef ManDir | |
15 | #define ManDir $(MANSOURCEPATH)$(MANSUFFIX) | 15 | #define ManDir $(MANSOURCEPATH)$(MANSUFFIX) | |
16 | -#endif | 16 | -#endif | |
@@ -83,24 +83,24 @@ $NetBSD: patch-ai,v 1.3 2012/04/12 14:01 | @@ -83,24 +83,24 @@ $NetBSD: patch-ai,v 1.3 2012/04/12 14:01 | |||
83 | -#endif | 83 | -#endif | |
84 | -#endif | 84 | -#endif | |
85 | -#ifndef AdminManSuffix | 85 | -#ifndef AdminManSuffix | |
86 | -#if SystemV || SystemV4 | 86 | -#if SystemV || SystemV4 | |
87 | -#define AdminManSuffix 1m /* use just one tab or cpp will die */ | 87 | -#define AdminManSuffix 1m /* use just one tab or cpp will die */ | |
88 | -#else | 88 | -#else | |
89 | +#undef AdminManSuffix | 89 | +#undef AdminManSuffix | |
90 | #define AdminManSuffix 8 /* use just one tab or cpp will die */ | 90 | #define AdminManSuffix 8 /* use just one tab or cpp will die */ | |
91 | -#endif | 91 | -#endif | |
92 | -#endif | 92 | -#endif | |
93 | #ifndef ExpandManNames | 93 | #ifndef ExpandManNames | |
94 | #if SystemV | 94 | #if SystemV | |
95 | #define ExpandManNames NO | 95 | #define ExpandManNames NO | |
96 | @@ -2049,6 +2021,10 @@ MODLDCOMBINEFLAGS = ModuleLdCombineFlags | 96 | @@ -2048,6 +2020,10 @@ MODLDCOMBINEFLAGS = ModuleLdCombineFlags | |
97 | INSTMANFLAGS = InstManFlags /* install flags for man pages */ | |||
97 | INSTDATFLAGS = InstDatFlags /* install flags for data files */ | 98 | INSTDATFLAGS = InstDatFlags /* install flags for data files */ | |
98 | INSTKMEMFLAGS = InstKmemFlags /* install flags for /dev/kmem progs */ | 99 | INSTKMEMFLAGS = InstKmemFlags /* install flags for /dev/kmem progs */ | |
99 | 100 | + | ||
100 | +#ifdef RealProjectRoot | 101 | +#ifdef RealProjectRoot | |
101 | +REALPROJECTROOT = RealProjectRoot | 102 | +REALPROJECTROOT = RealProjectRoot | |
102 | +#endif | 103 | +#endif | |
103 | + | 104 | ||
104 | #ifdef ProjectRoot | 105 | #ifdef ProjectRoot | |
105 | PROJECTROOT = ProjectRoot | 106 | PROJECTROOT = ProjectRoot | |
106 | #endif |
@@ -1,34 +1,34 @@ | @@ -1,34 +1,34 @@ | |||
1 | $NetBSD: patch-ak,v 1.2 2012/03/19 12:34:24 joerg Exp $ | 1 | $NetBSD: patch-ak,v 1.3 2022/12/01 21:14:09 jperkin Exp $ | |
2 | 2 | |||
3 | The standard says that failing () doesn't stop the shell, even when -e | 3 | The standard says that failing () doesn't stop the shell, even when -e | |
4 | is set, so () constructs need || exit $? on the end. (Which needs to be | 4 | is set, so () constructs need || exit $? on the end. (Which needs to be | |
5 | $$? when it's coming from inside make.) | 5 | $$? when it's coming from inside make.) | |
6 | 6 | |||
7 | --- Imake.rules.orig 2009-10-16 21:45:42.000000000 +0000 | 7 | --- Imake.rules.orig 2021-08-02 01:00:38 | |
8 | +++ Imake.rules | 8 | +++ Imake.rules | |
9 | @@ -534,9 +534,9 @@ clean cleantc:: @@\ | 9 | @@ -534,9 +534,9 @@ -if [ -f program ]; then RemoveFile(Concat(program,~)) | |
10 | set +x; \ @@\ | 10 | set +x; \ @@\ | |
11 | else \ @@\ | 11 | else \ @@\ | |
12 | if [ -h dir ]; then \ @@\ | 12 | if [ -h dir ]; then \ @@\ | |
13 | - (set -x; rm -f dir); \ @@\ | 13 | - (set -x; rm -f dir); \ @@\ | |
14 | + (set -x; rm -f dir) || exit $$?; \ @@\ | 14 | + (set -x; rm -f dir) || exit $$?; \ @@\ | |
15 | fi; \ @@\ | 15 | fi; \ @@\ | |
16 | - (set -x; $(MKDIRHIER) dir); \ @@\ | 16 | - (set -x; $(MKDIRHIER) dir); \ @@\ | |
17 | + (set -x; $(MKDIRHIER) dir) || exit $$?; \ @@\ | 17 | + (set -x; $(MKDIRHIER) dir) || exit $$?; \ @@\ | |
18 | fi | 18 | fi | |
19 | #endif /* MakeDir */ | 19 | #endif /* MakeDir */ | |
20 | 20 | |||
21 | @@ -545,9 +545,9 @@ clean cleantc:: @@\ | 21 | @@ -545,9 +545,9 @@ -if [ -f program ]; then RemoveFile(Concat(program,~)) | |
22 | :; \ @@\ | 22 | :; \ @@\ | |
23 | else \ @@\ | 23 | else \ @@\ | |
24 | if [ -h dir ]; then \ @@\ | 24 | if [ -h dir ]; then \ @@\ | |
25 | - (set -x; rm -f dir); \ @@\ | 25 | - (set -x; rm -f dir); \ @@\ | |
26 | + (set -x; rm -f dir) || exit $$?; \ @@\ | 26 | + (set -x; rm -f dir) || exit $$?; \ @@\ | |
27 | fi; \ @@\ | 27 | fi; \ @@\ | |
28 | - (set -x; $(MKDIRHIER) dir); \ @@\ | 28 | - (set -x; $(MKDIRHIER) dir); \ @@\ | |
29 | + (set -x; $(MKDIRHIER) dir) || exit $$?; \ @@\ | 29 | + (set -x; $(MKDIRHIER) dir) || exit $$?; \ @@\ | |
30 | fi | 30 | fi | |
31 | #endif /* MakeDirInline */ | 31 | #endif /* MakeDirInline */ | |
32 | 32 | |||
33 | @@ -571,7 +571,7 @@ includes:: srclist @@\ | 33 | @@ -571,7 +571,7 @@ includes:: srclist @@\ | |
34 | @(set -x; cd $(BUILDINCDIR) && for i in srclist; do \ @@\ | 34 | @(set -x; cd $(BUILDINCDIR) && for i in srclist; do \ @@\ | |
@@ -47,113 +47,113 @@ $$? when it's coming from inside make.) | @@ -47,113 +47,113 @@ $$? when it's coming from inside make.) | |||
47 | + done) || exit $$? | 47 | + done) || exit $$? | |
48 | #endif /* BuildIncludes */ | 48 | #endif /* BuildIncludes */ | |
49 | 49 | |||
50 | /* | 50 | /* | |
51 | @@ -604,7 +604,7 @@ interfaces:: @@\ | 51 | @@ -604,7 +604,7 @@ interfaces:: @@\ | |
52 | @(set -x; cd $(BUILDINCDIR)/dstsubdir && for i in srclist; do \ @@\ | 52 | @(set -x; cd $(BUILDINCDIR)/dstsubdir && for i in srclist; do \ @@\ | |
53 | RemoveFile($$i); \ @@\ | 53 | RemoveFile($$i); \ @@\ | |
54 | $(LN) $(BUILDINCTOP)/dstupdir/$(CURRENT_DIR)/$$i .; \ @@\ | 54 | $(LN) $(BUILDINCTOP)/dstupdir/$(CURRENT_DIR)/$$i .; \ @@\ | |
55 | - done) | 55 | - done) | |
56 | + done) || exit $$? | 56 | + done) || exit $$? | |
57 | #endif /* BuildInterfaces */ | 57 | #endif /* BuildInterfaces */ | |
58 | 58 | |||
59 | /* | 59 | /* | |
60 | @@ -1280,20 +1280,18 @@ InstallTarget(install.ln,Concat(llib-l,l | 60 | @@ -1280,20 +1280,18 @@ InstallTarget(install.ln,Concat(llib-l,libname.ln),$(I | |
61 | * (the limit for using source code control systems on files systems with | 61 | * (the limit for using source code control systems on files systems with | |
62 | * short file names). | 62 | * short file names). | |
63 | */ | 63 | */ | |
64 | -#ifndef InstallManPageLong | 64 | -#ifndef InstallManPageLong | |
65 | +#undef InstallManPageLong | 65 | +#undef InstallManPageLong | |
66 | #define InstallManPageLong(file,destdir,dest) @@\ | 66 | #define InstallManPageLong(file,destdir,dest) @@\ | |
67 | BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\ | 67 | BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\ | |
68 | @@\ | 68 | @@\ | |
69 | CppManTarget(file,$(EXTRAMANDEFS)) @@\ | 69 | CppManTarget(file,$(EXTRAMANDEFS)) @@\ | |
70 | @@\ | 70 | @@\ | |
71 | InstallNamedTarget(install.man,file.$(MANNEWSUFFIX),$(INSTMANFLAGS),destdir,dest.$(MANSUFFIX)) | 71 | InstallNamedTarget(install.man,file.$(MANNEWSUFFIX),$(INSTMANFLAGS),destdir,dest.$(MANSUFFIX)) | |
72 | -#endif /* InstallManPageLong */ | 72 | -#endif /* InstallManPageLong */ | |
73 | - | |||
74 | 73 | |||
74 | - | |||
75 | /* | 75 | /* | |
76 | * InstallManPageAliases - generate rules to install manual page aliases. | 76 | * InstallManPageAliases - generate rules to install manual page aliases. | |
77 | */ | 77 | */ | |
78 | -#ifndef InstallManPageAliases | 78 | -#ifndef InstallManPageAliases | |
79 | +#undef InstallManPageAliases | 79 | +#undef InstallManPageAliases | |
80 | #define InstallManPageAliases(file,destdir,aliases) @@\ | 80 | #define InstallManPageAliases(file,destdir,aliases) @@\ | |
81 | InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX)) @@\ | 81 | InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX)) @@\ | |
82 | @@\ | 82 | @@\ | |
83 | @@ -1302,17 +1300,15 @@ install.man:: @@\ | 83 | @@ -1302,17 +1300,15 @@ install.man:: @@\ | |
84 | RemoveFile($${TMP}); \ @@\ | 84 | RemoveFile($${TMP}); \ @@\ | |
85 | echo .so `basename destdir`/file.$(MANSUFFIX) > $${TMP}; \ @@\ | 85 | echo .so `basename destdir`/file.$(MANSUFFIX) > $${TMP}; \ @@\ | |
86 | for i in aliases; do (set -x; \ @@\ | 86 | for i in aliases; do (set -x; \ @@\ | |
87 | - $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.$(MANSUFFIX)); \ @@\ | 87 | - $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.$(MANSUFFIX)); \ @@\ | |
88 | + $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.$(MANSUFFIX)) || exit $$?; \ @@\ | 88 | + $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.$(MANSUFFIX)) || exit $$?; \ @@\ | |
89 | done; \ @@\ | 89 | done; \ @@\ | |
90 | RemoveFile($${TMP})) | 90 | RemoveFile($${TMP})) | |
91 | -#endif /* InstallManPageAliases */ | 91 | -#endif /* InstallManPageAliases */ | |
92 | - | |||
93 | 92 | |||
93 | - | |||
94 | /* | 94 | /* | |
95 | * InstallGenManPageLong - More general rules for installing manual pages -- | 95 | * InstallGenManPageLong - More general rules for installing manual pages -- | |
96 | * doesn't assume MANSUFFIX. | 96 | * doesn't assume MANSUFFIX. | |
97 | */ | 97 | */ | |
98 | -#ifndef InstallGenManPageLong | 98 | -#ifndef InstallGenManPageLong | |
99 | +#undef InstallGenManPageLong | 99 | +#undef InstallGenManPageLong | |
100 | #define InstallGenManPageLong(file,destdir,dest,suffix) @@\ | 100 | #define InstallGenManPageLong(file,destdir,dest,suffix) @@\ | |
101 | BuildInstallHtmlManPage(file,dest,suffix) @@\ | 101 | BuildInstallHtmlManPage(file,dest,suffix) @@\ | |
102 | @@\ | 102 | @@\ | |
103 | @@ -1322,13 +1318,11 @@ install.man:: file.$(MANNEWSUFFIX) @ | 103 | @@ -1322,13 +1318,11 @@ install.man:: file.$(MANNEWSUFFIX) @@\ | |
104 | MakeDir($(DESTDIR)destdir) @@\ | 104 | MakeDir($(DESTDIR)destdir) @@\ | |
105 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | 105 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | |
106 | $(DESTDIR)destdir/dest.suffix | 106 | $(DESTDIR)destdir/dest.suffix | |
107 | -#endif /* InstallGenManPageLong */ | 107 | -#endif /* InstallGenManPageLong */ | |
108 | - | |||
109 | 108 | |||
109 | - | |||
110 | /* | 110 | /* | |
111 | * InstallGenManPageAliases - general equivalent of InstallManPageAliases | 111 | * InstallGenManPageAliases - general equivalent of InstallManPageAliases | |
112 | */ | 112 | */ | |
113 | -#ifndef InstallGenManPageAliases | 113 | -#ifndef InstallGenManPageAliases | |
114 | +#undef InstallGenManPageAliases | 114 | +#undef InstallGenManPageAliases | |
115 | #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\ | 115 | #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\ | |
116 | InstallHtmlManPageAliases(file,aliases,suffix) @@\ | 116 | InstallHtmlManPageAliases(file,aliases,suffix) @@\ | |
117 | @@\ | 117 | @@\ | |
118 | @@ -1337,14 +1331,13 @@ install.man:: @@\ | 118 | @@ -1337,14 +1331,13 @@ install.man:: @@\ | |
119 | RemoveFile($${TMP}); \ @@\ | 119 | RemoveFile($${TMP}); \ @@\ | |
120 | echo .so `basename destdir`/file.suffix > $${TMP}; \ @@\ | 120 | echo .so `basename destdir`/file.suffix > $${TMP}; \ @@\ | |
121 | for i in aliases; do (set -x; \ @@\ | 121 | for i in aliases; do (set -x; \ @@\ | |
122 | - $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.suffix); \ @@\ | 122 | - $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.suffix); \ @@\ | |
123 | + $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.suffix) || exit $$?; \ @@\ | 123 | + $(INSTALL) $(INSTALLFLAGS) $(INSTMANFLAGS) $${TMP} $(DESTDIR)destdir/$$i.suffix) || exit $$?; \ @@\ | |
124 | done; \ @@\ | 124 | done; \ @@\ | |
125 | RemoveFile($${TMP})) | 125 | RemoveFile($${TMP})) | |
126 | -#endif /* InstallGenManPageAliases */ | 126 | -#endif /* InstallGenManPageAliases */ | |
127 | 127 | |||
128 | #else /* CompressManPages */ | 128 | #else /* CompressManPages */ | |
129 | 129 | |||
130 | -#ifndef InstallManPageLong | 130 | -#ifndef InstallManPageLong | |
131 | +#undef InstallManPageLong | 131 | +#undef InstallManPageLong | |
132 | #define InstallManPageLong(file,destdir,dest) @@\ | 132 | #define InstallManPageLong(file,destdir,dest) @@\ | |
133 | BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\ | 133 | BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\ | |
134 | @@\ | 134 | @@\ | |
135 | @@ -1356,9 +1349,8 @@ install.man:: file.$(MANNEWSUFFIX) @ | 135 | @@ -1356,9 +1349,8 @@ install.man:: file.$(MANNEWSUFFIX) @@\ | |
136 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | 136 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | |
137 | $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\ | 137 | $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\ | |
138 | -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.$(MANSUFFIX) | 138 | -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.$(MANSUFFIX) | |
139 | -#endif | 139 | -#endif | |
140 | 140 | |||
141 | -#ifndef InstallGenManPageLong | 141 | -#ifndef InstallGenManPageLong | |
142 | +#undef InstallGenManPageLong | 142 | +#undef InstallGenManPageLong | |
143 | #define InstallGenManPageLong(file,destdir,dest,suffix) @@\ | 143 | #define InstallGenManPageLong(file,destdir,dest,suffix) @@\ | |
144 | BuildInstallHtmlManPage(file,dest,suffix) @@\ | 144 | BuildInstallHtmlManPage(file,dest,suffix) @@\ | |
145 | @@\ | 145 | @@\ | |
146 | @@ -1370,9 +1362,8 @@ install.man:: file.$(MANNEWSUFFIX) @ | 146 | @@ -1370,9 +1362,8 @@ install.man:: file.$(MANNEWSUFFIX) @@\ | |
147 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | 147 | $(INSTALL) -c $(INSTMANFLAGS) file.$(MANNEWSUFFIX) \ @@\ | |
148 | $(DESTDIR)destdir/dest.suffix @@\ | 148 | $(DESTDIR)destdir/dest.suffix @@\ | |
149 | -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.suffix | 149 | -$(COMPRESSMANCMD) $(DESTDIR)destdir/dest.suffix | |
150 | -#endif | 150 | -#endif | |
151 | 151 | |||
152 | -#ifndef InstallMultipleMan | 152 | -#ifndef InstallMultipleMan | |
153 | +#undef InstallMultipleMan | 153 | +#undef InstallMultipleMan | |
154 | #define InstallMultipleMan(list,dest) @@\ | 154 | #define InstallMultipleMan(list,dest) @@\ | |
155 | install.man:: list @@\ | 155 | install.man:: list @@\ | |
156 | MakeDir($(DESTDIR)dest) @@\ | 156 | MakeDir($(DESTDIR)dest) @@\ | |
157 | @@ -1385,39 +1376,35 @@ install.man:: list @@\ | 157 | @@ -1385,39 +1376,35 @@ install.man:: list @@\ | |
158 | $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \ @@\ | 158 | $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \ @@\ | |
159 | $(COMPRESSMANCMD) $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX)); \ @@\ | 159 | $(COMPRESSMANCMD) $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX)); \ @@\ | |
@@ -189,27 +189,27 @@ $$? when it's coming from inside make.) | @@ -189,27 +189,27 @@ $$? when it's coming from inside make.) | |||
189 | /* | 189 | /* | |
190 | * InstallGenManPageAliases - install soft links for aliases. | 190 | * InstallGenManPageAliases - install soft links for aliases. | |
191 | */ | 191 | */ | |
192 | -#ifndef InstallGenManPageAliases | 192 | -#ifndef InstallGenManPageAliases | |
193 | +#undef InstallGenManPageAliases | 193 | +#undef InstallGenManPageAliases | |
194 | #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\ | 194 | #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\ | |
195 | InstallHtmlManPageAliases(file,aliases,suffix) @@\ | 195 | InstallHtmlManPageAliases(file,aliases,suffix) @@\ | |
196 | @@\ | 196 | @@\ | |
197 | InstallManPageAliasesBase(file,destdir,aliases) | 197 | InstallManPageAliasesBase(file,destdir,aliases) | |
198 | -#endif | 198 | -#endif | |
199 | 199 | |||
200 | #endif /* CompressManPages */ | 200 | #endif /* CompressManPages */ | |
201 | 201 | |||
202 | @@ -1425,19 +1412,17 @@ InstallManPageAliasesBase(file,destdir,a | 202 | @@ -1425,19 +1412,17 @@ InstallManPageAliasesBase(file,destdir,aliases) | |
203 | /* | 203 | /* | |
204 | * InstallManPage - generate rules to install the indicated manual page. | 204 | * InstallManPage - generate rules to install the indicated manual page. | |
205 | */ | 205 | */ | |
206 | -#ifndef InstallManPage | 206 | -#ifndef InstallManPage | |
207 | +#undef InstallManPage | 207 | +#undef InstallManPage | |
208 | #define InstallManPage(file,destdir) @@\ | 208 | #define InstallManPage(file,destdir) @@\ | |
209 | InstallManPageLong(file,destdir,file) | 209 | InstallManPageLong(file,destdir,file) | |
210 | -#endif /* InstallManPage */ | 210 | -#endif /* InstallManPage */ | |
211 | 211 | |||
212 | 212 | |||
213 | /* | 213 | /* | |
214 | * InstallGenManPage - general equivalent of InstallManPage | 214 | * InstallGenManPage - general equivalent of InstallManPage | |
215 | */ | 215 | */ | |
@@ -221,36 +221,36 @@ $$? when it's coming from inside make.) | @@ -221,36 +221,36 @@ $$? when it's coming from inside make.) | |||
221 | 221 | |||
222 | 222 | |||
223 | /* | 223 | /* | |
224 | @@ -1499,7 +1484,8 @@ install.man:: file.suffix.html @@\ | 224 | @@ -1499,7 +1484,8 @@ install.man:: file.suffix.html @@\ | |
225 | for i in aliases; do (set -x; \ @@\ | 225 | for i in aliases; do (set -x; \ @@\ | |
226 | RemoveFile($(DESTDIR)$(DOCHTMLDIR)/$$i.$$SUF.html); \ @@\ | 226 | RemoveFile($(DESTDIR)$(DOCHTMLDIR)/$$i.$$SUF.html); \ @@\ | |
227 | (cd $(DESTDIR)$(DOCHTMLDIR); \ @@\ | 227 | (cd $(DESTDIR)$(DOCHTMLDIR); \ @@\ | |
228 | - $(LN) file.$$SUF.html $$i.$$SUF.html)); \ @@\ | 228 | - $(LN) file.$$SUF.html $$i.$$SUF.html)); \ @@\ | |
229 | + $(LN) file.$$SUF.html $$i.$$SUF.html) || exit $$? \ @@\ | 229 | + $(LN) file.$$SUF.html $$i.$$SUF.html) || exit $$? \ @@\ | |
230 | + ) || exit $$?; \ @@\ | 230 | + ) || exit $$?; \ @@\ | |
231 | done | 231 | done | |
232 | #else | 232 | #else | |
233 | #define InstallHtmlManPageAliases(file,aliases,suffix) /**/ | 233 | #define InstallHtmlManPageAliases(file,aliases,suffix) /**/ | |
234 | @@ -1681,7 +1667,7 @@ InstallNamedTargetNoClobber(install,srcn | 234 | @@ -1681,7 +1667,7 @@ InstallNamedTargetNoClobber(install,srcname,$(INSTBINF | |
235 | #ifndef MakeNamedTargetSubdir | 235 | #ifndef MakeNamedTargetSubdir | |
236 | #define MakeNamedTargetSubdir(dir,flags,subname)\ | 236 | #define MakeNamedTargetSubdir(dir,flags,subname)\ | |
237 | (cd dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \ @@\ | 237 | (cd dir && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \ @@\ | |
238 | - flags subname) | 238 | - flags subname) | |
239 | + flags subname) || exit $$? | 239 | + flags subname) || exit $$? | |
240 | #endif | 240 | #endif | |
241 | 241 | |||
242 | /* | 242 | /* | |
243 | @@ -1692,7 +1678,7 @@ InstallNamedTargetNoClobber(install,srcn | 243 | @@ -1692,7 +1678,7 @@ step:: @@\ | |
244 | step:: @@\ | 244 | step:: @@\ | |
245 | @MakeFlagsToShellFlags(i,set +e); \ @@\ | 245 | @MakeFlagsToShellFlags(i,set +e); \ @@\ | |
246 | echo " cd" dir; cd dir && \ @@\ | 246 | echo " cd" dir; cd dir && \ @@\ | |
247 | - for i in list; do (set -x; $(LN) -f sub/$$i .); done | 247 | - for i in list; do (set -x; $(LN) -f sub/$$i .); done | |
248 | + for i in list; do (set -x; $(LN) -f sub/$$i .) || exit $$?; done | 248 | + for i in list; do (set -x; $(LN) -f sub/$$i .) || exit $$?; done | |
249 | #endif | 249 | #endif | |
250 | 250 | |||
251 | 251 | |||
252 | @@ -1809,7 +1795,7 @@ step:: list @@\ | 252 | @@ -1809,7 +1795,7 @@ step:: list @@\ | |
253 | MakeDir($(DESTDIR)dest) @@\ | 253 | MakeDir($(DESTDIR)dest) @@\ | |
254 | @MakeFlagsToShellFlags(i,set +e); \ @@\ | 254 | @MakeFlagsToShellFlags(i,set +e); \ @@\ | |
255 | for i in list; do \ @@\ | 255 | for i in list; do \ @@\ | |
256 | - (set -x; $(INSTALL) $(INSTALLFLAGS) flags $$i $(DESTDIR)dest); \ @@\ | 256 | - (set -x; $(INSTALL) $(INSTALLFLAGS) flags $$i $(DESTDIR)dest); \ @@\ | |
@@ -278,27 +278,27 @@ $$? when it's coming from inside make.) | @@ -278,27 +278,27 @@ $$? when it's coming from inside make.) | |||
278 | #endif /* LinkBuildLibraryMaybe */ | 278 | #endif /* LinkBuildLibraryMaybe */ | |
279 | 279 | |||
280 | @@ -2615,7 +2602,9 @@ clean:: @@\ | 280 | @@ -2615,7 +2602,9 @@ clean:: @@\ | |
281 | #else | 281 | #else | |
282 | #define LinkBuildSonameLibrary(lib) MakeDirInline($(BUILDLIBDIR));\ @@\ | 282 | #define LinkBuildSonameLibrary(lib) MakeDirInline($(BUILDLIBDIR));\ @@\ | |
283 | (set -x; RemoveFile($(BUILDLIBDIR)/lib);\ @@\ | 283 | (set -x; RemoveFile($(BUILDLIBDIR)/lib);\ @@\ | |
284 | - (cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .)) | 284 | - (cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .)) | |
285 | + (cd $(BUILDLIBDIR) && \ @@\ | 285 | + (cd $(BUILDLIBDIR) && \ @@\ | |
286 | + $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .) || exit $$? \ @@\ | 286 | + $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .) || exit $$? \ @@\ | |
287 | + ) || exit $$? | 287 | + ) || exit $$? | |
288 | #endif | 288 | #endif | |
289 | #endif /* LinkBuildSonameLibrary */ | 289 | #endif /* LinkBuildSonameLibrary */ | |
290 | 290 | |||
291 | @@ -2713,9 +2702,9 @@ AllTarget(LibraryTargetName(libname)) | 291 | @@ -2713,9 +2702,9 @@ LibraryTargetName(libname): objlist1 objlist2 objlist3 | |
292 | @@\ | 292 | @@\ | |
293 | LibraryTargetName(libname): objlist1 objlist2 objlist3 $(EXTRALIBRARYDEPS) @@\ | 293 | LibraryTargetName(libname): objlist1 objlist2 objlist3 $(EXTRALIBRARYDEPS) @@\ | |
294 | RemoveFile($@) @@\ | 294 | RemoveFile($@) @@\ | |
295 | - (cd down && MakeLibrary(up/$@,objlist1)) @@\ | 295 | - (cd down && MakeLibrary(up/$@,objlist1)) @@\ | |
296 | - (cd down && MakeLibrary(up/$@,objlist2)) @@\ | 296 | - (cd down && MakeLibrary(up/$@,objlist2)) @@\ | |
297 | - (cd down && MakeLibrary(up/$@,objlist3)) @@\ | 297 | - (cd down && MakeLibrary(up/$@,objlist3)) @@\ | |
298 | + (cd down && MakeLibrary(up/$@,objlist1)) || exit $$? @@\ | 298 | + (cd down && MakeLibrary(up/$@,objlist1)) || exit $$? @@\ | |
299 | + (cd down && MakeLibrary(up/$@,objlist2)) || exit $$? @@\ | 299 | + (cd down && MakeLibrary(up/$@,objlist2)) || exit $$? @@\ | |
300 | + (cd down && MakeLibrary(up/$@,objlist3)) || exit $$? @@\ | 300 | + (cd down && MakeLibrary(up/$@,objlist3)) || exit $$? @@\ | |
301 | RanLibrary($@) @@\ | 301 | RanLibrary($@) @@\ | |
302 | _LinkBuildLibrary($@) | 302 | _LinkBuildLibrary($@) | |
303 | #endif /* UnsharedLibraryTarget3 */ | 303 | #endif /* UnsharedLibraryTarget3 */ | |
304 | @@ -2952,7 +2941,7 @@ step:: dir srclist @@\ | 304 | @@ -2952,7 +2941,7 @@ step:: dir srclist @@\ | |
@@ -312,31 +312,31 @@ $$? when it's coming from inside make.) | @@ -312,31 +312,31 @@ $$? when it's coming from inside make.) | |||
312 | dir:: @@\ | 312 | dir:: @@\ | |
313 | @@ -2974,8 +2963,9 @@ name:: @@\ | 313 | @@ -2974,8 +2963,9 @@ name:: @@\ | |
314 | @MakeFlagsToShellFlags(ik,set +e); \ @@\ | 314 | @MakeFlagsToShellFlags(ik,set +e); \ @@\ | |
315 | for i in dirs ;\ @@\ | 315 | for i in dirs ;\ @@\ | |
316 | do \ @@\ | 316 | do \ @@\ | |
317 | - echo verb "in $(CURRENT_DIR)/$$i..."; \ @@\ | 317 | - echo verb "in $(CURRENT_DIR)/$$i..."; \ @@\ | |
318 | - (cd $$i && LANG=lang $(MAKE) $(MFLAGS) flags subname);\ @@\ | 318 | - (cd $$i && LANG=lang $(MAKE) $(MFLAGS) flags subname);\ @@\ | |
319 | + echo verb "in $(CURRENT_DIR)/$$i..."; \ @@\ | 319 | + echo verb "in $(CURRENT_DIR)/$$i..."; \ @@\ | |
320 | + (cd $$i && \ @@\ | 320 | + (cd $$i && \ @@\ | |
321 | + LANG=lang $(MAKE) $(MFLAGS) flags subname) || exit $$?; \ @@\ | 321 | + LANG=lang $(MAKE) $(MFLAGS) flags subname) || exit $$?; \ @@\ | |
322 | done | 322 | done | |
323 | #endif | 323 | #endif | |
324 | 324 | |||
325 | @@ -3384,7 +3374,7 @@ clean:: @@\ | 325 | @@ -3384,7 +3374,7 @@ step:: @@\ | |
326 | step:: @@\ | 326 | step:: @@\ | |
327 | DirFailPrefix@MakeFlagsToShellFlags(i,set +e); \ @@\ | 327 | DirFailPrefix@MakeFlagsToShellFlags(i,set +e); \ @@\ | |
328 | for i in dirs; do if [ -d $(DESTDIR)$$i ]; then \ @@\ | 328 | for i in dirs; do if [ -d $(DESTDIR)$$i ]; then \ @@\ | |
329 | - set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi; \ @@\ | 329 | - set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi; \ @@\ | |
330 | + set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i) || exit $$?; fi; \ @@\ | 330 | + set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i) || exit $$?; fi; \ @@\ | |
331 | done | 331 | done | |
332 | #endif /* MakeDirectories */ | 332 | #endif /* MakeDirectories */ | |
333 | 333 | |||
334 | @@ -3610,7 +3600,7 @@ objname.Osuf: Concat3(libpath,/lib,libna | 334 | @@ -3610,7 +3600,7 @@ objname.Osuf: Concat3(libpath,/lib,libname.a) @@\ | |
335 | @$(CP) Concat3(libpath,/lib,libname.a) tmp @@\ | 335 | @$(CP) Concat3(libpath,/lib,libname.a) tmp @@\ | |
336 | @(cd tmp; set -x; ArExtCmd Concat(lib,libname.a); \ @@\ | 336 | @(cd tmp; set -x; ArExtCmd Concat(lib,libname.a); \ @@\ | |
337 | $(LD) $(LDCOMBINEFLAGS) *.Osuf -o ../$@; \ @@\ | 337 | $(LD) $(LDCOMBINEFLAGS) *.Osuf -o ../$@; \ @@\ | |
338 | - RemoveFiles(*.Osuf)) @@\ | 338 | - RemoveFiles(*.Osuf)) @@\ | |
339 | + RemoveFiles(*.Osuf)) || exit $$? @@\ | 339 | + RemoveFiles(*.Osuf)) || exit $$? @@\ | |
340 | @$(RM) -r tmp @@\ | 340 | @$(RM) -r tmp @@\ | |
341 | @@\ | 341 | @@\ | |
342 | clean:: @@\ | 342 | clean:: @@\ |