Wt on Gentoo
Added by Brian Lee 10 months ago
Hi,
I was playing around with the Wt ebuild after the release of Wt 3.2.2 to test it on Gentoo, and found that it wouldn't install properly. I received the following error:
" * Aborting due to QA concerns: 4 files installed in /var/tmp/portage/net-libs/wt-3.2.1/image///var/tmp/portage/net-libs/wt-3.2.1/image/"
The install log listed the file in that location:
"-- Installing: /var/tmp/portage/net-libs/wt-3.2.2/image/var/tmp/portage/net-libs/wt-3.2.2/image/etc/wt/wt_config.xml"
The masked ebuild for 3.2.1 has the same error upon emerging, but the stable ebuild 3.2.0-r1 doesn't. So I did some comparing:
Wt 3.2.0's CMakeLists.txt line 451:
INSTALL(FILES ${WT_BINARY_DIR}/wt_config.xml DESTINATION ${CONFIGDIR})
versus 3.2.1 and onward:
INSTALL(FILES ${WT_BINARY_DIR}/wt_config.xml DESTINATION ${DESTDIR}${CONFIGDIR})
Reverting CMakeLists.txt to its 3.2.0 version allows a successful install on Gentoo. Incidentally, version 3.2.0 (or at least the version the ebuild uses) produces the following error when I try to build the hangman example, hence the update to 3.2.2:
"error: Wt/Auth/PasswordHash: No such file or directory"
Just thought I'd share my adventures,
Brian
Replies (4)
RE: Wt on Gentoo - Added by Koen Deforche 10 months ago
Hey Brian,
It would seem to me however that this is what one wants ?
-- Installing: /var/tmp/portage/net-libs/wt-3.2.2/image/var/tmp/portage/net-libs/wt-3.2.2/image/etc/wt/wt_config.xml"
I.e. you install in /etc/wt within the image of the installation ...
We specifically put this in based on a report of a problem with some other package manager (I can't remember which one though, and it seems it didn't get annotated with the commit).
Do you know why gentoo doesn't like this ?
In any case, it seems that you could include this as a patch in the ebuild, until this is being sorted out?
Regards,
koen
RE: Wt on Gentoo - Added by Brian Lee 10 months ago
Hey Koen,
I don't think so -- after installing everything in the /image directory, portage checks the image and then writes it to the root directory. So installing it there would end up ultimately putting it in /var/tmp/portage/net-libs/wt-3.2.2/image/etc/wt/, which wouldn't do anything.
I'm guessing it's intended to go into /etc/wt?
I'm no Gentoo expert, but I think that one of portage's checks is to make sure the above doesn't happen.
As for the ebuilds, I don't manage the official one, but I could try and contact whoever does and run this issue by him.
Wt is an amazing piece of work, by the way. I just started with it, but I'm amazed by its potential...awesome job, Koen! :)
Brian
RE: Wt on Gentoo - Added by Koen Deforche 10 months ago
Hey Brian,
We looked into it: apparently the $(DESTDIR) was added per request of the gentoo packager !
It seems that you should be able to install the configuration file in the correct directory by setting CONFIGDIR to /etc/wt?
Great to hear that you like it, and I hope you can put Wt to good use !
Regards,
koen
RE: Wt on Gentoo - Added by Brian Lee 10 months ago
Hm, it's probably something with the ebuild, then. Again, I'm not a Gentoo guru (yet!) -- I just used the existing ebuild as a template for 3.2.2. I'm sure it'll get resolved soon enough.
Brian
(1-4/4)