WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Extension naming conflict (mpc)  (Read 3133 times)

Offline H.Lunke

  • Newbie
  • *
  • Posts: 9
Extension naming conflict (mpc)
« on: January 27, 2012, 09:04:00 AM »
Hi,

i'm new to TC, find it very interesting so first of all thanks for all the work..

I plan to use TC on a home pc music server, using the existing MPD (Music Player Daemon) extension. For controlling the server locally i installed MPC just to notice that this is not the "minimalist mpd client" that i expected but a library for complex numbers arithmetics.

So i built an extension "mpc-tc", leaving the binary as "mpc" as it is a dependency for other MPD clients out there. Shall i submit the extension that way, or should the naming be changed somehow?


[edit: added (mpc) to subject line for clarification]
« Last Edit: January 30, 2012, 11:37:00 AM by H.Lunke »
Paradise is exactly like where you are right now -
only much, much better. [Laurie Anderson, Language is a virus]

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Extension naming conflict
« Reply #1 on: January 27, 2012, 10:27:10 AM »

Offline H.Lunke

  • Newbie
  • *
  • Posts: 9
Re: Extension naming conflict
« Reply #2 on: January 28, 2012, 11:26:31 AM »
So the problem has been heard of, but what is the solution?

Installing mpc from 3.x might lead to problems with installed mpc from 4.x, maybe when it comes to removal/dependency checking of some other component.. am i wrong?

I think the math-thing should be renamed to 'libmpc' and the repository should be updated accordingly.
Paradise is exactly like where you are right now -
only much, much better. [Laurie Anderson, Language is a virus]

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: Extension naming conflict
« Reply #3 on: January 28, 2012, 01:44:24 PM »
Hi H.Lunke
Quote
I think the math-thing should be renamed to 'libmpc' and the repository should be updated accordingly
Personally I agree. The files in that extension are all named  libmpc  and the extension should be
named likewise. Not to mention that the new name breaks what seems to be a tradition of library
extension names beginning  lib. That said, it's really juanitos choice as it's his extension, though
the  submitqc  would have flagged that as problem had the original  mpc.tcz  already been in the
repository, which it wasn't.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Extension naming conflict
« Reply #4 on: January 28, 2012, 02:52:33 PM »
I've always thought an extension should be named after the source package and the source for mpc is named mpc.

Maybe we could name MPC, mpc_music or similar?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Extension naming conflict
« Reply #5 on: January 29, 2012, 05:52:18 PM »
Just to repeat what I wrote only a few weeks ago: Please do not use case to differentiate extension names!!!

Why was it necessary to change the name of the extension for the library from 'libmpc.tcz' to 'mpc.tcz' (when comparing  the repositories of TC 3.x and 4.x)?? A quick check with a "bloated cousin" (i.e. Ubuntu) shows that they use pretty much the naming as we had in TC 3.x.

I'd therefore like to suggest to go back to the previous use of extension names (and hence change 'mpc.tcz' and 'mpc-dev.tcz' in TC 4.x back to 'libmpc.tcz' and 'libmpc-dev.tcz') to stay consistent with our own history (and broadly in sync which what users might be expecting).

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: Extension naming conflict
« Reply #6 on: January 29, 2012, 08:55:46 PM »
Quote
A quick check with a "bloated cousin" (i.e. Ubuntu) shows that they use pretty much the naming as we had in TC 3.x.
Not just Ubuntu
http://www.multiprecision.org/index.php?prog=mpc&page=packages

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Extension naming conflict (mpc)
« Reply #7 on: February 01, 2012, 03:08:36 AM »
I don't agree with it, but mpc renamed libmpc (and mpc-dev renamed libmpc-dev)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: Extension naming conflict (mpc)
« Reply #8 on: February 01, 2012, 08:54:09 AM »
Hi Juanito
Thank you for that, and for all your effort and hard work.

Offline H.Lunke

  • Newbie
  • *
  • Posts: 9
Re: Extension naming conflict (mpc)
« Reply #9 on: February 01, 2012, 11:48:51 AM »
That's good news, thanks Juanito.
I have asked the maintainers of the 3.x-mpc if they are going to build the current version for 4.x, otherwise i can do.

[edit: mpc V0.21 (and mpc-doc) are now in the 4.x repository]
« Last Edit: February 05, 2012, 02:54:25 AM by H.Lunke »
Paradise is exactly like where you are right now -
only much, much better. [Laurie Anderson, Language is a virus]