From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Mon, 20 Jan 2014 10:39:04 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201401201039.04114.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] udev: standalone variant fails to build with newer toolchains Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de, Matthias Klein udev: standalone variant fails to build with newer toolchains = udev cannot be linked due to the use of the 'mq_getattr' call which requires librt to link successfully. = The configure script already checks for "clock_gettime" in order to add lib= rt to the list of required libraries. This is valid only (according to the man= ual page) for glibc version before 2.17. With the new glibc-2.18 in the 2013.12 toolchain librt isn't required anymore. = This patch adds a second test for 'mq_getattr' to force the librt for newer glibc revisions as well. = Signed-off-by: Juergen Beisert diff --git a/patches/udev-182/0001-fix_librt_detection.diff.patch b/patches= /udev-182/0001-fix_librt_detection.diff.patch new file mode 100644 index 0000000..6c0adb3 --- /dev/null +++ b/patches/udev-182/0001-fix_librt_detection.diff.patch @@ -0,0 +1,32 @@ +From: Juergen Beisert +Date: Mon, 20 Jan 2014 10:23:36 +0100 +Subject: [PATCH] udev: standalone variant fails to link with glibc >=3D 2.= 17 + +udev cannot be linked due to the use of the 'mq_getattr' call which requir= es +librt to link successfully. + +The configure script already checks for "clock_gettime" in order to add li= brt +to the list of required libraries. This is valid only (according to the ma= nual +page) for glibc version before 2.17. + +This patch adds a second test for 'mq_getattr' to force the librt for newer +glibc revisions as well. + +Signed-off-by: Juergen Beisert + +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index b31b62f..6717c65 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -22,6 +22,7 @@ AC_PATH_PROG([XSLTPROC], [xsltproc]) + AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" !=3D x) + = + AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([POSIX RT library= not found])]) ++AC_SEARCH_LIBS([mq_getattr], [rt], [], [AC_MSG_ERROR([POSIX RT library no= t found])]) + = + PKG_CHECK_MODULES(BLKID, blkid >=3D 2.20) + = diff --git a/patches/udev-182/autogen.sh b/patches/udev-182/autogen.sh new file mode 120000 index 0000000..9f8a4cb --- /dev/null +++ b/patches/udev-182/autogen.sh @@ -0,0 +1 @@ +../autogen.sh \ No newline at end of file diff --git a/patches/udev-182/series b/patches/udev-182/series new file mode 100644 index 0000000..183c801 --- /dev/null +++ b/patches/udev-182/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-fix_librt_detection.diff.patch +# 99ddc8b7d8ec9b67ad77e0d42118f015 - git-ptx-patches magic -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de