acshk / acsccid

acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers. This library provides a PC/SC IFD handler implementation and communicates with the readers through the PC/SC Lite resource manager (pcscd).
GNU Lesser General Public License v2.1
106 stars 19 forks source link

Configuration errors with config/config.path files and config.h.in #35

Closed temaps closed 9 months ago

temaps commented 1 year ago
(%build): /bin/sh -e /var/tmp/rpm-tmp.knN8h6
+ umask 022
+ cd /tmp/abf/rpmbuild/BUILD
+ cd acsccid-1.1.10
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ find . -name config.guess -o -name config.sub
+ read i
+ '[' -e configure.ac -a -e Makefile.am ']'
+ find . -name configure.ac
+ xargs dirname
+ read D
+ pushd .
+ grep -qE '(LT_INIT|LIBTOOL)' configure.ac
/tmp/abf/rpmbuild/BUILD/acsccid-1.1.10 /tmp/abf/rpmbuild/BUILD/acsccid-1.1.10
+ libtoolize --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: linking file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
++ grep -v '^.$'
++ find . -name '*.m4'
++ sort
++ uniq
++ grep -vE 'ac(local|include).m4'
++ xargs dirname
++ cut -d/ -f2-
++ read R
++ '[' -e m4/configure.ac ']'
++ echo -n '-Im4 '
++ read R
+ aclocal -Im4
+ automake -a --foreign
configure.ac:36: installing 'config/ar-lib'
configure.ac:29: installing 'config/compile'
configure.ac:20: installing 'config/config.guess'
configure.ac:69: error: required file 'config/config.rpath' not found
configure.ac:20: installing 'config/config.sub'
configure.ac:10: installing 'config/install-sh'
configure.ac:10: installing 'config/missing'
configure.ac:23: error: required file 'config.h.in' not found
src/Makefile.am: installing 'config/depcomp'
configure.ac: installing 'config/ylwrap'
temaps commented 1 year ago

At what point should the bootstrap script work?

#
# Copy config.rpath to the directory "config".
# This file is needed by iconv.m4.
#
if [ -f /usr/share/gettext/config.rpath ]; then
    if [ ! -d config ]; then
        mkdir config
    fi
    cp /usr/share/gettext/config.rpath config
else
    echo "Please install gettext before running this script."
    exit 1
fi
godfreychung commented 1 year ago

It seems that you are building RPM package. Please refer to https://src.fedoraproject.org/rpms/pcsc-lite-acsccid/blob/rawhide/f/pcsc-lite-acsccid.spec It calls ./bootstrap from %build.

temaps commented 1 year ago

It seems that you are building RPM package. Please refer to https://src.fedoraproject.org/rpms/pcsc-lite-acsccid/blob/rawhide/f/pcsc-lite-acsccid.spec It calls ./bootstrap from %build.

Yes, thank you very much. I eventually did so. I only have a question about the rules file. It is not in spec fedora: https://abf.io/import/acsccid/blob/rosa2023.1/acsccid.spec#lc-43

godfreychung commented 1 year ago

It seems that it is specific to Fedora. See https://src.fedoraproject.org/rpms/pcsc-lite-ccid/c/e889690138e07a5fc81a6aa57911e960b47376ac?branch=d97f8f84ea8de1db841e87f38e135f821ff2499b

temaps commented 1 year ago

Thank you! :-)