You are not logged in.

#1 2016-09-11 16:42:08

Sedenion
Member
Registered: 2016-07-03
Posts: 30

missing destination file operand in install

I have cloned the Maya 2016 aur repository and modified it so it downloads Maya Extension 2 SP1 instead of Extension 1 SP5. This is the modified PKGBUILD file, the MD5 checksums are recalculated for Extension 2 SP1:

pkgname=maya
pkgver=2016_SP5
pkgrel=1
pkgdesc="Maya software helps you tackle challenging character creation and digital animation productions. Get powerful, integrated 3D tools on a robust, extensible CG pipeline core."
arch=('x86_64')
url="http://www.autodesk.com/products/maya/overview"
license=('custom: unlimited')
depends=('libpng12' 'tcsh' 'libxp' 'openssl' 'libjpeg' 'libtiff')
makedepends=('rpmextract' 'gcc')
conflicts=()
install=maya.install
source=('http://download.autodesk.com/us/support/files/maya_2016_ext2/Autodesk_Maya_2016_EXT2_SP1_EN_Linux_64bit.tgz'
        'maya_start.sh::https://aur.archlinux.org/maya.git')
md5sums=('5bad8652110bb305e449924a73d7f1a1'
         '9ba05fd94f32ae0a4462851063316d4e')

package() {

  install "$pkgdir"/opt/Autodesk/MayaSetup
  rsync -av --exclude='*.rpm' ./ "$pkgdir"/opt/Autodesk/MayaSetup

  cd "$pkgdir"

  msg2 "Unpacking Red Hat .rpm files. This could take a while..."

  for i in "$srcdir"/*.rpm; do
      msg2 $i
      rpmextract.sh $i
  done

  mv "$pkgdir"/usr/local/bin/maya "$pkgdir"/usr/local/bin/oriMaya

  cp "$srcdir"/maya_start.sh  "$pkgdir"/usr/local/bin/maya

}

When I use makepkg -sri to install the package, it prints the following: (Installation files are located in /media/Files/Software/Maya/Maya2016aur)

==> Making package: maya 2016_SP5-1 (Sun Sep 11 09:29:19 PDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Autodesk_Maya_2016_EXT2_SP1_EN_Linux_64bit.tgz
  -> Found maya_start.sh
==> Validating source files with md5sums...
    Autodesk_Maya_2016_EXT2_SP1_EN_Linux_64bit.tgz ... Passed
    maya_start.sh ... Passed
==> Extracting sources...
  -> Extracting Autodesk_Maya_2016_EXT2_SP1_EN_Linux_64bit.tgz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
install: missing destination file operand after '/media/Files/Software/Maya/Maya2016aur/pkg/maya/opt/Autodesk/MayaSetup'
Try 'install --help' for more information.
==> ERROR: A failure occurred in package().
    Aborting...

How do I solve this problem? Thanks in advance.

Offline

#2 2016-09-11 20:21:58

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: missing destination file operand in install

The highly intelligent maintainer for that package must not have tested it, like, at all... since the version in the AUR would have the same problem. wink I see your comment there, so you can go ahead and tell the maintainer:

The problem is that the `install` command as used is completely and utterly invalid, like, the kind of invalid that makes me say "did they read the manpage, or the help, or even a single example of someone successfully using that command?"

Also, why on earth is there a pointless *and* invalid makedepends on gcc? And why on earth is `rsync` used instead of `cp` -- which, incidentally, is therefore an undeclared makedepends (and anyone who didn't have rsync installed for other reasons, would have that PKGBUILD error on them if there wasn't already a problem with the previous line)?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2016-09-12 11:10:26

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: missing destination file operand in install

there's even more weird stuff in the pkgbuild, check the sources section :

"maya_start.sh::https://aur.archlinux.org/maya.git'

when downloading snapshot or cloning you already have that file ....

Also look at the content of that start script .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2016-09-12 18:42:24

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: missing destination file operand in install

Wow, that is atrocious...

And that install file is demented too.

This package doesn't seem to do a single thing right.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2016-09-14 12:59:51

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: missing destination file operand in install

Sedenion,

I have looked into the maya download a bit and it requires older versions of lots of libraries .
Check Operating system compatibility for Autodesk Maya , it only supports RHEL WS 6.5 & CentOS 6.5 .

Getting Maya to work in a clean way on AL through a package would require a lot of work.

Maybe you can use an alternative like Blender or Wings 3D ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB