overviewer / Minecraft-Overviewer

Render high-resolution maps of a Minecraft world with a Leaflet powered interface
https://overviewer.org/
GNU General Public License v3.0
3.36k stars 481 forks source link

CentOS 7 RPM repo and Python 2.7 #1204

Closed jefmes closed 6 years ago

jefmes commented 9 years ago

I'm running a pretty standard VM on DigitalOcean with CentOS 7, and I managed to get Overviewer working for a few months after building it myself. I was hoping by now there would be a CentOS 7 repo available and I'd really rather keep Overviewer updated via yum than have to use my kludgy mess. CentOS 7 ships with Python 2.7 also, so I'm getting the following message when I try to add the current repo from the CentOS instructions here:

http://docs.overviewer.org/en/latest/installing/

Here is the output I'm getting when attempting to install Overviewer via yum right now. Maybe I'm just missing something, but I thought someone might want to clean up the behavior for CentOS/RHEL 7 users.

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.pac-12.org
 * epel: mirror.sfo12.us.leaseweb.net
 * extras: mirror.lax.hugeserver.com
 * updates: mirrors.psychz.net
Resolving Dependencies
--> Running transaction check
---> Package Minecraft-Overviewer.x86_64 0:0.12.31-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: Minecraft-Overviewer-0.12.31-1.el6.x86_64
--> Processing Dependency: libpython2.6.so.1.0()(64bit) for package: Minecraft-Overviewer-0.12.31-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: Minecraft-Overviewer-0.12.31-1.el6.x86_64 (overviewer)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-16.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
Error: Package: Minecraft-Overviewer-0.12.31-1.el6.x86_64 (overviewer)
           Requires: libpython2.6.so.1.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
markhughes commented 7 years ago

You don't have to get a temper over this. I didn't have a clue the web repository existed or that an IRC channel existed. I can work on a PR for it when I work out how it all works. Thank you for sharing it, it's appreciated.

That could have been something you should have contributed earlier in the discussion and we wouldn't have had all this time wasted going back and forth (so don't bad mouth me for using visual communications haha). 😃

CounterPillow commented 7 years ago

I think you may be mistaken. CentOS is part of the Enterprise Linux (EL) definition. CentOS, being free, is used by a lot of individuals running servers (including me).

where did I ever claim this wasn't the case?

That could have been something you should have contributed earlier in the discussion and we wouldn't have had all this time wasted going back and forth

Usually there's no need to tell people explicitly that you're able to contribute to open-source projects, but apparently you need to be spoonfed this.

eminence commented 7 years ago

Hi everyone, I know we have been massively slacking on this topic. We've started work on this a while ago, but never really finished. You can preview the new RPM repo here: http://overviewer.org/rpms_new/ (though this link will eventually be removed once it's officially hooked up to the official repo -- whenever that might be).

I know that people can get frustrated with the lack of progress, and that people can get frustrated at the lack of help. Please keep our discussion threads friendly! :pizza:

enaut commented 7 years ago

Hey Guys I once created a copr repos since there seemed the desperate need for one: https://copr.fedorainfracloud.org/coprs/enaut/minecraft-overviewer-weekly/ Inclusion in the official docs was not wanted (I think that's where the stubborn comes from).

Since I had next to none downloads I stopped maintaining it as I don't really use it myself. But hey it might be worth to look at and might be easy enough to just maintain it yourself starting a build is like 3 to 5 commands and then you have your rpm repos included. The relevant branch is: https://github.com/enaut/Minecraft-Overviewer/tree/weekly-tito it was my first copr package so the history is a little cluttered I think but hey it works and is in shape.

If anyone wants to step in I will gladly provide the exact commands etc for building. steps are:

  1. bump the version (tito something)
  2. git commit
  3. git add a tag
  4. and then from the copr interface restart the build
seifer44 commented 7 years ago

@eminence anything I can do to help with that? Test case, setup, whatever.

agrif commented 7 years ago

Fundamentally the issue is that none of the core developers of Overviewer use it anymore, and so fixing anything more than a trivial issue sometimes has to wait for our free time and motivation to align.

I will try to get an EL7 repo working this weekend. If I fail, contributions are welcome.

enaut commented 7 years ago

Adding a new repos to the copr repos with tito:

The relevant git branches:

$ git branch -a
* weekly-tito
  remotes/enaut/weekly-tito
  remotes/overviewer/master
  [ ... ]

Getting the tito branch: $ git checkout weekly-tito

Fetching the new master: $ git fetch overviewer master

Merging the new commits to the weekly-tito branch when said branch is checked out: $ git merge overviewer/master

Making a new versionbump so dnf will know that this package is newer than before:

$ tito tag
# editor opens with ready commit message (including changelog generated from git log)
Creating output directory: /tmp/tito
Tagging new version of minecraft-overviewer: 0.12-11 -> 0.12-12
Created tag: minecraft-overviewer-0.12-12
   View: git show HEAD
   Undo: tito tag -u
   Push: git push origin && git push origin minecraft-overviewer-0.12-12

Do the suggested:

$ git push
$ git push minecraft-overviewer-0.12-12

Open https://copr.fedorainfracloud.org : In the repository add a build with the settings: bildschirmfoto von 2017-08-16 08-09-05

click submit! Now its building and aft 10 minutes you have your repository.

Installing from copr repos

Note that the copr repos are well integrated into the os for example you ca search for something without having any of the repositories installed:

$ sudo dnf copr search minecraft-overviewer
======================== Gefunden: minecraft-overviewer ========================
enaut/minecraft-overviewer-weekly : Minecraft-Overviewer - A map renderer for
     ...: Minecraft
     ...:  * This repository is updated to the most recent git version every
     ...:    week

installing is as simple as:

    # dnf copr enable enaut/minecraft-overviewer-weekly
    # dnf install minecraft-overviewer

execute with:

> overviewer.py <world-directory> <target-directory>

the ease of using copr repos tops the "I have my own repos on my own server by far - in my opinion" but last I tried I had the impression that kind of repos is not welcome here. - I proposed updating the docs etc. but it was said: "we'd rather have this on our own infrastructure"

agrif commented 7 years ago

I mean, we would like to have it in our system. We're not living up to that ideal though. If I can't get our system working with it this weekend, I'll talk to the others about adding yours to the docs.

(If I forget, feel free to poke me about it!)

CounterPillow commented 6 years ago

CentOS 7 prebuilt binaries and a repository are now available, thanks to the work of @agrif