Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192514 - app-portage/elogv-0.6.1 - broken makefile
Summary: app-portage/elogv-0.6.1 - broken makefile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 FreeBSD
: High major (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 13:06 UTC by .:deadhead:.
Modified: 2007-09-17 15:26 UTC (History)
2 users (show)

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


Attachments
fixed Makefile (Makefile,641 bytes, patch)
2007-09-17 10:33 UTC, .:deadhead:.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description .:deadhead:. 2007-09-14 13:06:24 UTC
When I try to install elogv 0.6 this is what I get:

>>> Unpacking source...
>>> Unpacking elogv-0.6.tar.bz2 to /var/tmp/portage/app-portage/elogv-0.6/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-portage/elogv-0.6/work/elogv-0.6 ...
 * Nothing to compile
>>> Source compiled.
>>> Test phase [not enabled]: app-portage/elogv-0.6

>>> Install elogv-0.6 into /var/tmp/portage/app-portage/elogv-0.6/image/ category app-portage
mkdir -p /var/tmp/portage/app-portage/elogv-0.6/image///usr/local/bin
install -c -m 755 -o root -g root elogv.py /var/tmp/portage/app-portage/elogv-0.6/image///usr/local/bin/elogv
install: root: Invalid argument
gmake: *** [install] Error 67
>>> Completed installing elogv-0.6 into /var/tmp/portage/app-portage/elogv-0.6/image/

* checking 0 files for package collisions
>>> Merging app-portage/elogv-0.6 to /
--- /usr/
--- /usr/local/
--- /usr/local/bin/
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced dir /usr/local/bin
--- replaced dir /usr/local
--- replaced dir /usr
>>> Original instance of package unmerged safely.

Makefile doesn't work AND ebuild doesn't handle the error.

Using the old ebuild with `newbin` e `dodoc` works flawlessy.
Plus the arbitrary choose to put it in /usr/local when nothing in gentoo put files there...

Some consideration for the Author:
For a one file program is it really necessary a Makefile ? 
Since it's python apps, isn't it easier to use something like setup.py? http://docs.python.org/dist/setup-script.html
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-14 15:37:33 UTC
Yes, I returned to manual installation, though I had a fixed emake call locally I just forgot to commit.  Strange enough an added die command, let it die.  Thanks for reporting.
Comment 2 Luca Marturana 2007-09-16 19:04:40 UTC
Hi

The usage of the Makefile is:

make PREFIX=/whatyouwant install

I used /usr/local by default. If the script is not portable to BSD, for now use the portage-tools, I will provide a better solution when I have more free time.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-16 19:20:22 UTC
0.6.1 uses Makefile again, check if it works
Comment 4 .:deadhead:. 2007-09-17 09:44:34 UTC
(In reply to comment #3)
> 0.6.1 uses Makefile again, check if it works

 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
 * checking elogv-0.6.1.tar.bz2 ;-) ...                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking elogv-0.6.1.tar.bz2 to /var/tmp/portage/app-portage/elogv-0.6.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-portage/elogv-0.6.1/work/elogv-0.6.1 ...
 * Nothing to compile
>>> Source compiled.
>>> Test phase [not enabled]: app-portage/elogv-0.6.1

>>> Install elogv-0.6.1 into /var/tmp/portage/app-portage/elogv-0.6.1/image/ category app-portage
mkdir -p /var/tmp/portage/app-portage/elogv-0.6.1/image///usr/bin
install -c -m 755 -o root -g root elogv.py /var/tmp/portage/app-portage/elogv-0.6.1/image///usr/bin/elogv
install: root: Invalid argument
gmake: *** [install] Error 67
 *
 * ERROR: app-portage/elogv-0.6.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_install
 *   ebuild.sh, line 1089:   Called qa_call 'src_install'
 *   ebuild.sh, line 44:   Called src_install
 *   elogv-0.6.1.ebuild, line 34:   Called die
 *
 * emake 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/app-portage/elogv-0.6.1/temp/build.log'.
 *

Still nothing works :|
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-17 09:52:02 UTC
emerge --info please
Comment 6 .:deadhead:. 2007-09-17 10:31:19 UTC
(In reply to comment #2)
> If the script is not portable to BSD
That's not true. The only problem is that in BSD the group root doesn't exist. 

If we drop that part from the Makefile everything works everywhere. The owner will be root:wheel with 755 permissions.

And all people happy . But even if with this little bugfix everything works, please Luca don't stop, try to find another solution (setup.py maybe :P)

cheers
Comment 7 .:deadhead:. 2007-09-17 10:33:23 UTC
Created attachment 131138 [details, diff]
fixed Makefile

a working Makefile.

This is my info

Portage 2.1.3.9 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r2, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Timestamp of tree: Mon, 17 Sep 2007 01:48:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc4-r1
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  6.2-r2
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
ARCH="x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-gentoo-freebsd6.2"
CLEAN_DELAY="5"
CLICOLOR="1"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
ELIBC="FreeBSD"
EMERGE_DEFAULT_OPTS="-tDv --with-bdeps y"
EMERGE_WARNING_DELAY="10"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
GCC_SPECS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://distfiles.gentoo.org"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-gentoo-freebsd6.2/2.17/info:/usr/share/gcc-data/i686-gentoo-freebsd6.2/4.1.2/info"
INPUT_DEVICES="keyboard mouse"
KERNEL="FreeBSD"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="it"
LOGNAME="root"
MAIL="/var/mail/root"
MAKE="gmake"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-gentoo-freebsd6.2/2.17/man:/usr/share/gcc-data/i686-gentoo-freebsd6.2/4.1.2/man"
OLDPWD="/usr/tmp/portage/app-portage/elogv-0.6.1/work"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-gentoo-freebsd6.2/gcc-bin/4.1.2"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="info warn error log"
PORTAGE_ELOG_MAILFROM="portage"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PWD="/usr/tmp/portage/app-portage/elogv-0.6.1/work/elogv-0.6.1"
PYTHONPATH="/usr/lib/portage/pym"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-gentoo-freebsd6.2/gcc-bin/4.1.2"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="10.175.88.158 55211 22"
SSH_CONNECTION="10.175.88.158 55211 10.175.90.180 22"
SSH_TTY="/dev/ttyp0"
SYNC="rsync://10.175.90.190/gentoo-portage"
TERM="xterm"
USE="berkdb cli cracklib crypt cups dri gdbm iconv java5 midi ncurses nls oss pam pcre perl ppds python readline reflection session spl ssl tcpd unicode x86-fbsd xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng vga via vmware"
USER="root"
USERLAND="BSD"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis tga trident tseng vga via vmware"
XARGS="xargs"
_="/usr/bin/emerge"
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-17 15:26:43 UTC
<mumble>
Users should state their emerge --info always as some maintainers don't have a look at the upper part of a bug report to notice someone is using FreeBSD...
</mumble>

Just tell straight away you are on FreeBSD and I would have got the wrong assumption on my side earlier..did not know elogv had a x86-fbsd keyword anyway. :)  

Back to manual installation.