File tree Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Expand file tree Collapse file tree 4 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/config/config.initialize.m b/config/config.initialize.m
2
+ index bc103ae..b513d77 100644
3
+ --- a/config/config.initialize.m
4
+ +++ b/config/config.initialize.m
5
+ @@ -5,7 +5,13 @@
6
+ #include <stdio.h>
7
+
8
+ #if !defined(_MSC_VER)
9
+ - #include <unistd.h>
10
+ + /* Fix RedHat problematic unistd.h */
11
+ + #pragma push_macro("__block")
12
+ + #undef __block
13
+ + #define __block my__block
14
+ + #include_next <unistd.h>
15
+ + #pragma pop_macro("__block")
16
+ + /* #include <unistd.h> */
17
+ #endif
18
+
19
+ #if defined(_WIN32)
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ Patch1: pc.patch
35
35
Patch2: libs-gui_NSApplication.patch
36
36
Patch3: libs-gui_NSPopUpButton.patch
37
37
Patch4: libs-gui_GSThemeDrawing.patch
38
+ %if 0%{?el7 }
39
+ Patch5: libs-base_initialize.patch
40
+ %endif
38
41
39
42
# Build GNUstep libraries in one RPM package
40
43
Provides: gnustep-base-%{BASE_VERSION }
@@ -150,6 +153,11 @@ cd %{_builddir}/nextspace-gnustep/libs-gui-gui-%{GUI_VERSION}/
150
153
%patch -P2 -p1
151
154
%patch -P3 -p1
152
155
%patch -P4 -p1
156
+ %if 0%{?el7 }
157
+ cp %{_sourcedir }/libs-base_initialize.patch %{_builddir }/nextspace-gnustep/libs-base-base-%{BASE_VERSION }/
158
+ cd %{_builddir }/nextspace-gnustep/libs-base-base-%{BASE_VERSION }/
159
+ %patch -P5 -p1
160
+ %endif
153
161
154
162
rm -rf %{buildroot }
155
163
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ cp ${PROJECT_DIR}/Libraries/gnustep/projectcenter-images.tar.gz ${RPM_SOURCES_DI
20
20
cp ${PROJECT_DIR} /Libraries/gnustep/pc.patch ${RPM_SOURCES_DIR}
21
21
cp ${PROJECT_DIR} /Libraries/gnustep/gorm.patch ${RPM_SOURCES_DIR}
22
22
cp ${PROJECT_DIR} /Libraries/gnustep/libs-gui_* ${RPM_SOURCES_DIR}
23
+ if [ " ${OS_ID} " = " centos" ] && [ " ${OS_VERSION} " = " 7" ]; then
24
+ cp ${PROJECT_DIR} /Libraries/gnustep/libs-base_* ${RPM_SOURCES_DIR}
25
+ fi
23
26
print_H1 " Downloading Local GNUstep Back..."
24
27
tar zcf ${RPM_SOURCES_DIR} /back-art.tar.gz -C ${PROJECT_DIR} /Libraries/gnustep back-art
25
28
@@ -42,7 +45,9 @@ if [ $STATUS -eq 0 ]; then
42
45
install_rpm nextspace-gnustep-devel ${RPMS_DIR} /nextspace-gnustep-devel-${GNUSTEP_VERSION} .rpm
43
46
mv ${RPMS_DIR} /nextspace-gnustep-devel-${GNUSTEP_VERSION} .rpm ${RELEASE_DEV}
44
47
mv ${RPMS_DIR} /nextspace-gnustep-debuginfo-${GNUSTEP_VERSION} .rpm ${RELEASE_DEV}
45
- mv ${RPMS_DIR} /nextspace-gnustep-devel-debuginfo-${GNUSTEP_VERSION} .rpm ${RELEASE_DEV}
48
+ if [ -f ${RPMS_DIR} /nextspace-gnustep-debugsource-${GNUSTEP_VERSION} .rpm ]; then
49
+ mv ${RPMS_DIR} /nextspace-gnustep-devel-debuginfo-${GNUSTEP_VERSION} .rpm ${RELEASE_DEV}
50
+ fi
46
51
if [ -f ${RPMS_DIR} /nextspace-gnustep-debugsource-${GNUSTEP_VERSION} .rpm ]; then
47
52
mv ${RPMS_DIR} /nextspace-gnustep-debugsource-${GNUSTEP_VERSION} .rpm ${RELEASE_DEV}
48
53
fi
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ if [ "$YN" = "y" ]; then
100
100
if [ $OS_NAME == " centos" ]; then
101
101
if [ $VERSION_ID == " 7" ]; then
102
102
sudo yum -y -q install centos-release-scl 2>&1 > /dev/null || exit 1
103
- ENABLE_EPEL+=" --enable-repo =centos-sclo-sclo --enable-repo =centos-sclo-rh"
103
+ ENABLE_EPEL+=" --enablerepo =centos-sclo-sclo --enable-epo =centos-sclo-rh"
104
104
fi
105
105
fi
106
106
sudo yum -y -q install $ENABLE_EPEL NSDeveloper/* .rpm 2>&1 > /dev/null || exit 1
You can’t perform that action at this time.
0 commit comments