libusb / libusb-compat-0.1

Working tree for libusb-compat-0.1
Other
38 stars 40 forks source link

Fix obsolete auto-tools scripts #28

Open mcuee opened 1 year ago

mcuee commented 1 year ago

There are quite some warnings now.

Example from github action Linux build.

Run ./autogen.sh --enable-examples-build && make -j4
  ./autogen.sh --enable-examples-build && make -j4
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:9: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:9: You should run autoupdate.
m4/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:9: the top level
configure.ac:31: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:31: You should run autoupdate.
./lib/autoconf/general.m4:[2](https://github.com/libusb/libusb-compat-0.1/actions/runs/4275336152/jobs/7442610450#step:4:2)920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
m4/au_check_lib_soname.m4:11: AU_CHECK_LIB_SONAME is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
configure.ac:[3](https://github.com/libusb/libusb-compat-0.1/actions/runs/4275336152/jobs/7442610450#step:4:3)1: the top level
configure.ac:[4](https://github.com/libusb/libusb-compat-0.1/actions/runs/4275336152/jobs/7442610450#step:4:5)1: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:41: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:[6](https://github.com/libusb/libusb-compat-0.1/actions/runs/4275336152/jobs/7442610450#step:4:7)92: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:22[7](https://github.com/libusb/libusb-compat-0.1/actions/runs/4275336152/jobs/7442610450#step:4:8)0: AC_CACHE_CHECK is expanded from...
m4/au_have_gnu_errno.m4:6: AU_HAVE_GNU_ERRNO_H is expanded from...
dmilith commented 1 year ago

Yeah, autotools is a complete mess. I don't understand why maintainer doesn't provide tarball with autotools configure script generated. It's a mess.

mcuee commented 1 year ago

I don't understand why maintainer doesn't provide tarball with autotools configure script generated. It's a mess.

Good point. Let me try to do that over the weekend.

zgyarmati commented 1 year ago

Indeed, as the 0.1.7 version was released with generated configure and accompanying files (probably generated via make dist). It would be nice to have this consequently between releases so we don't have to touch the build config when updating packages for downstream distros.

mcuee commented 1 year ago

Sorry for the late reply. I have replaced the github libusb-compat-0.1 release with the tarballs with autotools configure script generated.

Please report if there is an issue. Thanks.

mcuee commented 1 year ago

Sourceforge release has also been updated. https://sourceforge.net/projects/libusb/files/libusb-compat-0.1/libusb-compat-0.1.8/

mcuee commented 1 year ago

PRs to fix the old scripts are welcome.