Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove misleading deprecation of old support directory #3613

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

aspiers
Copy link
Contributor

@aspiers aspiers commented Mar 30, 2018

On UNIX-like systems, if SuperCollider is compiled from source into the user's home directory via:

cmake -DCMAKE_INSTALL_PREFIX=$HOME
make install

then Platform.systemAppSupportDir and Platform.resourceDir will be set to

$HOME/share/SuperCollider

This is due to CMakeLists.txt containing the definition of SC_DATA_DIR:

elseif(UNIX)
        add_definitions(-DSC_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/SuperCollider")
endif()

which is then consumed by common/SC_Filesystem_unix.cpp.

Unfortunately, this resulting path is identical to the old location for the user support directory, so it triggers a misleading warning. However this deprecation was introduced by 2b77ef6 in August 2011, so it should be safe to remove it by now.

Fixes #3367.

supportDirectory.string().c_str());
}
#endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! Can you remove the includes above for boost/filesystem/path, boost/filesystem/operations, and SC_Filesystem? This is the only place they're needed in this file (I guess I should have put SC_Filesystem in the ifdef when I last edited this)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Done.

@aspiers aspiers force-pushed the rm-support-dir-deprecation branch from d28cdb8 to 143a176 Compare March 30, 2018 17:07
@mossheim
Copy link
Contributor

mossheim commented Apr 4, 2018

@aspiers - would you mind removing the include for SC_LanguageConfig.hpp as well? I just doubled checked this; not only is it an unused include, it's also the only header that would transitively include Boost, so removing it would speed up the build time for this unit. :)

I have this change locally, so I can just push it myself to this branch if you're ok with that.

On UNIX-like systems, if SuperCollider is compiled from source into
the user's home directory via:

    cmake -DCMAKE_INSTALL_PREFIX=$HOME
    make install

then Platform.systemAppSupportDir and Platform.resourceDir will be set
to

    $HOME/share/SuperCollider

This is due to CMakeLists.txt containing the definition of SC_DATA_DIR:

    elseif(UNIX)
            add_definitions(-DSC_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/SuperCollider")
    endif()

which is then consumed by common/SC_Filesystem_unix.cpp.

Unfortunately, this resulting path is identical to the old location
for the *user* support directory, so it triggers a misleading warning.
However this deprecation was introduced by 2b77ef6 in August 2011,
so it should be safe to remove it by now.

Fixes supercollider#3367.
@aspiers aspiers force-pushed the rm-support-dir-deprecation branch from 143a176 to 9cf80b8 Compare April 4, 2018 20:31
@aspiers
Copy link
Contributor Author

aspiers commented Apr 4, 2018

Done but yeah, feel free to push yourself in future if you don't want to wait :-)

Copy link
Contributor

@mossheim mossheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@mossheim mossheim merged commit 6342231 into supercollider:develop Apr 4, 2018
@aspiers aspiers deleted the rm-support-dir-deprecation branch April 4, 2018 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants