First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 97907
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PPC Porters <ppc@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: bambam <bambam@toppshatta.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ooffice-wrapper-1.3 files/1.1.2/ooffice-wrapper-1.3 text/plain bambam 2005-07-04 06:50 0000 8.95 KB Details
openoffice-bin-1.1.2.ebuild openoffice-bin-1.1.2.ebuild application/octet-stream bambam 2005-07-04 06:51 0000 5.38 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 97907 depends on: Show dependency tree
Bug 97907 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-04 06:46 0000
tested sucessfully on ppc!

Reproducible: Always
Steps to Reproduce:
1.emerge openoffice-bin
2.run ooffice
3.create, edit, save files, etc.

Actual Results:  
success!!


this is the ebuild for openoffice-bin-1.1.2:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# NOTE:  There are two big issues that should be addressed.
#
#        1)  Language support and fonts should be addressed.

LOC="/opt"

INSTDIR="${LOC}/OpenOffice.org"
MY_P="OOo_${PV}_LinuxPPC_en_installer"

S="${WORKDIR}/${MY_P}"

DESCRIPTION="OpenOffice productivity suite"
HOMEPAGE="http://www.openoffice.org/"
SRC_URI="http://ftp.sunet.se/pub/Office/OpenOffice.org/contrib/linuxppc/OOo_${PV}_LinuxPPC_en_installer.tar.gz"

LICENSE="|| ( LGPL-2  SISSL-1.1 )"
SLOT="0"
KEYWORDS="-* ppc "
IUSE="kde gnome"

DEPEND="sys-apps/findutils
    virtual/libc
    >=dev-lang/perl-5.0
    virtual/x11
    app-arch/zip
    app-arch/unzip
    || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 )
    !app-office/openoffice
    amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )"
RDEPEND="virtual/libc
    >=dev-lang/perl-5.0
    virtual/x11
    app-arch/zip
    app-arch/unzip
    || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 )
    !app-office/openoffice
    amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )"

PROVIDE="virtual/ooo"

