diff options
Diffstat (limited to 'sys-process/lsof/files')
-rw-r--r-- | sys-process/lsof/files/lsof-4.85-cross.patch | 37 | ||||
-rw-r--r-- | sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch | 21 |
2 files changed, 58 insertions, 0 deletions
diff --git a/sys-process/lsof/files/lsof-4.85-cross.patch b/sys-process/lsof/files/lsof-4.85-cross.patch new file mode 100644 index 000000000000..c2c73ccb563f --- /dev/null +++ b/sys-process/lsof/files/lsof-4.85-cross.patch @@ -0,0 +1,37 @@ +let the preprocessor work its magic rather than executing the code + +https://bugs.gentoo.org/432120 + +make sure to use -P here + +https://bugs.gentoo.org/546636 + +--- a/Configure ++++ b/Configure +@@ -2730,20 +2730,17 @@ LOCKF_OWNER4 + rm -f ${LSOF_TMPC}.* + cat > $LSOF_TMPC.c << .LSOF_END_HERE_DOC1 + #include <features.h> +-main() { ++#undef XXX + #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) +-printf("-DGLIBCV=%d\n",__GLIBC__*100+__GLIBC_MINOR__); ++XXX: __GLIBC__ * 100 + __GLIBC_MINOR__ + #elif defined(__GLIBC__) +-printf("-DGLIBCV=%d00\n",__GLIBC__); +-#else +-printf("\n"); ++XXX: __GLIBC__ * 100 + #endif +-return(0); } + .LSOF_END_HERE_DOC1 +- $LINUX_CONF_CC ${LSOF_TMPC}.c -I$LSOF_INCLUDE -o ${LSOF_TMPC}.x > /dev/null 2>&1 ++ $LINUX_CONF_CC ${LSOF_TMPC}.c -E -P -I$LSOF_INCLUDE 2>/dev/null | sed -n '/^XXX:/s|.*:||p' > ${LSOF_TMPC}.x +- if test -x ${LSOF_TMPC}.x # { ++ if test -s ${LSOF_TMPC}.x # { + then +- LINUX_CLIB=`${LSOF_TMPC}.x` ++ LINUX_CLIB="-DGLIBCV=$(( `cat ${LSOF_TMPC}.x` ))" + LSOF_TMP=$? + else + LINUX_CLIB="" diff --git a/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch b/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch new file mode 100644 index 000000000000..28640a9e65ed --- /dev/null +++ b/sys-process/lsof/files/lsof-4.88-linux.dnode.c.patch @@ -0,0 +1,21 @@ +ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/patches/4.88/linux.dnode.c.patch + +*** dnode.c +--- lsof_4.88_src/dialects/linux/dnode.c +*************** +*** 580,586 **** + Lf->inp_ty = 1; + + #if defined(HASEPTOPTS) +! if (Lf->ntype == N_FIFO) { + (void) enter_pinfo(); + Lf->sf |= SELPINFO; + } +--- 580,586 ---- + Lf->inp_ty = 1; + + #if defined(HASEPTOPTS) +! if ((Lf->ntype == N_FIFO) && FpipeE) { + (void) enter_pinfo(); + Lf->sf |= SELPINFO; + } |