Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
3b05d0de
Commit
3b05d0de
authored
Mar 15, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Ionic-feature/use-libtirpc' into 3.6.x
Attributes GH PR #676:
https://github.com/ArcticaProject/nx-libs/pull/676
parents
15e95554
2e1e9158
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
19 deletions
+47
-19
Makefile
Makefile
+6
-4
Imake.tmpl
nx-X11/config/cf/Imake.tmpl
+3
-0
README
nx-X11/config/cf/README
+1
-0
Imakefile
nx-X11/programs/Xserver/Imakefile
+14
-6
Imakefile
nx-X11/programs/Xserver/os/Imakefile
+8
-0
nx-libs.spec
nx-libs.spec
+15
-9
No files found.
Makefile
View file @
3b05d0de
...
@@ -32,6 +32,8 @@ XFONTLIB ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/null && ec
...
@@ -32,6 +32,8 @@ XFONTLIB ?= $(shell pkg-config --modversion xfont2 1>/dev/null 2>/dev/null && ec
# Support older libXext versions.
# Support older libXext versions.
XEXT_EXTRA_DEFINES
?=
$(
shell
pkg-config
--exists
'xextproto < 7.1.0'
1>/dev/null 2>/dev/null
&&
echo
"-DLEGACY_XEXT_PROTO"
)
XEXT_EXTRA_DEFINES
?=
$(
shell
pkg-config
--exists
'xextproto < 7.1.0'
1>/dev/null 2>/dev/null
&&
echo
"-DLEGACY_XEXT_PROTO"
)
IMAKE_DEFINES
?=
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MAJOR
=
$(
shell
./version.sh 1
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
NX_VERSION_MINOR
=
$(
shell
./version.sh 2
)
NX_VERSION_MICRO
=
$(
shell
./version.sh 3
)
NX_VERSION_MICRO
=
$(
shell
./version.sh 3
)
...
@@ -99,7 +101,7 @@ version:
...
@@ -99,7 +101,7 @@ version:
build-env
:
version
build-env
:
version
# prepare Makefiles and the nx-X11 symlinking magic
# prepare Makefiles and the nx-X11 symlinking magic
${
MAKE
}
-C
nx-X11 BuildIncludes
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
${
MAKE
}
-C
nx-X11 BuildIncludes
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
# set up environment for libNX_X11 build (X11 header files)
# set up environment for libNX_X11 build (X11 header files)
mkdir
-p
nx-X11/exports/include/nx-X11/
mkdir
-p
nx-X11/exports/include/nx-X11/
...
@@ -124,7 +126,7 @@ clean-env: version
...
@@ -124,7 +126,7 @@ clean-env: version
[ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ ||
:
[ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ ||
:
[
-d
exports/include/nx-X11/
]
&&
$(RM_DIR)
exports/include/nx-X11/
||
:
[
-d
exports/include/nx-X11/
]
&&
$(RM_DIR)
exports/include/nx-X11/
||
:
${MAKE}
-C
nx-X11
CleanEnv
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
${MAKE}
-C
nx-X11
CleanEnv
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
build-lite
:
build-lite
:
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
cd
nxcomp
&&
autoreconf
-vfsi
&&
(
${
CONFIGURE
}
)
&&
${
MAKE
}
...
@@ -148,8 +150,8 @@ build-full: build-env
...
@@ -148,8 +150,8 @@ build-full: build-env
# build nxagent fourth
# build nxagent fourth
./mesa-quilt
push
-a
./mesa-quilt
push
-a
${MAKE}
-C
nx-X11
BuildDependsOnly
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
${MAKE}
-C
nx-X11
BuildDependsOnly
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XFONTLIB
=
"
$(XFONTLIB)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
${MAKE}
-C
nx-X11
World
USRLIBDIR
=
"
$(USRLIBDIR)
"
SHLIBDIR
=
"
$(SHLIBDIR)
"
FONT_DEFINES
=
"
$(FONT_DEFINES)
"
XFONTLIB
=
"
$(XFONTLIB)
"
XEXT_EXTRA_DEFINES
=
"
$(XEXT_EXTRA_DEFINES)
"
IMAKE_DEFINES
=
"
$(IMAKE_DEFINES)
"
# build nxproxy fifth
# build nxproxy fifth
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
cd
nxproxy
&&
autoreconf
-vfsi
&&
(${CONFIGURE})
&&
${MAKE}
...
...
nx-X11/config/cf/Imake.tmpl
View file @
3b05d0de
...
@@ -563,6 +563,9 @@ X_BYTE_ORDER = ByteOrder
...
@@ -563,6 +563,9 @@ X_BYTE_ORDER = ByteOrder
#ifndef HasLegacyXfont1
#ifndef HasLegacyXfont1
#define HasLegacyXfont1 NO
#define HasLegacyXfont1 NO
#endif
#endif
#ifndef UseTIRPC
#define UseTIRPC NO
#endif
#ifndef GzipLibrary /* if OS config didn't define it, assume it's -lz */
#ifndef GzipLibrary /* if OS config didn't define it, assume it's -lz */
#define GzipLibrary -lz
#define GzipLibrary -lz
#endif
#endif
...
...
nx-X11/config/cf/README
View file @
3b05d0de
...
@@ -148,6 +148,7 @@ Imake.tmpl provides defaults for the following variables:
...
@@ -148,6 +148,7 @@ Imake.tmpl provides defaults for the following variables:
UnalignedReferencesAllowed boolean for unaligned copies ok
UnalignedReferencesAllowed boolean for unaligned copies ok
UsrLibDir directory in which to install libraries
UsrLibDir directory in which to install libraries
YaccCmd command to run yacc
YaccCmd command to run yacc
UseTIRPC force usage of libtirpc
X11.tmpl provides defaults for the following variables:
X11.tmpl provides defaults for the following variables:
...
...
nx-X11/programs/Xserver/Imakefile
View file @
3b05d0de
...
@@ -292,20 +292,28 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
...
@@ -292,20 +292,28 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
XPMLIB = -lXpm
XPMLIB = -lXpm
XMLLIB = `pkg-config --libs libxml-2.0`
XMLLIB = `pkg-config --libs libxml-2.0`
PIXMANLIB = `pkg-config --libs pixman-1`
PIXMANLIB = `pkg-config --libs pixman-1`
ZLIB = $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' ||
echo "-lz"
)
ZLIB = $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' ||
printf '%s' '-lz'
)
PNGLIB = `pkg-config --libs libpng`
PNGLIB = `pkg-config --libs libpng`
JPEGLIB = -ljpeg
JPEGLIB = -ljpeg
TIRPC_LIB =
#if HasSecureRPC
#if UseTIRPC
TIRPC_LIB = $$(pkg-config --libs 'libtirpc')
#endif
#endif
NXAGENT = hw/nxagent/LibraryTargetName(nxagent)
NXAGENT = hw/nxagent/LibraryTargetName(nxagent)
NXCOMPEXT = hw/nxagent/compext/LibraryTargetName(compext)
NXCOMPEXT = hw/nxagent/compext/LibraryTargetName(compext)
NXAGENTLIBS = PreFbLibs $(NXAGENT) FbPostFbLibs $(NXCOMPEXT) $(NXAGENT) $(MI)
NXAGENTLIBS = PreFbLibs $(NXAGENT) FbPostFbLibs $(NXCOMPEXT) $(NXAGENT) $(MI)
NXAGENTSYSLIBS = $(LDPRELIBS) $(XLIB) $(SYSLIBS) $(XPMLIB) $(XMLLIB)
NXAGENTSYSLIBS = $(LDPRELIBS) $(XLIB) $(SYSLIBS) $(XPMLIB) $(XMLLIB)
$(PIXMANLIB) $(TIRPC_LIB)
NXCOMPEXTSYSLIBS = $(
PIXMANLIB) $(
ZLIB) $(PNGLIB) $(JPEGLIB)
NXCOMPEXTSYSLIBS = $(ZLIB) $(PNGLIB) $(JPEGLIB)
#if HasParallelMake
#if HasParallelMake
MakeMutex($(NXAGENTDIRS) $(NXCOMPEXT) $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXCOMPEXTSYSLIBS) $(NXAGENTSYSLIBS))
MakeMutex($(NXAGENTDIRS) $(NXCOMPEXT) $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXCOMPEXTSYSLIBS) $(NXAGENTSYSLIBS))
#endif
#endif
#if ForceServerRemake
#if ForceServerRemake
$(NXAGENTOBJS) $(NXAGENTLIBS)
$(NXAGENTSYSLIBS)
:: $(NXAGENTDIRS)
$(NXAGENTOBJS) $(NXAGENTLIBS):: $(NXAGENTDIRS)
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
#endif
#endif
#if NXLibraries
#if NXLibraries
...
@@ -485,7 +493,7 @@ MakeMutex($(NXWINDIRS) $(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS) $(NXWINSYSLIBS) $(N
...
@@ -485,7 +493,7 @@ MakeMutex($(NXWINDIRS) $(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS) $(NXWINSYSLIBS) $(N
#endif
#endif
#if ForceServerRemake
#if ForceServerRemake
$(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS)
$(NXWINSYSLIBS) $(NXWINNXLIBS)
:: $(NXWINDIRS)
$(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS):: $(NXWINDIRS)
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
#endif
#endif
...
@@ -542,7 +550,7 @@ MakeMutex($(NXWINDIRS) $(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS) $(NXWINSYSLIBS) $(N
...
@@ -542,7 +550,7 @@ MakeMutex($(NXWINDIRS) $(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS) $(NXWINSYSLIBS) $(N
#endif
#endif
#if ForceServerRemake
#if ForceServerRemake
$(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS)
$(NXWINSYSLIBS) $(NXWINNXLIBS)
:: $(NXWINDIRS)
$(NXWINOBJS) $(NXWINLIB) $(NXWINLIBS):: $(NXWINDIRS)
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
@if [ -f $@ ]; then touch $@ >/dev/null 2>&1 || exit 0; fi
#endif
#endif
...
...
nx-X11/programs/Xserver/os/Imakefile
View file @
3b05d0de
...
@@ -75,10 +75,17 @@ XDMAUTHOBJS =
...
@@ -75,10 +75,17 @@ XDMAUTHOBJS =
XDMAUTHSCRS =
XDMAUTHSCRS =
#endif
#endif
TIRPC_INCLUDES =
#if HasSecureRPC
#if HasSecureRPC
RPCDEFS = -DSECURE_RPC
RPCDEFS = -DSECURE_RPC
RPCOBJS = rpcauth.o
RPCOBJS = rpcauth.o
RPCSRCS = rpcauth.c
RPCSRCS = rpcauth.c
#if UseTIRPC
TIRPC_INCLUDES = $$(pkg-config --cflags-only-I 'libtirpc')
#endif
#else
#else
RPCDEFS =
RPCDEFS =
RPCOBJS =
RPCOBJS =
...
@@ -209,6 +216,7 @@ BOOTSTRAPCFLAGS =
...
@@ -209,6 +216,7 @@ BOOTSTRAPCFLAGS =
-I$(TOP)/lib/Xau \
-I$(TOP)/lib/Xau \
$(NX_INCLUDES) \
$(NX_INCLUDES) \
`pkg-config --cflags-only-I pixman-1` \
`pkg-config --cflags-only-I pixman-1` \
$(TIRPC_INCLUDES) \
$(NULL)
$(NULL)
DEPEND_DEFINES = $(XDMCP_DEFINES) \
DEPEND_DEFINES = $(XDMCP_DEFINES) \
...
...
nx-libs.spec
View file @
3b05d0de
...
@@ -120,8 +120,8 @@ BuildRequires: xorg-x11-font-utils
...
@@ -120,8 +120,8 @@ BuildRequires: xorg-x11-font-utils
BuildRequires: xorg-x11-proto-devel
BuildRequires: xorg-x11-proto-devel
BuildRequires: zlib-devel
BuildRequires: zlib-devel
# RPC headers. Fedora 28+ phased them out of glibc, like upstream did.
# RPC headers. Fedora 28+
and OpenSuSE Tumbleweed
phased them out of glibc, like upstream did.
%if 0%{?fedora} > 27
%if 0%{?fedora} > 27
|| 0%{?suse_version} > 1500
BuildRequires: libtirpc-devel
BuildRequires: libtirpc-devel
%endif
%endif
...
@@ -407,10 +407,16 @@ EOF
...
@@ -407,10 +407,16 @@ EOF
chmod a+x my_configure;
chmod a+x my_configure;
# The RPM macro for the linker flags does not exist on EPEL
# The RPM macro for the linker flags does not exist on EPEL
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
export SHLIBGLOBALSFLAGS="%{__global_ldflags}"
SHLIBGLOBALSFLAGS="%{__global_ldflags}"
export LOCAL_LDFLAGS="%{__global_ldflags}"
LOCAL_LDFLAGS="%{__global_ldflags}"
export CDEBUGFLAGS="%{?__global_cppflags} %{?__global_cflags} %{?optflags}"
CDEBUGFLAGS="%{?__global_cppflags} %{?__global_cflags} %{?optflags}"
make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} LIBDIR=%{_libdir} CDEBUGFLAGS="${CDEBUGFLAGS}" LOCAL_LDFLAGS="${LOCAL_LDFLAGS}" SHLIBGLOBALSFLAGS="${SHLIBGLOBALSFLAGS}"
IMAKE_DEFINES=''
FORCE_TIRPC='NO'
%if 0%{?fedora} > 27 || 0%{?suse_version} > 1500
FORCE_TIRPC='YES'
%endif
IMAKE_DEFINES="-DUseTIRPC=${FORCE_TIRPC}"
make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" PREFIX=%{_prefix} LIBDIR=%{_libdir} CDEBUGFLAGS="${CDEBUGFLAGS}" LOCAL_LDFLAGS="${LOCAL_LDFLAGS}" SHLIBGLOBALSFLAGS="${SHLIBGLOBALSFLAGS}" IMAKE_DEFINES="${IMAKE_DEFINES}"
%install
%install
make install \
make install \
...
@@ -440,6 +446,9 @@ chmod 755 %{buildroot}%{_libdir}/lib*.so*
...
@@ -440,6 +446,9 @@ chmod 755 %{buildroot}%{_libdir}/lib*.so*
rm -r %{buildroot}%{_includedir}/GL
rm -r %{buildroot}%{_includedir}/GL
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XK*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XK*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/*Xv*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/*Xv*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XRes*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XIproto.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XI.h
rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans
rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans
#Remove our shared libraries' .la files before wrapping up the packages
#Remove our shared libraries' .la files before wrapping up the packages
...
@@ -553,9 +562,6 @@ rm %{buildroot}%{_libdir}/*.la
...
@@ -553,9 +562,6 @@ rm %{buildroot}%{_libdir}/*.la
%{_includedir}/nx-X11/keysym.h
%{_includedir}/nx-X11/keysym.h
%{_includedir}/nx-X11/keysymdef.h
%{_includedir}/nx-X11/keysymdef.h
%{_includedir}/nx-X11/extensions/Xdbeproto.h
%{_includedir}/nx-X11/extensions/Xdbeproto.h
%{_includedir}/nx-X11/extensions/XI.h
%{_includedir}/nx-X11/extensions/XIproto.h
%{_includedir}/nx-X11/extensions/XResproto.h
%{_includedir}/nx-X11/extensions/bigreqstr.h
%{_includedir}/nx-X11/extensions/bigreqstr.h
%{_includedir}/nx-X11/extensions/composite.h
%{_includedir}/nx-X11/extensions/composite.h
%{_includedir}/nx-X11/extensions/compositeproto.h
%{_includedir}/nx-X11/extensions/compositeproto.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment