Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
62dab61
Initial autotools build system
jiegec Jan 12, 2023
dfe02c2
Detect rpc/rpc.h in configure.ac
jiegec Jan 12, 2023
32241b9
Add header and definition check in configure.ac
jiegec Jan 12, 2023
5f2cb07
Detect selinux headers and link library
jiegec Jan 12, 2023
b7c8bde
[darwin] Add autotools support for darwin
jiegec Jan 12, 2023
e9c46c9
Display features due to no longer showing in cflags
jiegec Jan 12, 2023
22716ec
Split version.h.in into two files to fix old build system
jiegec Jan 13, 2023
1082204
[freebsd] Add initial FreeBSD support for autotools
jiegec Jan 13, 2023
99e758a
Add checks for HASTASKS, HASEFFNLINK, HAS_DUP2 and HAS_CLOSEFROM
jiegec Jan 13, 2023
a619ecd
Add checks for HASF_VNODE and HAS_FILEDESCENT
jiegec Jan 13, 2023
45f31db
Add checks for HAS_TMPFS and HASWCTYPE_H
jiegec Jan 13, 2023
5fe3331
Add checks for HAS_UFS1_2
jiegec Jan 13, 2023
98fccc9
[freebsd] Remove unused HAS_NO_IDEV definition
jiegec Jan 13, 2023
82fd974
[freebsd] Remove unused HAS_NO_SI_UDEV definition
jiegec Jan 13, 2023
a08c086
[freebsd] Remove unused HASFUSEFS definition
jiegec Jan 13, 2023
a7bfe18
Add checks for HAS_V_LOCKF
jiegec Jan 13, 2023
d13856c
[freebsd] Remove unused HAS_FDESCENTTBL definition
jiegec Jan 13, 2023
cde256e
Add checks for HASFDESCFS
jiegec Jan 13, 2023
70916ef
Add checks for HASPSEUDOFS
jiegec Jan 13, 2023
57f91dd
Add checks for HASNULLFS
jiegec Jan 13, 2023
0672630
[freebsd] Remove unused HAS_NO_ISO_DEV definition
jiegec Jan 13, 2023
4db5954
Add checks for HAS_XTCPCB_TMAXSEG
jiegec Jan 13, 2023
a49d945
Add checks for HAS_KF_SOCK_SENDQ
jiegec Jan 13, 2023
a955785
Process manpages and install
jiegec Jan 13, 2023
d166be3
Sync version file and configure.ac
jiegec Jan 13, 2023
bddb28b
Update 00DIST
jiegec Jan 13, 2023
ed00418
[freebsd] $< in Makefile is not supported on FreeBSD
jiegec Jan 13, 2023
9c2e170
Fix indentation of 00DIST
jiegec Jan 13, 2023
723d529
Build using autotools in CI
jiegec Jan 13, 2023
20f7503
Add README symlink to make automake happy
jiegec Jan 13, 2023
5abf7f6
Bump version to 4.97.0
jiegec Jan 13, 2023
6ea67c7
Add testing to autotools
jiegec Jan 14, 2023
0a13eb5
[linux] Skip unix socket/ipv4 tests if nc does not work
jiegec Jan 14, 2023
01f6aa0
Run make check in ci
jiegec Jan 14, 2023
0f7496d
Add autotools to README
jiegec Jan 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- run:
name: Install build tools
command: |
dnf -y install git gcc make sudo nmap-ncat iproute libtirpc-devel lcov gem procps python3-pip
dnf -y install git gcc make sudo nmap-ncat iproute libtirpc-devel lcov gem procps python3-pip autoconf automake
pip3 install --user cpp-coveralls
- checkout
- run:
Expand All @@ -34,14 +34,23 @@ jobs:
command: |
lcov -c -b . -d . -o coverage.info
/root/.local/bin/coveralls --root .
- run:
name: Build and test using autotools
command: |
git clean -fdx .
autoreconf -vif
./configure
make
make install
make check
stream8:
docker:
- image: quay.io/centos/centos:stream8
steps:
- run:
name: Install build tools
command: |
dnf -y install git gcc make sudo nmap-ncat iproute libtirpc-devel procps
dnf -y install git gcc make sudo nmap-ncat iproute libtirpc-devel procps autoconf automake
- checkout
- run:
name: Configure
Expand All @@ -55,6 +64,15 @@ jobs:
name: Test
command: |
bash ./check.bash linux
- run:
name: Build and test using autotools
command: |
git clean -fdx .
autoreconf -vif
./configure
make
make install
make check
bigsur:
macos:
xcode: 12.5.1
Expand All @@ -73,6 +91,14 @@ jobs:
command: |
# TODO: blocked by issue #236
# bash ./check.bash darwin
- run:
name: Build using autotools
command: |
git clean -fdx .
autoreconf -vif
./configure
make
make install

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
Expand Down
26 changes: 25 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ lsof
tags
tests/config.*
version.h
autotools.h
lockf_owner.h
lsof.man

#
# Symbolic links to a diaclt implementation
# Symbolic links to a dialect implementation
#
/dfile.c
/dlsof.h
Expand Down Expand Up @@ -109,3 +112,24 @@ dialects/linux/tests/pipe
dialects/linux/tests/pty
dialects/linux/tests/ux
dialects/linux/tests/mmap

# automake
Makefile.in
.deps/
.dirstamp

# autoconf
autom4te.cache
/aclocal.m4
/compile
/config.guess
/config.log
/config.status
/config.sub
/config.h
/config.h.in
/configure
/depcomp
/install-sh
/missing
/stamp-h1
7 changes: 6 additions & 1 deletion 00DIST
Original file line number Diff line number Diff line change
Expand Up @@ -5446,11 +5446,16 @@ July 14, 2018

