Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sandbox access violation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1445

PostPosted: Sun Jun 02, 2013 2:06 pm    Post subject: sandbox access violation Reply with quote

Using dev-lang/squeak-4.10.2.2614 from the gbin overlay (didn't install it - just copied it to a local repository).

I can't find any contact information for the owner(s) of the repository.

The ebuild:

Code:

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/squeak/Attic/squeak-3.9.7.ebuild,v 1.6 2009/08/10 16:03:42 vostorga dead $

inherit multilib base versionator fixheadtails

DESCRIPTION="Highly-portable Smalltalk-80 implementation"
HOMEPAGE="http://www.squeak.org/"
SRC_URI="http://squeakvm.org/unix/release/Squeak-${PV}-src.tar.gz"
LICENSE="Apple"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="X mmx threads iconv"

ABI="32"

DEPEND="X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXt )"
RDEPEND="${DEPEND}"
#       virtual/squeak-image"

S="${WORKDIR}/Squeak-${PV}-src"

src_unpack() {
        base_src_unpack
        cd ${S}
        ht_fix_all
}

src_compile() {
        local myconf=""
        use X || myconf="--without-x"
        use mmx && myconf="${myconf} --enable-mpg-mmx"
        use threads && myconf="${myconf} --enable-mpg-pthread"
        use iconv || myconf="${myconf} --disable-iconv"
        cd ${S}
        mkdir build
        cd build
        ../unix/cmake/configure \
                --prefix=/usr \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man \
                --with-ffi=x86-sysv \
                ${myconf} || die "configure failed"
        emake || die
}

src_install() {
        cd ${S}/build
        make ROOT=${D} docdir=/usr/share/doc/${PF} install || die
        exeinto /usr/lib/squeak
        doexe inisqueak
        dosym /usr/lib/squeak/inisqueak /usr/bin/inisqueak
}

pkg_postinst() {
        elog "Run 'inisqueak' to get a private copy of the squeak image."
}


The (tail of) the build log:

Code:

Building C object CMakeFiles/squeakvm.dir/version.c.o
[100%] Building C object CMakeFiles/squeakvm.dir/disabledPlugins.c.o                                                                                   
Linking C executable squeakvm
[100%] Built target squeakvm
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/squeak-4.10.2.2614

>>> Install squeak-4.10.2.2614 into /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/ category dev-lang
[  0%] Built target ckformat
[  0%] Built target SurfacePlugin
[  1%] Built target BitBltPlugin
[  1%] Built target DSAPrims
[  2%] Built target AsynchFilePlugin
[  2%] Built target BMPReadWriterPlugin
[  3%] Built target CroquetPlugin
[  3%] Built target ADPCMCodecPlugin
[  4%] Built target B2DPlugin
[  4%] Built target squeak
[  4%] Built target squeak.sh
[  4%] Built target squeak.1
[  4%] Built target ZipPlugin
[  5%] Built target DropPlugin
[  6%] Built target FFTPlugin
[  6%] Built target FT2Plugin
[  7%] Built target FilePlugin
[  8%] Built target FloatArrayPlugin
[ 24%] Built target FloatMathPlugin
[ 24%] Built target GeniePlugin
[ 46%] Built target JPEGReadWriter2Plugin
[ 47%] Built target JPEGReaderPlugin
[ 48%] Built target JoystickTabletPlugin
[ 48%] Built target Klatt
[ 48%] Built target LargeIntegers
[ 49%] Built target LocalePlugin
[ 50%] Built target Matrix2x3Plugin
[ 50%] Built target MiscPrimitivePlugin
[ 52%] Built target RePlugin
[ 53%] Built target SecurityPlugin
[ 54%] Built target SerialPlugin
[ 54%] Built target SlangTestSupportPlugin
[ 55%] Built target SocketPlugin
[ 56%] Built target SoundCodecPrims
[ 57%] Built target SoundGenerationPlugin
[ 58%] Built target SoundPlugin
[ 59%] Built target StarSqueakPlugin
[ 66%] Built target squeakvm
[ 67%] Built target B3DAcceleratorPlugin
[ 69%] Built target Squeak3D
[ 70%] Built target CameraPlugin
[ 71%] Built target ClipboardExtendedPlugin
[ 71%] Built target DBusPlugin
[ 73%] Built target SqueakFFIPrims
[ 74%] Built target FileCopyPlugin
[ 75%] Built target HostWindowPlugin
[ 76%] Built target MIDIPlugin
[ 89%] Built target Mpeg3Plugin
[ 90%] Built target RomePlugin
[ 91%] Built target ScratchPlugin
[ 92%] Built target UUIDPlugin
[ 93%] Built target UnicodePlugin
[ 93%] Built target AioPlugin
[ 93%] Built target UnixOSProcessPlugin
[ 94%] Built target WeDoPlugin
[ 95%] Built target XDisplayControlPlugin
[ 96%] Built target vm-sound-OSS
[ 96%] Built target vm-display-custom
[ 97%] Built target vm-sound-null
[ 98%] Built target vm-display-X11
[ 98%] Built target vm-sound-NAS
[ 99%] Built target vm-sound-ALSA
[ 99%] Built target vm-display-null
[100%] Built target vm-display-fbdev
[100%] Built target vm-sound-custom
Install the project...
-- Install configuration: ""
ACCESS DENIED  mkdir:        /usr/lib/squeak
CMake Error at cmake_install.cmake:36 (FILE):
  file cannot create directory: /usr/lib/squeak/4.10.2-2614.  Maybe need
  administrative privileges.


make: *** [install] Error 1
 * ERROR: dev-lang/squeak-4.10.2.2614 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 2311:  Called die
 * The specific snippet of code:
 *       make ROOT=${D} docdir=/usr/share/doc/${PF} install || die;
 *
 * If you need support, post the output of `emerge --info '=dev-lang/squeak-4.10.2.2614'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/squeak-4.10.2.2614'`.
 * This ebuild is from an overlay named 'temp': '/usr/local/porttemp/'
 * The complete build log is located at '/var/log/portage/dev-lang:squeak-4.10.2.2614:20130602-133916.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/squeak-4.10.2.2614/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/squeak-4.10.2.2614/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build'
 * S: '/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-21253.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /usr/lib/squeak
A: /usr/lib/squeak
R: /usr/lib64/squeak
C: /usr/bin/cmake -P cmake_install.cmake
--------------------------------------------------------------------------------

>>> Failed to emerge dev-lang/squeak-4.10.2.2614, Log file:

>>>  '/var/log/portage/dev-lang:squeak-4.10.2.2614:20130602-133916.log'


Any idea what is going on (and how to fix it)? Thank you in advance.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11184

PostPosted: Sun Jun 02, 2013 3:53 pm    Post subject: Reply with quote

The upstream build system attempted to make a directory on the live filesystem. This is not permitted. It must make the directory in the Portage staging area, so that Portage receives an accurate picture of what to install. The ebuild passes the path to the staging area with ROOT="${D}". Either ROOT is not the correct name or the upstream build system uses ROOT inconsistently. It is traditional to use DESTDIR, not ROOT. However, upstream can use anything they like as long as they support it and the ebuild knows what to use. Based on the error text, I suggest you start with investigating cmake_install.cmake around line 36.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1445

PostPosted: Sun Jun 02, 2013 10:56 pm    Post subject: Reply with quote

Thanks. That was helpful.

I don't know if I would call the ebuild "upstream." It looks like someone just modified the last ebuild from when this was in portage over three years ago.

I am hoping that by posting this here, someone will know the maintainer of the gbin overlay. :)

