Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6970293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:41:28+00:00 2026-05-27T16:41:28+00:00

Goal I am trying to create a port (Macports) for an open source tool

  • 0

Goal

I am trying to create a port (Macports) for an open source tool based on Eclipse which doesn’t need installation, in other words, it’s just “extract and use” case. Users can download the tool from the official project site and use just like that. So there is no DESTROOT variable set.

Since many Mac users got used to the convenience of Macports, I would like to add the tool there, so that users could instantly install or uninstall the tool.

** Important notice: once users start the tool, it creates “/workspace” directory in the same place the tool was installed to keep users’ preferences, settings, and other necessary files. So, when users starts the tool, the program should have access to write in the same directory it was installed. The current version of the tool doesn’t provide a way to choose the workspace location.

Problem

How should I organize the Portfile?

I have set the following configurations where I tell Macports to not use configure, build, and destroot phases.

set cm_workspace    /workspace

universal_variant   no

use_configure       no

supported_archs     noarch

post-extract {
    file mkdir ${worksrcpath}${cm_workspace}
    destroot.keepdirs-append  ${worksrcpath}${cm_workspace}
}

build {}

destroot {}

As I understand,

  • extract phase untars the file,
  • and install phases should archive those files,
  • and finally activate phase should move the files to the destroot.

But I keep getting errors.

--->  Extracting cubridmanager
--->  Configuring cubridmanager
--->  Building cubridmanager
--->  Staging cubridmanager into destroot
Error: No files have been installed in the destroot directory!
Error: Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile.
Error: Files might have been installed directly into your system, check before proceeding.
Error: Target org.macports.destroot returned: Staging cubridmanager into destroot failed
Log for cubridmanager is at: /opt/local/var/macports/logs/_Users_nbp_macports_databases_cubridmanager/cubridmanager/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I want to contribute to that open source community, but I can’t pass this step.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:41:29+00:00Added an answer on May 27, 2026 at 4:41 pm

    You misunderstood the phases, the usual workflow is as follows:

    1. extract untars the downloaded file
    2. patch applies any local patches
    3. configure runs ./configure
    4. build runs make
    5. destroot runs make install DESTDIR=${destroot}
    6. install packs the file in the destroot area into an archive
    7. activate moves the files into ${prefix}

    So, in your case, you don’t need steps 2, 3 and 4. But you still need to copy the files to the destroot area in step 5, the destroot phase. Otherwise MacPorts does not know which files it is supposed to install.

    supported_archs     noarch
    use_configure no
    
    build {}
    destroot {
        copy ${worksrcpath} ${destroot}${prefix}/some/path
    }
    

    Note that MacPorts does discourage installing files outside the prefix directory, as the installation is meant to be self-contained. The path /workspace sounds like a pretty bad idea. Rather, you should use a path inside the users home directory to save any data as otherwise this cannot be used on a computer with multiple user accounts. Of course, the actual executable files can reside in the MacPorts prefix.

    Normally, UNIX software separates binaries, libraries and shared data in /usr (or in the MacPorts case,/opt/local) from user-specific data in the home directory. If your tool does not follow this convention, this needs to be fixed by the developers first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create a moving back ground. My goal is to have a
Background / Goal More or less, I'm trying to create a nested group of
I am trying to create a (child) JFrame which slides out from underneath one
I'm trying to create a REST service which shows/adds/deletes/edits soccer data in a database.
Goal: I am trying to create a slightly dynamic page animated with basic canvas
I am a Clojure n00b trying to create some XML strings. My goal is
I'm trying to create a button which when held would add 1 or any
I'm trying to create a simple STRIPS -based planner. I've completed the basic functionality
I'm trying to create an Eclipse plugin to support a proprietary project file format.
I'm trying to create a buildfile for creating .deb installation files. So far, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.