You are not logged in.

#1 2006-01-19 01:17:57

RobK
Member
Registered: 2005-12-07
Posts: 121

Opera Package

After looking at the PKBUILD for Opera, I am confused.  The build portion of the PKBUILD for Opera reads as follows:

build() {
   cd $startdir/src/$pkgname-$pkgver-20051114.6-shared-qt.i386-en
   ./install.sh DESTDIR=$startdir/pkg
   sed 's=libXm.so.3=libXm.so.2=' -i $startdir/pkg/usr/lib/opera/plugins/operamotifwrapper-3
}

But if you look at the install script for Opera, it does not use $DESTDIR.  It uses "--prefix=" as the way to specify the installation directory.

Shouldn't the second line in the install script read as follows: 

    ../install --prefix=$startdir/pkg

Perhaps $DESTDIR has nothing to do with Opera but is an environment variable used in pacman??  Comments please.

I downloaded opera using "pacman -Sw opera" so I could take a close look at the opera package before installing.  Pacman downloaded the opera package but I cannot seem to find it on my hard disk.  Where does pacman put the downloaded packages?

Rob

Offline

#2 2006-01-19 03:18:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Opera Package

RobK wrote:

After looking at the PKBUILD for Opera, I am confused.  The build portion of the PKBUILD for Opera reads as follows:

build() {
   cd $startdir/src/$pkgname-$pkgver-20051114.6-shared-qt.i386-en
   ./install.sh DESTDIR=$startdir/pkg
   sed 's=libXm.so.3=libXm.so.2=' -i $startdir/pkg/usr/lib/opera/plugins/operamotifwrapper-3
}

But if you look at the install script for Opera, it does not use $DESTDIR.  It uses "--prefix=" as the way to specify the installation directory.

Shouldn't the second line in the install script read as follows: 

    ../install --prefix=$startdir/pkg

Perhaps $DESTDIR has nothing to do with Opera but is an environment variable used in pacman??  Comments please.

Are you sure that there is not two files: install and install.sh and that you are mixing the two? I haven't looked at the sources but if the install.sh file is using prefix instead of DESTIR for the files installation directory, then most likely the package would contain no files. I have opera 8.51 on my system and it works fine.  And DESTDIR (or prefix) are environnement variables used by the install.sh script.

RobK wrote:

I downloaded opera using "pacman -Sw opera" so I could take a close look at the opera package before installing.  Pacman downloaded the opera package but I cannot seem to find it on my hard disk.  Where does pacman put the downloaded packages?

Rob

look in  /var/cache/pacman/pkg

Offline

#3 2006-01-19 03:24:08

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Opera Package

From what I understand, there's USUALLY a difference between prefix and destdir, and it goes like this:

prefix is generally used to tell the installer where the files will be installed to your system; generally for configuring the app and hardcoding paths.

destdir is used when actually copying the files, and has nothing to do with configuration - this variable simply tells an install script where the "root" directory to install the files is.

This might be the case with the opera installer as well.  Very useful to have both options, especially for packaging or installing a package to a different root, but with paths that reference it as /

Offline

#4 2006-01-19 08:50:19

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Opera Package

BTW next version of Opera (9.0) will not have motif dependency. smile


to live is to die

Offline

#5 2006-01-19 22:27:00

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Opera Package

No.  I am looking at install.sh. 

If you run "./install.sh --help", you also get the following:

$install.sh --help
Usage: install.sh -s
  or:  install.sh -f DEST
  or:  install.sh --prefix=DEST
  or:  install.sh --exec_prefix=EXEC_DEST --wrapperdir=WRAPPER_DEST --docdir=DOC_DEST --sharedir=SHARE_DEST --plugindir=PLUGIN_DEST

Install Opera files to standard or user defined locations.

  -i, --interactive            Interactive mode (default)

  -s, --standard               install to standard locations
  -f, --force                  install to user defined location(s)

      --prefix=                install all files to directory

      --exec_prefix=           install Opera binaries to directory
      --wrapperdir=            install Opera wrapper script to directory
      --docdir=                install Opera documentation to directory
      --sharedir=              install Opera shared files to directory
      --plugindir=             install Opera plugin files to directory

  -v, --verbose                output which files are copied
  -vv                          output info on each executed command

  -V, --version                output version information and exit
  -h, --help                   display this help and exit
      --help=long              show advanced functions

If you choose to do a standard locations install, files will be put into
/usr/bin, /usr/share/doc/opera and /usr/share/opera.

However, if you choose to install to user defined locations, you must either
  specify one directory (all files will be put in this directory), or
  specify five directories (you may enter the same directory several times).

Offline

#6 2006-01-19 22:36:51

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Opera Package

Opps -- I do see a DESTDIR in the install.sh script.  It is funny it is not mentioned when you do a "install.sh --help".  Only the --prefix option is mentioned.

Rob

Offline

Board footer

Powered by FluxBB