Out of 62 *cmake_install.cmake files, I believe I have located the problematic one:

Code:

# Install script for directory: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/unix

# Set the install prefix
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
  SET(CMAKE_INSTALL_PREFIX "/usr")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

# Set the install configuration name.
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
  IF(BUILD_TYPE)
    STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
           CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
  ELSE(BUILD_TYPE)
    SET(CMAKE_INSTALL_CONFIG_NAME "")
  ENDIF(BUILD_TYPE)
  MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)

# Set the component getting installed.
IF(NOT CMAKE_INSTALL_COMPONENT)
  IF(COMPONENT)
    MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
    SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
  ELSE(COMPONENT)
    SET(CMAKE_INSTALL_COMPONENT)
  ENDIF(COMPONENT)
ENDIF(NOT CMAKE_INSTALL_COMPONENT)

# Install shared libraries without execute permission?
IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
  SET(CMAKE_INSTALL_SO_NO_EXE "0")
ENDIF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/squeak/4.10.2-2614" TYPE PROGRAM FILES "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/squeakvm")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE PROGRAM FILES "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/squeak")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE PROGRAM FILES "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/squeak.sh")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/squeak/4.10.2-2614" TYPE PROGRAM FILES "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/ckformat")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
  FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1" TYPE FILE FILES "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/squeak.1")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")