src_install() {
    # Sandbox issues; bug #8587
    addpredict "/user"
    addpredict "/share"
    addpredict "/pspfontcache"
    addpredict "/usr/bin/soffice"
    addpredict "/root/.gconfd"

    # Sandbox issues; bug 8063
    addpredict "/dev/dri"

    # Autoresponse file for main installation
    cat > ${T}/rsfile-global <<-"END_RS"
        [ENVIRONMENT]
        INSTALLATIONMODE=INSTALL_NETWORK
        INSTALLATIONTYPE=STANDARD
        DESTINATIONPATH=<destdir>
        OUTERPATH=
        LOGFILE=
        LANGUAGELIST=<LANGUAGE>

        [JAVA]
        JavaSupport=preinstalled_or_none
    END_RS

    # Autoresponse file for user installation
    cat > ${T}/rsfile-local <<-"END_RS"
        [ENVIRONMENT]
        INSTALLATIONMODE=INSTALL_WORKSTATION
        INSTALLATIONTYPE=WORKSTATION
        DESTINATIONPATH=<home>/.openoffice/<pv>

        [JAVA]
        JavaSupport=none
    END_RS

    # Fixing install location in response file
    sed -e "s|<destdir>|${D}${INSTDIR}|" \
        ${T}/rsfile-global > ${T}/autoresponse

    einfo "Installing OpenOffice.org into build root..."
    dodir ${INSTDIR}
    cd ${S}
    ./setup -nogui -v -r:${T}/autoresponse || die "The setup program failed"

    echo
    einfo "Removing build root from registry..."
    # Remove totally useless stuff.
    rm -f ${D}${INSTDIR}/program/{setup.log,sopatchlevel.sh}
    # Remove build root from registry and co
    egrep -rl "${D}" ${D}${INSTDIR}/* | \
        xargs -i perl -pi -e "s|${D}||g" {} || :

    einfo "Fixing permissions..."
    # Fix permissions
    find ${D}${INSTDIR}/ -type f -exec chmod a+r {} \;
    chmod a+x ${D}${INSTDIR}/share/config/webcast/*.pl

    # Fix symlinks
    for x in "soffice program/spadmin" \
        "program/setup setup" \
        "program/spadmin spadmin"
    do
        dosym $(echo ${x} | awk '{print $1}') \
            ${INSTDIR}/$(echo ${x} | awk '{print $2}')
    done

    # Install user autoresponse file
    insinto /etc/openoffice
    sed -e "s|<pv>|${PV}|g" ${T}/rsfile-local > ${T}/autoresponse-${PV}.conf
    doins ${T}/autoresponse-${PV}.conf

    # Install wrapper script
    exeinto /usr/bin
    sed -e "s|<pv>|${PV}|g" \
        ${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice
    doexe ${T}/ooffice

    # Component symlinks
    for app in calc draw impress math writer web setup padmin; do
        dosym ooffice /usr/bin/oo${app}
    done

    einfo "Installing Menu shortcuts (need \"gnome\" or \"kde\" in USE)..."
    if use gnome
    then
        insinto /usr/share/gnome/apps/OpenOffice.org
        # Install the files needed for the catagory
        doins ${D}${INSTDIR}/share/gnome/net/.directory
        doins ${D}${INSTDIR}/share/gnome/net/.order

        # Change this to ooo*.desktop from *.desktop for now, since
        # otherwise two sets of icons will appear in the GNOME menu.
        # <brad@gentoo.org> (04 Aug 2003)
        for x in ${D}${INSTDIR}/share/gnome/net/ooo*.desktop
        do
            # We have to handle soffice and setup differently
            perl -pi -e "s:${INSTDIR}/program/setup:/usr/bin/oosetup:g" ${x}
            perl -pi -e "s:${INSTDIR}/program/soffice:/usr/bin/ooffice:g" ${x}
            # Now fix the rest
            perl -pi -e "s:${INSTDIR}/program/s:/usr/bin/oo:g" ${x}
            doins ${x}
        done
    fi

    if use kde
    then
        local kdeloc="${D}${INSTDIR}/share/kde/net/"

        insinto /usr/share/applnk/OpenOffice.org\ 1.1
        # Install the files needed for the catagory
        doins ${kdeloc}/.directory
        dodir /usr/share
        # Install the icons and mime info
        cp -a ${D}${INSTDIR}/share/kde/net/share/mimelnk
${D}${INSTDIR}/share/kde/net/share/icons ${D}/usr/share

        for x in ${kdeloc}/*.desktop
        do
            # We have to handle soffice and setup differently
            perl -pi -e "s:${INSTDIR}/program/setup:/usr/bin/oosetup:g" ${x}
            perl -pi -e "s:${INSTDIR}/program/soffice:/usr/bin/ooffice:g" ${x}
            # Now fix the rest
            perl -pi -e "s:${INSTDIR}/program/s:/usr/bin/oo:g" ${x}
            doins ${x}
        done
    fi


    # Remove unneeded stuff
    rm -rf ${D}${INSTDIR}/share/cde

    # Make sure these do not get nuked.
    keepdir ${INSTDIR}/user/registry/res/en-us/org/openoffice/{Office,ucb}
    keepdir ${INSTDIR}/user/psprint/{driver,fontmetric}
    keepdir ${INSTDIR}/user/{autocorr,backup,plugin,store,temp,template}

    #touch files to make portage uninstalling happy (#22593)
    find ${D} -type f -exec touch {} \;
}

pkg_preinst() {

    # The one with OO-1.0.0 was not valid
    if [ -f ${ROOT}/etc/openoffice/autoresponse.conf ]
    then
        rm -f ${ROOT}/etc/openoffice/autoresponse.conf
    fi
}

pkg_postinst() {

    einfo " To start OpenOffice.org, run:"
    einfo
    einfo "   $ ooffice"
    einfo
    einfo " Also, for individual components, you can use any of:"
    einfo
    einfo "   oocalc, oodraw, ooimpress, oomath, ooweb or oowriter"
    einfo
}

------- Comment #1 From bambam 2005-07-04 06:50:10 0000 -------
Created an attachment (id=62597) [details]
files/1.1.2/ooffice-wrapper-1.3

------- Comment #2 From bambam 2005-07-04 06:51:27 0000 -------
Created an attachment (id=62598) [details]
openoffice-bin-1.1.2.ebuild

------- Comment #3 From bambam 2005-07-04 06:52:18 0000 -------
all workin, please add ebuild to portage

------- Comment #4 From bambam 2005-07-04 07:35:11 0000 -------
sorry for assigning to Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>!!

------- Comment #5 From bambam 2005-07-04 07:37:35 0000 -------
x

------- Comment #6 From bambam 2005-07-04 07:38:52 0000 -------
all workin, please add ebuild and wrapper to portage.


------- Comment #7 From Joe Jezak 2005-07-11 21:42:05 0000 -------
CC'ing suka, 

Is this something we should add?  This is the latest "official" OO.o build for ppc.

------- Comment #8 From Andreas Proschofsky 2005-09-23 03:56:31 0000 -------
@Joe: Sorry, seemed to have missed this bug until now. Anyway about adding this
to portage: Am not quite sure if we should do that, as OOo 2.0 is now quite
close and 1.1.2 is quite old. Though I honestly don't know the status of
OOo-binaries for 2.0...

------- Comment #9 From Joe Jezak 2005-09-28 21:19:36 0000 -------
We've decided to wait for 2.0.  Since we don't really want users using the
1.1.1
version (security issues?) we should probably remove ppc from that ebuild or
simply remove it from portage.  Suka, what do you think?

------- Comment #10 From Andreas Proschofsky 2005-09-29 01:15:32 0000 -------
@Joe: Yeah, 1.1.1 has security issues (as has 1.1.2). If you feel uncomfortable
with that until 2.0 comes out, we should really remove the whole ebuild from
portage, it's only there for ppc anyway.

------- Comment #11 From Joe Jezak 2005-10-11 11:18:44 0000 -------
Lets remove it then. :)  Feel free to close the bug when you've done that.

------- Comment #12 From Andreas Proschofsky 2005-10-11 11:48:43 0000 -------
ok, removed it, closing

First Last Prev Next    No search results available      Search page      Enter new bug