[freebsd] add <sys/callout.h> for recent changes

4.9?.? ????????? ??, ????
4.97.0 ????????? ??, ????

[decof/du/tru64] Remove support because the os is no longer updated for more than 10 years

[openstep/nextstep] Remove support because the os is no longer updated for more than 20 years

Add experimental build system based on Autotools (#270)

4.9?.? ????????? ??, ????


The lsof-org team at GitHub
December 28, 2022
15 changes: 0 additions & 15 deletions 00PORTING
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,6 @@ possibilities
HASF_VNODE indicates the dialect's file structure has an
f_vnode member in it.

HAS_FDESCENTTBL indicates the FreeBSD system has the fdescenttbl
structure.

HAS_FILEDESCENT indicates the FreeBSD system has the filedescent
definition in the <sys/filedesc.h> header file.

Expand Down Expand Up @@ -853,9 +850,6 @@ possibilities
See also the RMNT_EXPDEV and RMNT_FSTYPE
documentation in lib/rmnt.c

HASFUSEFS is defined when the FreeBSD system has FUSE file system
support.

HASGETBOOTFILE indicates the NetBSD or OpenBSD dialect has
a getbootfile() function.

Expand Down Expand Up @@ -1025,22 +1019,13 @@ possibilities
HAS_NO_6PPCB is defined if the FreeBSD in_pcb.h has no in6p_ppcb
definition.

HAS_NO_IDEV indicates the FreeBSD system's inode has no i_dev
member.

HAS_NO_ISO_DEV indicates the FreeBSD 6 and higher system has
no i_dev member in its iso_node structure.

HAS_NO_LONG_LONG indicates the dialect has no support for the C
long long type. This definition is used by
the built-in snprintf() support of lib/snpf.c.

HASNORPC_H indicates the dialect has no /usr/include/rpc/rpc.h
header file.

HAS_NO_SI_UDEV indicates the FreeBSD 6 and higher system has
no si_udev member in its cdev structure.

HASNOSOCKSECURITY enables the listing of open socket files,
even when HASSECURITY restricts listing of
open files to the UID of the user who is
Expand Down
Empty file added AUTHORS
Empty file.
26 changes: 26 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright 2002 Purdue Research Foundation, West Lafayette,
Indiana 47907. All rights reserved.

Written by Victor A. Abell

This software is not subject to any license of the American
Telephone and Telegraph Company or the Regents of the
University of California.

Permission is granted to anyone to use this software for
any purpose on any computer system, and to alter it and
redistribute it freely, subject to the following
restrictions:

1. Neither the authors nor Purdue University are responsible
for any consequences of the use of this software.

2. The origin of this software must not be misrepresented,
either by explicit claim or by omission. Credit to the
authors and Purdue University must appear in documentation
and sources.

3. Altered versions must be plainly marked as such, and must
not be misrepresented as being the original software.

4. This notice may not be removed or altered.
32 changes: 0 additions & 32 deletions Configure
Original file line number Diff line number Diff line change
Expand Up @@ -1487,11 +1487,6 @@ cpumask_t c;
then
LSOF_CFGF="$LSOF_CFGF -DHAS_UFS1_2"
fi # }
grep -q i_dev ${LSOF_INCLUDE}/ufs/ufs/inode.h
if test $? -ne 0 # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS_NO_IDEV"
fi # }
fi # }
if test -r ${LSOF_INCLUDE}/sys/conf.h # {
then
Expand Down Expand Up @@ -1546,11 +1541,6 @@ FBSD_MINOR3
fi # }
fi # }
fi # }
grep -q "si_udev;" ${LSOF_INCLUDE}/sys/conf.h
if test $? -ne 0 # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS_NO_SI_UDEV"
fi # }
grep -q si_priv ${LSOF_INCLUDE}/sys/conf.h
if test $? -eq 0 # {
then
Expand All @@ -1562,12 +1552,6 @@ FBSD_MINOR3
LSOF_CFGF="$LSOF_CFGF -DHAS_SYS_SX_H"
fi # }

# Do FUSE file system test,

if test -r ${FREEBSD_SYS}/fs/fuse/fuse_node.h # {
then
LSOF_CFGF="$LSOF_CFGF -DHASFUSEFS"
fi # }
# Do msdosfs test.
if test -r ${FREEBSD_SYS}/fs/msdosfs/denode.h # {
then
Expand Down Expand Up @@ -1750,14 +1734,6 @@ LOCKF_OWNER4
LSOF_CFGF="$LSOF_CFGF -DHAS_SB_CCC"
fi # }
fi # }
if test -r ${LSOF_INCLUDE}/sys/filedesc.h # {
then
grep -q '^struct fdescenttbl {' ${LSOF_INCLUDE}/sys/filedesc.h
if test $? -eq 0 # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS_FDESCENTTBL"
fi # }
fi # }
fi # }
fi # }
fi # }
Expand Down Expand Up @@ -1878,14 +1854,6 @@ LOCKF_OWNER4
echo "" >> cd9660_node.h
fi # }
LSOF_CFGF="$LSOF_CFGF -DHAS9660FS"
if test $LSOF_VERS -ge 6000 # {
then
grep -q "i_dev;" cd9660_node.h
if test $? -ne 0 # {
then
LSOF_CFGF="$LSOF_CFGF -DHAS_NO_ISO_DEV"
fi # }
fi # }
fi # }
if test -r ${LSOF_INCLUDE}/sys/namei.h
then
Expand Down
Loading