From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waldemar Brodkorb Date: Sat, 8 Apr 2017 21:03:46 +0200 Subject: [Buildroot] [PATCH v3] autofs: allow to use libtirpc instead of internal C implementation In-Reply-To: <20170408160552.131d42a4@free-electrons.com> References: <20170323071058.GA29887@waldemar-brodkorb.de> <20170408160552.131d42a4@free-electrons.com> Message-ID: <20170408190346.GS5361@waldemar-brodkorb.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, Thomas Petazzoni wrote, > Hello, > > On Thu, 23 Mar 2017 08:10:58 +0100, Waldemar Brodkorb wrote: > > uClibc-ng plans to remove internal RPC implementation as it > > is ipv4 only and can not be used for most important RPC software > > rpcbind and nfs-utils. > > musl does not implement RPC and GNU C library deprecated the > > internal implementation a while ago. > > It is still possible to use the C library implementation. > > > > Signed-off-by: Waldemar Brodkorb > > This is almost good, but there are still a few issues. I had fixed most > of them locally, but one needs a bit more work. > > > diff --git a/package/autofs/0004-libtirpc-via-pkgconfig.patch b/package/autofs/0004-libtirpc-via-pkgconfig.patch > > new file mode 100644 > > index 0000000..784b4c6 > > --- /dev/null > > +++ b/package/autofs/0004-libtirpc-via-pkgconfig.patch > > @@ -0,0 +1,83 @@ > > +Use pkg-config to find libtirpc headers > > + > > +Signed-off-by: Waldemar Brodkorb > > Please format your patch with Git. The Git repo is available at > https://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git/, create > a branch based on the release_5_1_2 tag, and import the three existing > patches. Okay, I understand this. > > ++AC_PATH_PROGS(PKG_CONFIG, pkg-config, no) > > ++ > > + # save current flags > > + af_check_libtirpc_save_cflags="$CFLAGS" > > + af_check_libtirpc_save_ldflags="$LDFLAGS" > > +-CFLAGS="$CFLAGS -I/usr/include/tirpc" > > +-LDFLAGS="$LDFLAGS -ltirpc" > > ++ > > ++TIRPC_LIBS=`$PKG_CONFIG --libs libtirpc` > > ++TIRPC_FLAGS=`$PKG_CONFIG --cflags libtirpc` > > Please PKG_CHECK_MODULES() instead. I tried, but failed. Do you have some examples how PKG_CHECK_MODULES() should be used? I am not a autotool expert, so I am unsure how to create a patch which will be accepted by upstream. best regards Waldemar