Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71678 - blitz-0.8.ebuild (update)
Summary: blitz-0.8.ebuild (update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Black (RETIRED)
URL: http://sourceforge.net/project/showfi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 09:09 UTC by Andy
Modified: 2005-01-13 12:59 UTC (History)
1 user (show)

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


Attachments
blitz-0.8.ebuild (blitz-0.8.ebuild,925 bytes, text/plain)
2004-11-18 09:11 UTC, Andy
Details
my shell enviroment as root (env_as_root.txt,2.66 KB, text/plain)
2004-12-18 19:37 UTC, Tiago de Paula Peixoto
Details
my emerge info (emerge_info.txt,2.27 KB, text/plain)
2004-12-18 19:38 UTC, Tiago de Paula Peixoto
Details
blitz configure & compile output (blitz_compile.txt,14.69 KB, text/plain)
2004-12-18 19:38 UTC, Tiago de Paula Peixoto
Details
log for the ./configure script (config.log,85.12 KB, text/plain)
2004-12-18 19:40 UTC, Tiago de Paula Peixoto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2004-11-18 09:09:21 UTC
The package name has changed from Blitz++-0.7.tar.gz to blitz-0.8.tar.gz. So I changed the ebuild appropriately. I think the patch is no longer needed so I commented it out.

Reproducible: Always
Steps to Reproduce:
Comment 1 Andy 2004-11-18 09:11:23 UTC
Created attachment 44231 [details]
blitz-0.8.ebuild
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-11-19 05:43:21 UTC
version bumped. Any problems add comment here.
Comment 3 Tiago de Paula Peixoto 2004-12-16 16:03:53 UTC
ebuild does not install /usr/include/blitz/gnu/bzconfig.h

I have gcc-config 1.3.7, which doesn't define CXX=g++. If I do:

CXX=g++ emerge blitz;

then, the file gets installed.

I looked at some other bug entries, and according to http://bugs.gentoo.org/show_bug.cgi?id=67514 , CXX and CC shouldn't be defined, and ebuilds that depend on them should be considered broken, is this correct?

I have GCC 3.4.3.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-12-17 00:40:29 UTC
alternative is using CC=$(tc-getCC) and CXX=$(tc-getCXX) in eclass toolchain-funcs

I will look at this again.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2004-12-18 15:58:21 UTC
I've added the (tc-getCXX) to the 0.8 ebuild. Please let me know if there are any problems. It does add the missing header file.
Comment 6 Tiago de Paula Peixoto 2004-12-18 16:49:59 UTC
Weird... for me it still doesn't add the missing header file, and g++ still gets called as i686-pc-linux-gnu-g++ during configure (which, I believe, is what causes this bug).

I did run "emerge --sync", and I can see the $(tc-getCXX) part in the ebuild.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2004-12-18 18:10:19 UTC
I've removed CC and CXX from my environment and /etc/env.d/* and it still works fine for me.

Please attach your environment, emerge info, Output from the configure section of the compile, config.log and anything else that may be of use.

Yes I'm realy stuck as to what is happening here.
Comment 8 Tiago de Paula Peixoto 2004-12-18 19:37:31 UTC
Created attachment 46318 [details]
my shell enviroment as root
Comment 9 Tiago de Paula Peixoto 2004-12-18 19:38:02 UTC
Created attachment 46319 [details]
my emerge info
Comment 10 Tiago de Paula Peixoto 2004-12-18 19:38:59 UTC
Created attachment 46320 [details]
blitz configure & compile output
Comment 11 Tiago de Paula Peixoto 2004-12-18 19:40:01 UTC
Created attachment 46321 [details]
log for the ./configure script
Comment 12 Tiago de Paula Peixoto 2004-12-18 20:01:40 UTC
I also added a "echo $(tc-getCXX)" line to the ebuild, before it runs configure, and it prints out i686-pc-linux-gnu-g++, instead of g++.
Comment 13 Andy 2005-01-13 06:57:43 UTC
I've descovered another problem (apart from having to CXX=g++):
if I try to reemerge blitz, the following happens:
make[3]: Entering directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc/doxygen'
make[3]: Nothing to be done for `install-exec-am'.
make  install-data-hook
make[4]: Entering directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc/doxygen'
Installing documentations into /var/tmp/portage/blitz-0.8/image//usr/share/doc/blitz-0.8
/bin/install: installing multiple files, but last argument, `/var/tmp/portage/blitz-0.8/image//usr/share/doc/blitz-0.8' is not a directory
Try `/bin/install --help' for more information.
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc/doxygen'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc/doxygen'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc/doxygen'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/blitz-0.8/work/blitz-0.8/doc'
make: *** [install-recursive] Error 1

!!! ERROR: dev-libs/blitz-0.8 failed.
!!! Function src_install, Line 45, Exitcode 2

tux root # ls -al /var/tmp/portage/blitz-0.8/image/usr/   
total 16
drwxr-xr-x  4 root root 4096 Jan 13 15:44 .
drwxr-xr-x  3 root root 4096 Jan 13 15:44 ..
drwxr-xr-x  4 root root 4096 Jan 13 15:44 include
drwxr-xr-x  2 root root 4096 Jan 13 15:44 lib

If I first unmerge, there are no install problems.
Comment 14 Andy 2005-01-13 08:07:54 UTC
Tiago de Paula Peixoto wrote:
> I also added a "echo $(tc-getCXX)" line to the ebuild, before it runs
> configure, and it prints out i686-pc-linux-gnu-g++, instead of g++.

I think he is right. When looking in configure (or in m4/ac_compiler_specific_header.m4) there only appears:
case "$CXX" in
[...]
  g++)      AX_PREFIX_CONFIG_H([blitz/gnu/bzconfig.h],[BZ])
            COMPILER_SPECIFIC_HEADER="gnu/bzconfig.h" ;;
[...]
esac
That's why the gnu subdirectory is not created.

So either $(tc-getCXX) should be g++ instead of i686-pc-linux-gnu-g++ or one would have to rewrite really many ebuilds (I don't think there are many configures that check for *g++ instead of g++)?
Comment 15 Daniel Black (RETIRED) gentoo-dev 2005-01-13 12:59:39 UTC
Thanks andy - I've patched the configure file for *g++). I've so created the directory /usr/share/doc/${PF} before the install that should correct the other fault.

Please reopen if these do not work. Thanks for the solution and your patience.