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
RPM package cannot be installed on Fedora 25 #1555
Comments
I've never ran Fedora before, but a simple web search revealed similar issues with other 3rd party packages in recent past. It's most definitely a packaging issue with the Trenchbroom RPM that needs to be sorted out by whoever created it. From my limited understanding the spec file inside the Trenchbroom RPM used to build the package has at least one of the directories listed with 755 permissions that's owned by the file system, causing the conflict making it fail to install. The offending line is the 1st under the %files section: %dir %attr(0755, root, root) "/opt" I went ahead and installed Fedora 25 into virtualbox and following what I learned produced an installable rpm from the bugged one. I have no desire to map inside of Fedora, but it seemed to run fine for me. Fine as in made a quick quake map, put in a few models, used textures and everything loaded, looked and operating fine in the 30 minutes I putzed around. :-) So the good news is until it's fixed and you have met the dependencies you can just extract the trenchbroom folder and contents from the dep or rpm files and run trenchbroom manually or you can rebuild the package without that conflicting line yourself in only a few minutes. I'll write a little guide for you and anyone else that comes along on Fedora who might want to install TrenchBroom also. We are going to use rpmrebuild to extract the spec file to edit and then rebuild the package. We need to open a terminal any so if rpmrebuild is not already installed open a terminal window and enter: sudo dnf install rpmrebuild By default rpmrebuild will use the Vim terminal text editor to edit the spec file extracted from the RPM. If you want to use any other installed text editor we can specify that before we rebuild the package by entering this in the terminal: export EDITOR=/usr/bin/gedit OK, now let's do THIS! In the same terminal enter the command, options and path to the RPM that needs rebuilding: rpmrebuild -pe '/home/youraccountname/Downloads/TrenchBroom-Linux-2.0.0-Beta-2f3c498-RelWithDebInfo.x86_64.rpm' By default the spec file should load via Vim in the same terminal window. Use the down arrow key to bring down the Vim block cursor to the %files section. Look for the line: %dir %attr(0755, root, root) "/opt" Put your Vim cursor on that line and delete it by tapping the [d] key twice followed by typing :wq to save file and exit Vim. Now you'll see the prompt, "Do you want to continue ? (y/N)" Press [y]. rpmrebuild will now build a new "valid" package that should be located in /home/youraccountname/rpmbuild/RPMS/x86_64/trenchbroom-2.0.0-1.x86_64.rpm, but it will print the location when it's finished. For me in virtualbox with an i5 intel CPU it takes just a few minutes to rebuild the rpm. Now you can install Trenchbroom with: sudo dnf install /home/youraccountname/rpmbuild/RPMS/x86_64/trenchbroom-2.0.0-1.x86_64.rpm Enjoy! |
Support for linux packages was added by @pnahratow -- maybe he's still around and willing to fix this? |
@eGax thanks for investigating btw. -- good work! |
Not a problem, trying to help where I can in return for great free software. |
Possibly a cmake bug? |
I have fixed this issue once before. The problem was that the rpm claims to own the |
Yeah here it is #1301 |
So what's the status? Want me to fix this or do we finally want to move to |
From that issue report:
That sounds like that already happened. |
Its on branch Feature/1163 What happened to it? |
This any use to you guys? OR Lensfun had a similar issue recently:
Found those when I was trying to track down what caused this issue with the rpm. pnahratow probably already knows how to fix since he already has before. |
@pnahtarow Look at the merge commit: #1297 I bungled that one up. |
I'm not sure I understand. All I see is that the featurebranch never really went into develop. As far as I remember the whole thing also depended on the switch to using wxStandardPaths instead of the old way. Well you just decide how to to proceed from here and I'll be happy to assist. |
I don't understand it myself, it looks like I merged it into the wrong branch or something. I have just updated my own feature/1163 branch with all changes on develop that have happened since then. Now I'm waiting for the builds to finish. |
Ok, I merged that branch finally. Thanks! |
Do we want it on the release/v2.0.0 branch as well? Currently only in |
Yeah, good point. |
Ok, it's on release/v2.0.0 now, too. |
Thanks for looking into this so quickly! I don't understand the order of anything listed on http://kristianduske.com/trenchbroom/downloads.php?platform=linux_rpm but the one marked as "latest" in the green box still has this bug. Do I simply need to wait until the RPM packages are updated? |
They are listed by release date, descending, so latest is first. You will have to wait for new builds, which will happen soon. |
It appears as if it wasn't possible to install the latest RPM build on Fedora 25, at least it didn't work for me:
The text was updated successfully, but these errors were encountered: