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

build: --prefix install location #2043

Open
skidoo23 opened this issue May 11, 2024 · 3 comments · May be fixed by #2044
Open

build: --prefix install location #2043

skidoo23 opened this issue May 11, 2024 · 3 comments · May be fixed by #2044

Comments

@skidoo23
Copy link
Contributor

Bug report

Describe the bug

Using meson --prefix=/usr installs MPD in the /usr directory. Using the same prefix installs mpc and ncmpc executables to /usr/bin

$ meson . output --wrap-mode=nodownload --buildtype=release --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 -Db_ndebug=true -Ddocumentation=enabled

mpc 0.36

  User defined options
    buildtype         : release
    libdir            : lib/x86_64-linux-gnu
    localstatedir     : /var
    prefix            : /usr
    sysconfdir        : /etc
    wrap_mode         : nodownload
    python.bytecompile: -1
    b_ndebug          : true
    documentation     : enabled
$ ninja -C output
# ninja -C output install
Installing mpc to /usr/bin
Installing /sources/mpc/output/doc/html/index.html to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/searchindex.js to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/genindex.html to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/.buildinfo to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/objects.inv to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/search.html to /usr/share/doc/mpc/html
Installing /sources/mpc/output/doc/html/_static/alabaster.css to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/sphinx_highlight.js to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/minus.png to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/pygments.css to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/searchtools.js to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/file.png to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/forkme_right_darkblue_121621.png to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/doctools.js to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/basic.css to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/custom.css to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/plus.png to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/documentation_options.js to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_static/language_data.js to /usr/share/doc/mpc/html/_static
Installing /sources/mpc/output/doc/html/_sources/index.rst.txt to /usr/share/doc/mpc/html/_sources
Installing /sources/mpc/output/doc/man/man1/mpc.1 to /usr/share/man/man1
Installing /sources/mpc/AUTHORS to /usr/share/doc/mpc
Installing /sources/mpc/COPYING to /usr/share/doc/mpc
Installing /sources/mpc/NEWS to /usr/share/doc/mpc
Installing /sources/mpc/README.rst to /usr/share/doc/mpc
Installing /sources/mpc/contrib/mpd-m3u-handler.sh to /usr/share/doc/mpc/contrib
Installing /sources/mpc/contrib/mpd-pls-handler.sh to /usr/share/doc/mpc/contrib
Installing /sources/mpc/contrib/mpc-completion.bash to /usr/share/doc/mpc/contrib

Expected Behavior

Identical behavior to mpc and ncmpc during build and install process.

Actual Behavior

See above

Version

MPD from git.

Configuration

mpd.conf not relevant. Debian testing x64, meson 1.4.0, ninja 1.11.1

Log

$ meson setup . output -Dadplug=disabled -Dalsa=enabled -Dao=disabled -Daudiofile=enabled -Dbzip2=enabled \
-Dcdio_paranoia=disabled -Dcue=true -Dcurl=enabled -Ddatabase=true -Ddbus=enabled -Ddocumentation=enabled \
-Ddsd=false -Dexpat=enabled -Dfaad=enabled -Dffmpeg=enabled -Dfifo=true -Dflac=enabled -Dfluidsynth=disabled \
-Dgme=disabled -Dhttpd=true -Diconv=enabled -Dicu=enabled -Did3tag=enabled -Dinotify=true -Dio_uring=enabled \
-Dipv6=enabled -Diso9660=enabled -Djack=disabled -Dlame=enabled -Dlibmpdclient=enabled -Dlibsamplerate=enabled  \
-Dlocal_socket=true -Dmad=enabled -Dmikmod=disabled -Dmms=enabled -Dmodplug=disabled -Dmpcdec=enabled \
-Dmpg123=enabled -Dneighbor=true -Dnfs=enabled -Dopenal=disabled -Dopenmpt=enabled -Dopus=enabled \
-Doss=disabled -Dpipe=true -Dpipewire=disabled -Dpulse=disabled -Dsnapcast=true -Dqobuz=disabled -Drecorder=false \
-Dshine=disabled -Dshout=disabled -Dsidplay=enabled -Dsmbclient=disabled -Dsndfile=enabled -Dsndio=disabled \
-Dsolaris_output=disabled -Dsoundcloud=disabled -Dsoxr=enabled -Dsqlite=enabled -Dsyslog=enabled -Dsystemd=enabled \
-Dtcp=true -Dtwolame=disabled -Dudisks=disabled -Dupnp=disabled -Dvorbis=enabled -Dvorbisenc=enabled \
-Dwave_encoder=true -Dwavpack=enabled -Dwebdav=disabled -Dwildmidi=disabled -Dyajl=enabled -Dzeroconf=avahi \
-Dzlib=enabled -Dzzip=enabled --libdir=lib/x86_64-linux-gnu --localstatedir=/var --sysconfdir=/etc \
--wrap-mode=nodownload --buildtype=release --prefix=/usr -Dpython.bytecompile=-1 -Db_ndebug=true
mpd 0.24

  User defined options
    buildtype         : release
    libdir            : lib/x86_64-linux-gnu
    localstatedir     : /var
    prefix            : /usr
    sysconfdir        : /etc
    wrap_mode         : nodownload
    python.bytecompile: -1
    b_ndebug          : true
    adplug            : disabled
    alsa              : enabled
    ao                : disabled
    audiofile         : enabled
    bzip2             : enabled
    cdio_paranoia     : disabled
    cue               : true
    curl              : enabled
    database          : true
    dbus              : enabled
    documentation     : enabled
    dsd               : false
    expat             : enabled
    faad              : enabled
    ffmpeg            : enabled
    fifo              : true
    flac              : enabled
    fluidsynth        : disabled
    gme               : disabled
    httpd             : true
    iconv             : enabled
    icu               : enabled
    id3tag            : enabled
    inotify           : true
    io_uring          : enabled
    ipv6              : enabled
    iso9660           : enabled
    jack              : disabled
    lame              : enabled
    libmpdclient      : enabled
    libsamplerate     : enabled
    local_socket      : true
    mad               : enabled
    mikmod            : disabled
    mms               : enabled
    modplug           : disabled
    mpcdec            : enabled
    mpg123            : enabled
    neighbor          : true
    nfs               : enabled
    openal            : disabled
    openmpt           : enabled
    opus              : enabled
    oss               : disabled
    pipe              : true
    pipewire          : disabled
    pulse             : disabled
    qobuz             : disabled
    recorder          : false
    shine             : disabled
    shout             : disabled
    sidplay           : enabled
    smbclient         : disabled
    snapcast          : true
    sndfile           : enabled
    sndio             : disabled
    solaris_output    : disabled
    soundcloud        : disabled
    soxr              : enabled
    sqlite            : enabled
    syslog            : enabled
    systemd           : enabled
    tcp               : true
    twolame           : disabled
    udisks            : disabled
    upnp              : disabled
    vorbis            : enabled
    vorbisenc         : enabled
    wave_encoder      : true
    wavpack           : enabled
    webdav            : disabled
    wildmidi          : disabled
    yajl              : enabled
    zeroconf          : avahi
    zlib              : enabled
    zzip              : enabled
