Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257146 - sci-misc/boinc-6.4.5 fails to install with "No rule to make target `install'."
Summary: sci-misc/boinc-6.4.5 fails to install with "No rule to make target `install'."
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
: 257358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-31 22:07 UTC by Cyp
Modified: 2009-02-10 13:10 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Drop samples/example_app from SERVER_SUBDIRS (6.4.5-server-nosample.patch,1.74 KB, patch)
2009-02-05 17:47 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cyp 2009-01-31 22:07:52 UTC
I have the 'server' use flag enabled. (Don't remember why.)
Arch is amd64.

sci-misc/boinc-6.4.5 fails to install with "No rule to make target `install'."


test -z "/usr/bin" || /bin/mkdir -p "/var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin"
make[2]: Nothing to be done for `install-data-am'.
  /bin/sh ../libtool   --mode=install /usr/bin/install -c 'create_work' '/var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/create_work'
/usr/bin/install -c create_work /var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/create_work
  /bin/sh ../libtool   --mode=install /usr/bin/install -c 'sign_executable' '/var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/sign_executable'
/usr/bin/install -c sign_executable /var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/sign_executable
  /bin/sh ../libtool   --mode=install /usr/bin/install -c 'dir_hier_path' '/var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/dir_hier_path'
/usr/bin/install -c dir_hier_path /var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/dir_hier_path
  /bin/sh ../libtool   --mode=install /usr/bin/install -c 'dir_hier_move' '/var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/dir_hier_move'
/usr/bin/install -c dir_hier_move /var/tmp/portage/sci-misc/boinc-6.4.5/image//usr/bin/dir_hier_move
make[2]: Leaving directory `/var/tmp/portage/sci-misc/boinc-6.4.5/work/boinc-6.4.5/tools'
make[1]: Leaving directory `/var/tmp/portage/sci-misc/boinc-6.4.5/work/boinc-6.4.5/tools'
Making install in samples/example_app
make[1]: Entering directory `/var/tmp/portage/sci-misc/boinc-6.4.5/work/boinc-6.4.5/samples/example_app'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/sci-misc/boinc-6.4.5/work/boinc-6.4.5/samples/example_app'
make: *** [install-recursive] Error 1
 *
 * ERROR: sci-misc/boinc-6.4.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2698:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "make install failed";
 *  The die message:
 *   make install failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-misc/boinc-6.4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-misc/boinc-6.4.5/temp/environment'.
 *

>>> Failed to emerge sci-misc/boinc-6.4.5, Log file:
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-01 15:09:03 UTC
Try to disable the server useflag.
I guess i will have to test that one more :(
Comment 2 John (EBo) David 2009-02-02 08:48:54 UTC
Tomáš,

This liiks like the same problem I ran into when working on hacking my previous post.  If I am not mistaken, it is a problem with samples/example_app/Makefile not having an install tag.  Here's a diff:

--- samples/example_app/Makefile        2009-01-02 00:38:39.000000000 -0700
+++ samples/example_app/Makefile        2009-01-02 00:38:56.000000000 -0700
@@ -36,6 +36,8 @@
 libstdc++.a:
        ln -s `g++ -print-file-name=libstdc++.a`

+install:
+
 clean:
        /bin/rm -f $(PROGS) *.o


Comment 3 n.reyrolle 2009-02-03 21:51:44 UTC
Hi,

It's ok for me with server flag disabled. But why ?
Output of euses server :

sci-misc/boinc:server - Enable compilation of server

And boinc does not work with this flag disabled, it seems !
Comment 4 John (EBo) David 2009-02-04 08:00:57 UTC
A further note on my samples/example_app/Makefile patch.  The installation phase dies because there is no "install:" in the example application's Makefile.  The appended patch for boinc-6.4.5.ebuild together with samples/example_app/Makefile patch fixes the problem.  

  EBo --

--- boinc-6.4.5.ebuild	2009-02-01 09:08:58.000000000 -0700
+++ boinc-6.4.5-r1.ebuild	2009-02-04 00:37:17.000000000 -0700
@@ -59,6 +59,11 @@
 	local wxconf=""
 	local config=""
 
+	# normally I would put a patch in the unpack section, but one is
+	# not provided here, and this is provided to fix a problem with
+	# the example install configuration.
+	epatch "${FILESDIR}/6.4.5.example.install" || die "examples makefile"
+
 	# define preferable CFLAGS (recommended by upstream)
 	append-flags -O3 -funroll-loops -fforce-addr -ffast-math
 
=============== emerge --info =======================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_Dual_CPU_T2330_@_1.60GHz-with-glibc2.0
Timestamp of tree: Wed, 04 Feb 2009 06:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.espri.arizona.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.fslutd.org/linux/distributions/gentoo/ ftp://mirror.fslutd.org/linux/distributions/gentoo/ nehet"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pd-overlay /usr/portage/local/layman/science /usr/local/portage_overlays /old_root/home/ebo/gtd/projects/computer/local_portage/ref/local-portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa arts audiofile bash-completion berkdb blas blender-game bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups curl cvs dbus divx dri dvd dvdr dvdread eds emacs emboss encode esd evo fam ffmpeg fftw firefox fits fortran ftp gd gdbm geos gif git gmedia gnome gpg gpm graphviz gstreamer gtk hal hddtemp hdf5 iconv ieee1394 ipv6 ipw3945 isdnlog jack java java5 javascript jpeg jpeg2k kde lapack laptop latex ldap libnotify lm_sensors mad midi mikmod mp3 mpeg mudflap ncurses netcdf nls nptl nptlonly nsplugin ogdi ogg openal opengl openmp osc pam pcre pdf perl png portaudio ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection sasl sdl session spell spl ssl startup-notification subversion svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis wavpack win32codecs wmf wmp x86 xine xml xorg xpm xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hpp1006" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-05 17:08:27 UTC
*** Bug 257358 has been marked as a duplicate of this bug. ***
Comment 6 Martin von Gagern 2009-02-05 17:47:36 UTC
Created attachment 181060 [details, diff]
Drop samples/example_app from SERVER_SUBDIRS

(In reply to bug #257358 comment #2)
> Please reatach the atachment there.

Here you are.

(In reply to comment #2)
> +install:

Should have an effect similar to my patch. While my patch avoids compiling the example altogether, John's patch will compile it but run no commands for it during install, effectively omitting it from the installation. In other words, my patch avoids unneccessary work, while his might give a bit more testing.

(In reply to comment #3)
> And boinc does not work with this flag disabled, it seems !

That shouldn't be the case. The server flag to boinc should only ever be required when you want to host your own boinc projects. For attaching to other projects, it shouldn't be needed, so 99% of boinc users out there won't need that USE flag. "server" in this case doesn't mean "daemon".

(In reply to comment #4)
> +       # normally I would put a patch in the unpack section, but one is
> +       # not provided here, [...]

The boinc ebuild uses EAPI=2, in which case src_prepare is more suitable for patches and similar modifications to the source tree than src_unpack. See "man 5 ebuild" for details. Patching in src_configure is bad practice, as potentially a developer might run the configure phase repeatedly, while epatch will die if the same patch is applied twice.
Comment 7 n.reyrolle 2009-02-05 18:43:54 UTC
> (In reply to comment #3)
> > And boinc does not work with this flag disabled, it seems !
> 
> That shouldn't be the case. The server flag to boinc should only ever be
> required when you want to host your own boinc projects. For attaching to other
> projects, it shouldn't be needed, so 99% of boinc users out there won't need
> that USE flag. "server" in this case doesn't mean "daemon".

Okay, it works in fact, but i can't see anything in the front-end. I don't know why, but I will try to investigate.
Comment 8 John (EBo) David 2009-02-06 05:50:59 UTC
> (In reply to comment #4)
> > +       # normally I would put a patch in the unpack section, but one is
> > +       # not provided here, [...]
> 
> The boinc ebuild uses EAPI=2, in which case src_prepare is more suitable for
> patches and similar modifications to the source tree than src_unpack. See "man
> 5 ebuild" for details. Patching in src_configure is bad practice, as
> potentially a developer might run the configure phase repeatedly, while epatch
> will die if the same patch is applied twice.

agreed.  I missed the part with it using EAPI=2, but thatnks for the instruction.

Comment 9 Patrizio Bassi 2009-02-07 12:17:30 UTC
version in portage is still failing here.
Comment 10 Lari Korpi 2009-02-09 07:09:52 UTC
I'm also having this problem.
Comment 11 Lari Korpi 2009-02-09 19:44:25 UTC
Ok, I had -server flag set on previous version only. Now emerge goes fine with -server flag in effect.
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-10 13:10:46 UTC
Ok sunshines :]
fosdem is over so i regenerated tarball and updated generating script.
Please sync your tree and reemerge boinc, it should workie now.
Reopen if not...