Bug 5638 - simplify install of sysroot
Summary: simplify install of sysroot
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 5624
  Show dependency treegraph
 
Reported: 2008-01-18 01:16 UTC by Andrew Cagney
Modified: 2008-02-06 21:02 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2008-01-18 01:16:04 UTC
Rather than this:

nobase_pkgdata_DATA += frysk/pkgdatadir/test-sysroot/usr/lib/debug/$(abspath
frysk/pkglibdir/fu
nit-addresses.debug)
frysk/pkgdatadir/test-sysroot/usr/lib/debug/$(abspath
frysk/pkglibdir/funit-addresses.debug): f
rysk/pkgdatadir/test-sysroot/$(abspath frysk/pkglibdir/funit-addresses)
        mkdir -p $(abspath
frysk/pkgdatadir/test-sysroot/usr/lib/debug/)/$(abspath frysk/pkglib
dir)
        eu-strip --remove-comment -f $@ $<

install-data-hook:
        mv $(datarootdir)/frysk/frysk/pkgdatadir/test-sysroot $(datarootdir)/frysk
        rmdir $(datarootdir)/frysk/frysk/pkgdatadir
        rmdir $(datarootdir)/frysk/frysk
# we don't want this installed, but noinst_SCRIPTS has no effect
        rm $(libdir)/frysk/gen-type-funit-tests

do something like this:

install-data-local: install-dogtail-scripts-local
uninstall-local: uninstall-dogtail-scripts-local
.PHONY: install-dogtail-scripts-local uninstall-dogtail-scripts-local
install-dogtail-scripts-local:
        set -e ; \
        ( \
                cd $(srcdir)/frysk/gui/test ; \
                find dogtail_scripts \
                        -name CVS -prune \
                        -o -type f -print \
                | tar cTf - - \
        ) | ( \
                cd $(DESTDIR)$(pkgdatadir) ; \
                tar xpf - \
        )
        cp -p -f frysk/gui/test/dogtail_scripts/frysk_suite.py \
                $(DESTDIR)$(pkgdatadir)/dogtail_scripts
uninstall-dogtail-scripts-local:
        rm -rf $(DESTDIR)$(pkgdatadir)/dogtail_scripts

(from frysk-gui/Makefile.am)
Comment 1 Stan Cox 2008-01-30 15:04:17 UTC
Move installation of test-sysroot to pkglibdir.
    
* Makefile.am (pkglib_PROGRAMS): Add funit-addresses-stripped.
Remove nobase_pkgdata_DATA.
Comment 2 Andrew Cagney 2008-01-31 22:15:00 UTC
Note the use of:

                cd $(DESTDIR)$(pkgdatadir) ; \

DESTDIR as a second prefix.
Comment 3 Stan Cox 2008-02-01 15:06:58 UTC
2008-01-31  Stan Cox  <scox@redhat.com>
	* Makefile.am (install-sysroot-local): Use DESTDIR, consider ARCH32.
Comment 4 Stan Cox 2008-02-06 21:02:07 UTC
I've tried to package frysk with git source, and it works fine :)
Thanks a lot for fixing this bug.
trem