Re: [fedora-java] db merging script
by Tom Tromey
>>>>> "Andrew" == Andrew Haley <aph(a)redhat.com> writes:
Andrew> The right way to fix this is to have gcj-dbtool read a list of files
Andrew> from stdin, which is what this patch does.
Andrew> (find . -name 'temp-*.db' | gcj-dbtool - -m $DB)
This needs a corresponding gcj.texi patch.
Tom
19 years
db merging script
by Andrew Overholt
This is a crude example of what we could have, but it's what I've got so
far:
%post -n %{libname}-gtk2
if ![ -e `gcj-dbtool -p` ]; then
dirname `gcj-dbtool -p` | xargs mkdir -p;
gcj-dbtool -n `gcj-dbtool -p`;
fi
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m `gcj-dbtool -p` `find %{_libdir}/%{name}/mappings -name \*.db` `gcj-dbtool -p`
fi
%postun %{libname}-gtk2
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m `gcj-dbtool -p` `find %{_libdir}/%{name}/mappings -name \*.db` `gcj-dbtool -p`
fi
I'm not even sure if what I have will work. I'd just like to start the
discussion about how best to do it. Anthony Green has raised valid concerns
about multilib systems.
Andrew
19 years
Debuginfo problems
by Robin Green
3 problems with building -debuginfo packages for native java packages. I'm
using latest rawhide, find-and-nativify to nativify [which I keep typo-ing
as nativity for some reason ;) ] and ecj as source-to-bytecode compiler.
1. gcj outputs bogus source filenames for inner classes, which makes
rpmbuild spew a shedload of errors like this when building the -debuginfo
package:
cpio:
rssowl_1_1_src/src/java/net/sourceforge/rssowl/controller/GUI$4.java: No
such file or directory
I filed this as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20735
2. cpio outputs some more "No such file or directory errors" referring to
a few classes whose source files aren't part of this project at all, e.g.
cpio: rssowl_1_1_src/src/java/org/xml/sax/EntityResolver.java: No such
file or directory
cpio: rssowl_1_1_src/src/java/org/xml/sax/ErrorHandler.java: No such file
or directory
cpio: rssowl_1_1_src/src/java/org/xml/sax/InputSource.java: No such file
or directory
cpio: rssowl_1_1_src/src/java/org/xml/sax/SAXParseException.java: No such
file or directory
3. For some strange reason - I only changed like one line in my spec file
- I'm now getting this odd error:
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/rssowl-1.1-1rdg
error: Installed (but unpackaged) file(s) found:
/usr/lib/debug/usr/lib/rssowl/librssowl.jar.so.debug
/usr/src/debug/rssowl_1_1_src/src/java/net/sourceforge/rssowl/controller/ChannelInfo.java
/usr/src/debug/rssowl_1_1_src/src/java/net/sourceforge/rssowl/controller/DisposeListenerImpl.java
etc. (continues with list of lots and lots of source files)
So, I'm turning off -debuginfo building for my specfile for now.
--
Robin
19 years