[Bug 1032023] New: libinput source package spec file is missing package dependencies on autoconf, automake and libtool
./autogen.sh --prefix=/usr --libdir=/usr/lib64 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023 Bug ID: 1032023 Summary: libinput source package spec file is missing package dependencies on autoconf, automake and libtool Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: pointedstick@zoho.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Steps to reproduce: 1. sudo zypper modifyrepo --enable `zypper repos | grep -i source | awk '{print $5}'` 2. sudo zypper source-install -d libinput10 3. git clone https://github.com/wayland-project/libinput.git 4. cd libinput 5. ./autogen.sh --prefix=/usr --libdir=/usr/lib64 Expected result: It works Actual result: $ ./autogen.sh --prefix=/usr --libdir=/usr/lib64 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 ${ACLOCAL_FLAGS} --output=aclocal.m4t sh: aclocal: command not found autoreconf: aclocal failed with exit status: 127 Oops, the libinput source package didn't mention a dependency on automake, which provides `aclocal`. So then you install automake and try again: $ ./autogen.sh --prefix=/usr --libdir=/usr/lib64 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force Can't exec "libtoolize": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345, <GEN3> line 5. autoreconf: failed to run libtoolize: No such file or directory autoreconf: libtoolize is needed because this package uses Libtool Darn, looks like we also need libtool. Install that and try again: libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'. [...] [build succeeds] So the libinput source package's spec file needs to be updated to mention dependencies on automake and libtool. I see that the spec file has the following in it: #git#BuildRequires: autoconf >= 2.64 #git#BuildRequires: automake >= 1.11 #git#BuildRequires: libtool >= 2.2 Is this intentional? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
Nathaniel Graham
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
Nathaniel Graham
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023#c1
Martin Pluskal
I see that the spec file has the following in it:
#git#BuildRequires: autoconf >= 2.64 #git#BuildRequires: automake >= 1.11 #git#BuildRequires: libtool >= 2.2
Is this intentional?
Yes Source package lists dependencies it needs to build itself - autotools are not among them as they are not needed for building from released tarball - as comment suggest you need them only when building git version. For building git version you of course do not need to install srcrpm ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023#c2
Nathaniel Graham
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023#c3
Martin Pluskal
No, but I did need the source RPM to get a list of the package dependencies. That information was not available from the developer, who recommends getting the dependencies from the source package:
https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html "libinput has a few build-time dependencies that must be installed prior to running configure. In most cases, it is sufficient to install the dependencies that your distribution uses to build the libinput package."
What should I communicate to the developer? That for openSUSE, it is *not* sufficient and he will need to provide a list of packages himself?
Basically I'm just trying to make this easy. On Fedora, it's very easy: `sudo dnf builddep libinput`. Boom, done. I'm trying to help make it easier on openSUSE. And you don't need autotools to build libinput from sources on openSUSE, you need it only in case you are building from git. It is also not desirable to require packages that are not needed for building.
How upstream describes build requirements is not responsibility of openSUSE neither is something that should be tracked in openSUSE bugzilla -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023
http://bugzilla.opensuse.org/show_bug.cgi?id=1032023#c4
--- Comment #4 from Nathaniel Graham
participants (1)
-
bugzilla_noreply@novell.com