IF(NOT CMAKE_INSTALL_LOCAL_ONLY)
  # Include the install script for each subdirectory.
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/ADPCMCodecPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/AsynchFilePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/BMPReadWriterPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/B2DPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/BitBltPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/CroquetPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/DSAPrims/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/ZipPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/DropPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FFTPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FT2Plugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FilePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FloatArrayPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FloatMathPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/GeniePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/JPEGReadWriter2Plugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/JPEGReaderPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/JoystickTabletPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/Klatt/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/LargeIntegers/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/LocalePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/Matrix2x3Plugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/MiscPrimitivePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/RePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SecurityPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SerialPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SlangTestSupportPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SocketPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SoundCodecPrims/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SoundGenerationPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SoundPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/StarSqueakPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SurfacePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/B3DAcceleratorPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/Squeak3D/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/CameraPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/ClipboardExtendedPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/DBusPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/SqueakFFIPrims/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/FileCopyPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/HostWindowPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/MIDIPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/Mpeg3Plugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/RomePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/ScratchPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/UUIDPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/UnicodePlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/AioPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/UnixOSProcessPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/WeDoPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/XDisplayControlPlugin/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-sound-OSS/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-display-custom/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-sound-null/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-display-X11/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-sound-NAS/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-sound-ALSA/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-display-null/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-display-fbdev/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/vm-sound-custom/cmake_install.cmake")
  INCLUDE("/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/npsqueak/cmake_install.cmake")

ENDIF(NOT CMAKE_INSTALL_LOCAL_ONLY)

IF(CMAKE_INSTALL_COMPONENT)
  SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
  SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)

