Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Makepkgs fails on 3.11.0 tag #75

Closed
rvernica opened this Issue Feb 22, 2016 · 6 comments

Comments

Projects
None yet
3 participants
Contributor

rvernica commented Feb 22, 2016

I checked out the 3.11.0 tag and tried to build the deb packages. Makepkgs seems to be failing.

Here is what I did:

$ git checkout tags/3.11.0
$ ./Makepkgs --verbose
...
=== pcp ===
rm -rf  dep dep.bak *.[1-9].gz *.[1-9].bz2 *.[1-9].lzma *.[1-9].xz *.[1-9].tmp           
for d in `echo  `; do if test -d "$d" -a -f "$d/GNUmakefile"; then /bin/echo === $d ===; /usr/bin/make --no-print-directory -C $d clean || exit $?; fi; done
make[1]: Leaving directory `/home/debian/src/pcp-github/build/deb/pcp-3.11.0/src/python'
dh_installdocs
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms -X/tmp
dh_installdirs
dh_install --sourcedir=debian/pcp
cp: cannot stat `debian/pcp/usr/lib/pcp/bin/install-sh': No such file or directory
dh_install: cp -a debian/pcp/usr/lib/pcp/bin/install-sh debian/libpcp3-dev//usr/lib/pcp/bin/ returned exit code 1
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

A bit more about my system:

$ cat /etc/issue
Debian GNU/Linux 7
$ uname -a
Linux beaglebone-01 3.8.13-bone56 #1 SMP Wed Jun 4 23:59:23 UTC 2014 armv7l GNU/Linux
Contributor

natoscott commented Feb 22, 2016

Hmm, works for me. This file (install-sh) should be placed in debian/pcp/usr/lib/pcp/bin/install-sh by line ~112 of the top-level GNUmakefile in git (via the install_pcp make target).

Contributor

kmcdonell commented Feb 23, 2016

Works for me also on Debian 8.

But my install-sh gets put here ...
$ find * -name install-sh
build/deb/pcp-3.11.0/install-sh
build/deb/pcp-3.11.0/debian/libpcp3-dev/usr/lib/pcp/bin/install-sh
install-sh

Rares, any chance you can send us this file:
build/deb/pcp-3.11.0/config.status

Contributor

rvernica commented Feb 23, 2016

See attached. (Added the .TXT extension for GitHub to accept it.) Thanks!
config.status.TXT

Contributor

kmcdonell commented Feb 23, 2016

OK ... despite your system being Debian, you have a /usr/bin/rpm and /usr/bin/rpmbuild ... the latter is confusing the hell out of Makepkgs and you're running a part-Debian and part-RPM schizo build. To test my theory, could you please (a) mv /usr/bin/rpmbuild aside temporarily, or (b) edit Makepkgs and change this line:
if [ -x /usr/bin/rpmbuild ]
to:
if [ -x /usr/bin/rpmbuild_foobar ]

And then try Makepgks again?

Contributor

rvernica commented Feb 23, 2016

Your theory is correct. I got rid of /usr/bin/rpmbuild. Now Makepkgs completes successfully. Thanks for looking into this!

@rvernica rvernica closed this Feb 23, 2016

Contributor

kmcdonell commented Feb 24, 2016

I've checked in a change to Makepkgs that will hopefully prevent this issue in the future, should we come across another build system with a similar installation setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment