Opened 12 years ago

Closed 10 years ago

#37767 closed defect (fixed)

octave-general @1.3.2 fails to build

Reported by: roberthuston@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: razzfazz (Daniel Becker), AP1010, ruben+macports@…, hnarayanan (Harish Narayanan), mv@…
Port: octave-general

Description

I did a self update and discovered that my octave-signal port needed to be upgraded to 1.2.0_0. As part of the upgrade, macports pulled down octave-general @1.3.2. But the build failed, thus preventing me from upgrading my octave-signal port. It appears that the portfile's build script fails to create intermediate directories and thus cannot populate them with intermediate results. I have attached the output of the main.log that was dumped as part of the build.

Attachments (1)

octave-general.log (119.3 KB) - added by roberthuston@… 12 years ago.
Build main.log output

Download all attachments as: .zip

Change History (19)

Changed 12 years ago by roberthuston@…

Attachment: octave-general.log added

Build main.log output

comment:1 Changed 12 years ago by razzfazz (Daniel Becker)

Seeing the same problem. This is on Mountain Lion.

comment:2 Changed 12 years ago by razzfazz (Daniel Becker)

Cc: razzfazz@… added

Cc Me!

comment:3 Changed 12 years ago by mf2k (Frank Schima)

Keywords: octave octave-general removed

comment:4 Changed 12 years ago by AP1010

Cc: arthur@… added

Cc Me!

comment:5 Changed 12 years ago by ruben+macports@…

Cc: ruben+macports@… added

Cc Me!

comment:6 Changed 12 years ago by mv@…

Cc Me!

Last edited 12 years ago by mv@… (previous) (diff)

comment:7 in reply to:  6 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: mv@… added

Replying to mv@…:

Cc Me!

You need to actually click the “CcMe!” button next to the Cc list to be Cc’d. I’ve added you to the list.

comment:8 Changed 12 years ago by hnarayanan (Harish Narayanan)

Cc: hnarayanan@… added

Cc Me!

comment:9 Changed 11 years ago by AP1010

This could be a bug in octave (the main package) not octave-general. I have seen similar errors when trying to install other packages (e.g. octave-strings). On the other hand, when I replaced octave-3.2.4 with octave-devel-3.6.4, I could then install octave-general (and octave-strings) without any errors.

comment:10 in reply to:  9 Changed 11 years ago by roberthuston@…

Replying to arthur@…:

This could be a bug in octave (the main package) not octave-general. I have seen similar errors when trying to install other packages (e.g. octave-strings). On the other hand, when I replaced octave-3.2.4 with octave-devel-3.6.4, I could then install octave-general (and octave-strings) without any errors.

I believe you are right. I was able to install octave-devel-3.6.4 and then octave-general happily installed. (My goal was to install octave-control and octave-signal, which pulls in octave-general and others.) At this point, octave-devel-3.6.4 is probably better anyway, since GNU Octave has version 3.6.4 marked as the actual release version. I've also since found that octave-devel-3.6.4 operates considerably faster and more efficiently than the standard octave-3.2.4. I don't understand why MacPorts keeps it at the "devel" state since GNU considers it "released."

comment:11 Changed 11 years ago by mv@…

Cc: mv@… removed

Cc Me!

comment:12 Changed 11 years ago by mv@…

Cc: mv@… added

Cc Me!

comment:13 Changed 11 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Please do:

sudo port clean octave-general
sudo port selfupdate

and then try installing it again. Should be fixed with r114034.

comment:14 in reply to:  13 ; Changed 11 years ago by AP1010

Replying to michaelld@…:

Please do:

sudo port clean octave-general
sudo port selfupdate

and then try installing it again. Should be fixed with r114034.

I am afraid it still fails to install:

---> Verifying checksums for octave-general ---> Checksumming general-1.3.2.tar.gz ---> Extracting octave-general ---> Extracting general-1.3.2.tar.gz ---> Configuring octave-general sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-general/octave-general/work/general: No such file or directory

comment:15 in reply to:  14 Changed 11 years ago by roberthuston@…

Replying to arthur@…:

Replying to michaelld@…:

Please do:

sudo port clean octave-general
sudo port selfupdate

and then try installing it again. Should be fixed with r114034.

I am afraid it still fails to install:

---> Verifying checksums for octave-general ---> Checksumming general-1.3.2.tar.gz ---> Extracting octave-general ---> Extracting general-1.3.2.tar.gz ---> Configuring octave-general sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-general/octave-general/work/general: No such file or directory

It appears that the octave-devel port has recently been deprecated and the regular octave port is now the most recent version (@3.6.4_10 as of this writing).

I've discovered that this behavior occurs with all packages, not just octave-general. Basically, it can be fixed manually by attempting to install the package, manually creating the "package" directory (e.g., "general") after the configuration step fails, and then resuming the installation.

$ sudo port install octave
=> now "octave" port installs what used to be the "octave-devel" port (version 3.6.4_x)

$ sudo port install octave-general
=> fails due to inability to "cd" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-general/octave-general/work/general" because the "general" subdirectory does not get created

$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave-general/octave-general/work
$ ls
=> verify that directory contains no "general" subdirectory
$ sudo mkdir general
$ sudo chown macports general
=> installer user account is "macports"
$ cd ../../..
=> need to do this last step because the build working directory gets deleted after installation
$ sudo port install octave-general
=> should successfully complete installation

I suspect there's something wrong with the octave package installer script in how it parses the package name in creating the build tree.

comment:16 Changed 10 years ago by ralph@…

Resolution: fixed
Status: closedreopened

I am getting the same issue when trying to upgrade from 1.3.2 to 1.3.4. It seems that this issue is NOT fixed.

comment:17 Changed 10 years ago by ralph@…

Hmm perhpas my issue is slightly different - it is some other files which are not there. I'll submit a new bug report.

comment:18 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.