FILE(WRITE "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/${CMAKE_INSTALL_MANIFEST}" "")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
  FILE(APPEND "/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/build/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
ENDFOREACH(file)


So I am guessing that CMAKE_INSTALL_PREFIX is not getting defined?

Having never used cmake before (and not that competent on the autotools build system to begin with), may I ask how I should work around this?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 11184

PostPosted: Mon Jun 03, 2013 4:35 am    Post subject: Reply with quote

curmudgeon wrote:
I don't know if I would call the ebuild "upstream."
By upstream, I meant the authors of Squeak in general and their CMake-based build system in particular.
curmudgeon wrote:
So I am guessing that CMAKE_INSTALL_PREFIX is not getting defined?

Having never used cmake before (and not that competent on the autotools build system to begin with), may I ask how I should work around this?
No, I think CMAKE_INSTALL_PREFIX is their counterpart to the autotools --prefix option, which should not contain the path to the staging area. Letting it default to /usr is correct for Gentoo. According to the CMake man page, using DESTDIR should work. Please try that and report back.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1445

PostPosted: Mon Jun 03, 2013 11:16 am    Post subject: Reply with quote

Hu wrote:
No, I think CMAKE_INSTALL_PREFIX is their counterpart to the autotools --prefix option, which should not contain the path to the staging area. Letting it default to /usr is correct for Gentoo. According to the CMake man page, using DESTDIR should work. Please try that and report back.


Well, it did survive the build, but it looks like there are still a few things wrong.

Code:

[100%] Building C object CMakeFiles/squeakvm.dir/disabledPlugins.c.o                                                                                   
/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/Cross/vm/sqVirtualMachine.c: In function ‘pushOutputFile’:Linking C shared module so.vm-display-X11

/var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/Cross/vm/sqVirtualMachine.c:528:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
[100%] Built target vm-display-X11
Linking C executable squeakvm
[100%] Built target squeakvm
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/squeak-4.10.2.2614

>>> Install squeak-4.10.2.2614 into /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/ category dev-lang
[  0%] Built target ckformat
[  0%] Built target SurfacePlugin
[  0%] Built target squeak.sh
[  1%] Built target CroquetPlugin
[  2%] Built target AsynchFilePlugin
[  2%] Built target DSAPrims
[  2%] Built target BMPReadWriterPlugin
[  3%] Built target B2DPlugin
[  3%] Built target squeak
[  3%] Built target ADPCMCodecPlugin
[  4%] Built target BitBltPlugin
[  4%] Built target squeak.1
[  4%] Built target ZipPlugin
[  5%] Built target DropPlugin
[  6%] Built target FFTPlugin
[  6%] Built target FT2Plugin
[  7%] Built target FilePlugin
[  8%] Built target FloatArrayPlugin
[ 24%] Built target FloatMathPlugin
[ 24%] Built target GeniePlugin
[ 46%] Built target JPEGReadWriter2Plugin
[ 47%] Built target JPEGReaderPlugin
[ 47%] Built target Klatt
[ 48%] Built target JoystickTabletPlugin
[ 48%] Built target LargeIntegers
[ 49%] Built target LocalePlugin
[ 50%] Built target Matrix2x3Plugin
[ 50%] Built target MiscPrimitivePlugin
[ 52%] Built target RePlugin
[ 53%] Built target SecurityPlugin
[ 54%] Built target SerialPlugin
[ 54%] Built target SlangTestSupportPlugin
[ 55%] Built target SocketPlugin
[ 56%] Built target SoundCodecPrims
[ 57%] Built target SoundGenerationPlugin
[ 58%] Built target SoundPlugin
[ 59%] Built target StarSqueakPlugin
[ 66%] Built target squeakvm
[ 67%] Built target B3DAcceleratorPlugin
[ 69%] Built target Squeak3D
[ 70%] Built target CameraPlugin
[ 71%] Built target ClipboardExtendedPlugin
[ 71%] Built target DBusPlugin
[ 73%] Built target SqueakFFIPrims
[ 74%] Built target FileCopyPlugin
[ 75%] Built target HostWindowPlugin
[ 76%] Built target MIDIPlugin
[ 89%] Built target Mpeg3Plugin
[ 90%] Built target RomePlugin
[ 91%] Built target ScratchPlugin
[ 92%] Built target UUIDPlugin
[ 93%] Built target UnicodePlugin
[ 93%] Built target AioPlugin
[ 93%] Built target UnixOSProcessPlugin
[ 94%] Built target WeDoPlugin
[ 95%] Built target XDisplayControlPlugin
[ 96%] Built target vm-sound-OSS
[ 96%] Built target vm-display-custom
[ 97%] Built target vm-sound-null
[ 98%] Built target vm-display-X11
[ 98%] Built target vm-sound-NAS
[ 99%] Built target vm-sound-ALSA
[ 99%] Built target vm-display-null
[100%] Built target vm-display-fbdev
[100%] Built target vm-sound-custom
Install the project...
-- Install configuration: ""
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/squeakvm
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/bin/squeak
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/bin/squeak.sh
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/ckformat
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/share/man/man1/squeak.1
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.B3DAcceleratorPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.Squeak3D
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.CameraPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.ClipboardExtendedPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.DBusPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.SqueakFFIPrims
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.FileCopyPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.HostWindowPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.MIDIPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.Mpeg3Plugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.RomePlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.ScratchPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.UUIDPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.UnicodePlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.AioPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.UnixOSProcessPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.WeDoPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.XDisplayControlPlugin
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-sound-OSS
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-display-custom
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-sound-null
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-display-X11
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-sound-NAS
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-sound-ALSA
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-display-null
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-display-fbdev
-- Installing: /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/usr/lib/squeak/4.10.2-2614/so.vm-sound-custom
!!! doexe: inisqueak does not exist
doexe failed
>>> Completed installing squeak-4.10.2.2614 into /var/tmp/portage/dev-lang/squeak-4.10.2.2614/image/

 * QA Notice: file does not exist:
 *
 *      doexe: inisqueak does not exist
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/lib/squeak/4.10.2-2614/squeakvm
   usr/lib/squeak/4.10.2-2614/so.CameraPlugin
   usr/lib/squeak/4.10.2-2614/so.Squeak3D
   usr/lib/squeak/4.10.2-2614/ckformat
   usr/lib/squeak/4.10.2-2614/so.B3DAcceleratorPlugin
   usr/lib/squeak/4.10.2-2614/so.ClipboardExtendedPlugin
   usr/lib/squeak/4.10.2-2614/so.DBusPlugin
   usr/lib/squeak/4.10.2-2614/so.SqueakFFIPrims
   usr/lib/squeak/4.10.2-2614/so.FileCopyPlugin
   usr/lib/squeak/4.10.2-2614/so.HostWindowPlugin
   usr/lib/squeak/4.10.2-2614/so.MIDIPlugin
   usr/lib/squeak/4.10.2-2614/so.Mpeg3Plugin
   usr/lib/squeak/4.10.2-2614/so.RomePlugin
   usr/lib/squeak/4.10.2-2614/so.ScratchPlugin
   usr/lib/squeak/4.10.2-2614/so.UUIDPlugin
   usr/lib/squeak/4.10.2-2614/so.AioPlugin
   usr/lib/squeak/4.10.2-2614/so.UnicodePlugin
   usr/lib/squeak/4.10.2-2614/so.UnixOSProcessPlugin
   usr/lib/squeak/4.10.2-2614/so.WeDoPlugin
   usr/lib/squeak/4.10.2-2614/so.vm-sound-OSS
   usr/lib/squeak/4.10.2-2614/so.XDisplayControlPlugin
   usr/lib/squeak/4.10.2-2614/so.vm-sound-null
   usr/lib/squeak/4.10.2-2614/so.vm-display-custom
   usr/lib/squeak/4.10.2-2614/so.vm-display-X11
   usr/lib/squeak/4.10.2-2614/so.vm-sound-NAS
   usr/lib/squeak/4.10.2-2614/so.vm-sound-ALSA
   usr/lib/squeak/4.10.2-2614/so.vm-display-null
   usr/lib/squeak/4.10.2-2614/so.vm-display-fbdev
   usr/lib/squeak/4.10.2-2614/so.vm-sound-custom
ecompressdir: bzip2 -9 /usr/share/man

 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  http://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see http://hardened.gentoo.org/gnu-stack.xml
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * RWX --- --- usr/lib/squeak/4.10.2-2614/so.SqueakFFIPrims


 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * /var/tmp/portage/dev-lang/squeak-4.10.2.2614/work/Squeak-4.10.2.2614-src/Cross/plugins/Mpeg3Plugin/libmpeg/changesForSqueak.c:85:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.squeak.org/

>>> Installing (1 of 1) dev-lang/squeak-4.10.2.2614
 * checking 33 files for package collisions
>>> Merging dev-lang/squeak-4.10.2.2614 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/squeak.sh
>>> /usr/bin/squeak
--- /usr/lib/
>>> /usr/lib/squeak/
>>> /usr/lib/squeak/4.10.2-2614/
>>> /usr/lib/squeak/4.10.2-2614/so.vm-sound-null
>>> /usr/lib/squeak/4.10.2-2614/so.vm-sound-ALSA
>>> /usr/lib/squeak/4.10.2-2614/so.vm-sound-OSS
>>> /usr/lib/squeak/4.10.2-2614/so.UnixOSProcessPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.vm-sound-custom
>>> /usr/lib/squeak/4.10.2-2614/so.Mpeg3Plugin
>>> /usr/lib/squeak/4.10.2-2614/so.Squeak3D
>>> /usr/lib/squeak/4.10.2-2614/so.ClipboardExtendedPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.vm-display-null
>>> /usr/lib/squeak/4.10.2-2614/so.vm-display-X11
>>> /usr/lib/squeak/4.10.2-2614/so.HostWindowPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.AioPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.WeDoPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.DBusPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.SqueakFFIPrims
>>> /usr/lib/squeak/4.10.2-2614/ckformat
>>> /usr/lib/squeak/4.10.2-2614/so.RomePlugin
>>> /usr/lib/squeak/4.10.2-2614/so.FileCopyPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.UnicodePlugin
>>> /usr/lib/squeak/4.10.2-2614/so.UUIDPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.vm-sound-NAS
>>> /usr/lib/squeak/4.10.2-2614/so.B3DAcceleratorPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.CameraPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.ScratchPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.vm-display-fbdev
>>> /usr/lib/squeak/4.10.2-2614/squeakvm
>>> /usr/lib/squeak/4.10.2-2614/so.vm-display-custom
>>> /usr/lib/squeak/4.10.2-2614/so.XDisplayControlPlugin
>>> /usr/lib/squeak/4.10.2-2614/so.MIDIPlugin
--- /usr/share/
--- /usr/share/man/
--- /usr/share/man/man1/
>>> /usr/share/man/man1/squeak.1.bz2
 * QA Notice: Symbolic link /usr/bin/inisqueak points to /usr/lib/squeak/inisqueak which does not exist.
>>> /usr/bin/inisqueak -> /usr/lib/squeak/inisqueak
 * Run 'inisqueak' to get a private copy of the squeak image.
>>> dev-lang/squeak-4.10.2.2614 merged.
>>> Regenerating /etc/ld.so.cache...


Now I just have to figure out what happened to the inisqueak script (any squeak experts out there?). It is not mentioned in the log file before "does not exist," and I don't see anything in the tarball that looks like it.

I can't do any more testing on this until I am physically at the machine again, so I won't know how well it "really" works for a while.

Thanks again for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum