Bug 13365

Summary: released archive's ./configure fails
Product: [Yocto Project Subprojects] opkg Reporter: Miro Kropáček <miro.kropacek>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided CC: miro.kropacek
Version: 0.4   
Target Milestone: 0.4.1   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Miro Kropáček 2019-05-29 11:36:09 UTC
I downloaded opkg 0.4 from http://downloads.yoctoproject.org/releases/opkg/ ... when unpacked, I tried the classic ./configure && make combo only to get:

configure: error: cannot find install-sh, install.sh, or shtool in conf "/root/opkg"/conf

(/root/conf is where the source package had been unpacked but it happens also within the source tree)

The package is buildable if I reconfigure everything with autotools but I think the point of having a release archive is to avoid that.

Tested on Ubuntu with native gcc and a cross compiler.
Comment 1 Alejandro del Castillo 2019-05-29 15:09:56 UTC
So, the files are there, but they are symlinks to the standard location where libtool/automake is installed:

[adelcast@delcastillo3 opkg-0.4.0]$ ls -al conf
total 0
drwxr-xr-x  2 adelcast adelcast 180 May 29 09:50 .
drwxr-xr-x 12 adelcast adelcast 560 May 29 09:50 ..
lrwxrwxrwx  1 adelcast adelcast  32 May 29 09:50 compile -> /usr/share/automake-1.16/compile
lrwxrwxrwx  1 adelcast adelcast  41 May 29 09:50 config.guess -> /usr/share/libtool/build-aux/config.guess
lrwxrwxrwx  1 adelcast adelcast  39 May 29 09:50 config.sub -> /usr/share/libtool/build-aux/config.sub
lrwxrwxrwx  1 adelcast adelcast  32 May 29 09:50 depcomp -> /usr/share/automake-1.16/depcomp
lrwxrwxrwx  1 adelcast adelcast  39 May 29 09:50 install-sh -> /usr/share/libtool/build-aux/install-sh
lrwxrwxrwx  1 adelcast adelcast  38 May 29 09:50 ltmain.sh -> /usr/share/libtool/build-aux/ltmain.sh
lrwxrwxrwx  1 adelcast adelcast  32 May 29 09:50 missing -> /usr/share/automake-1.16/missing

The release package should be installing the files themselves, not symlinks.
Comment 2 Miro Kropáček 2019-05-29 15:18:24 UTC
This is actually an easy one to fix - in the future, use "make dist" to create the archive, not a custom command (as dictated by the autotools guidelines).
Comment 3 Alejandro del Castillo 2019-05-29 18:27:06 UTC
Thanks, added that my release checklist. I am planning on releasing 0.4.1 by mid-June, will make sure this is fixed there.
Comment 4 Alejandro del Castillo 2019-06-12 21:18:52 UTC
Fixed on 0.4.1