$ ninja -C output
# ninja -C output install

Installing mpd to /usr
Installing /sources/MPD/output/doc/html/mpd.1.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/client.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/plugins.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/mpd.conf.5.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/user.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/index.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/searchindex.js to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/genindex.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/protocol.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/.buildinfo to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/objects.inv to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/developer.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/search.html to /usr/share/doc/mpd/html
Installing /sources/MPD/output/doc/html/_static/sphinx_highlight.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/minus.png to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/pygments.css to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/searchtools.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/jquery.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/file.png to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/_sphinx_javascript_frameworks_compat.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/doctools.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/basic.css to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/plus.png to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/documentation_options.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/language_data.js to /usr/share/doc/mpd/html/_static
Installing /sources/MPD/output/doc/html/_static/fonts/fontawesome-webfont.svg to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Bold.ttf to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Bold.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Regular.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Italic.ttf to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/fontawesome-webfont.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/fontawesome-webfont.eot to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-BoldItalic.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/fontawesome-webfont.ttf to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Regular.ttf to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/fontawesome-webfont.woff to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/RobotoSlab-Bold.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-Italic.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/Lato-BoldItalic.ttf to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/fonts/RobotoSlab-Regular.woff2 to /usr/share/doc/mpd/html/_static/fonts
Installing /sources/MPD/output/doc/html/_static/js/theme.js to /usr/share/doc/mpd/html/_static/js
Installing /sources/MPD/output/doc/html/_static/css/badge_only.css to /usr/share/doc/mpd/html/_static/css
Installing /sources/MPD/output/doc/html/_static/css/custom.css to /usr/share/doc/mpd/html/_static/css
Installing /sources/MPD/output/doc/html/_static/css/theme.css to /usr/share/doc/mpd/html/_static/css
Installing /sources/MPD/output/doc/html/_sources/client.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/developer.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/protocol.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/plugins.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/mpd.1.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/index.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/user.rst.txt to /usr/share/doc/mpd/html/_sources
Installing /sources/MPD/output/doc/html/_sources/mpd.conf.5.rst.txt to /usr/share/doc/mpd/html/_sources
Installing doc/mpd.1 to /usr/share/man/man1
Installing doc/mpd.conf.5 to /usr/share/man/man5
Installing /sources/MPD/output/systemd/system/mpd.socket to /usr/lib/systemd/system
Installing /sources/MPD/output/systemd/system/mpd.service to /usr/lib/systemd/system
Installing /sources/MPD/output/systemd/user/mpd.socket to /usr/lib/systemd/user
Installing /sources/MPD/output/systemd/user/mpd.service to /usr/lib/systemd/user
Installing /sources/MPD/mpd.svg to /usr/share/icons/hicolor/scalable/apps
Installing /sources/MPD/AUTHORS to /usr/share/doc/mpd
Installing /sources/MPD/COPYING to /usr/share/doc/mpd
Installing /sources/MPD/NEWS to /usr/share/doc/mpd
Installing /sources/MPD/README.md to /usr/share/doc/mpd
@leigh123linux
Copy link

Try adding this to the mpd meson build options --bindir=/usr/bin

@leigh123linux leigh123linux linked a pull request May 11, 2024 that will close this issue
@skidoo23
Copy link
Contributor Author

Your fix installs MPD executable in the right location. thx!

@lazypingu
Copy link
Contributor

Works fine for me here as well on Gentoo! Thanks @leigh123linux and @skidoo23!

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 a pull request may close this issue.

3 participants