#foswiki 2014-10-06,Mon

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***Lynnwood has quit IRC (Quit: Lynnwood) [02:00]
........................... (idle for 2h10mn)
gac410 has left [04:10]
..................... (idle for 1h44mn)
ChanServ sets mode: +o CDot
ChanServ sets mode: +o MichaelDaum
[05:54]
...................... (idle for 1h49mn)
GuilainCall right gac410, I wasn't aware about this file... thanks for the moderation of my task [07:44]
...... (idle for 29mn)
***GuilainC has quit IRC (Remote host closed the connection) [08:13]
.......... (idle for 48mn)
MichaelDaumHi GuilainC
seen your trouble report about FilterPlugin
[09:01]
GuilainChi MichaelDaum, I've seen you answer to gac410 ;) [09:02]
MichaelDaumstrange enough it does ship Text::Unidecode as part of the ZIP package. [09:02]
GuilainCthanks for your reactivity
ah, ok, so let's me check what file the debian package install
[09:02]
MichaelDaumdpkg -L is your friend [09:03]
GuilainCwait 5 min
sorry tel
back
then
indeed, unidecode is install
sems to be install with package,
but i need to install by atp, did you seen the errors i get last friday ?
any preferred place for copy paste my error ? (when calling filterplugin with the makeindex)
to be short, my error :
| 2014-10-03T12:03:13Z warning | Can't locate Text/Unidecode.pm in @INC (@INC contains: /etc/foswiki /var/lib/foswiki/lib . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /var/lib/foswiki/lib/Foswiki/Plugins/FilterPlugin/Core.pm line 26.
and with dpkg -L indicate /var/lib/foswiki/lib/CPAN/Text/Unidecode/*
path trouble ?
[09:05]
MichaelDaumyep
/var/lib/foswiki/lib/CPAN/lib is missing
/var/lib/foswiki/lib/CPAN/Text/Unidecode seems to be located at the wrong position as well ... should be /var/lib/foswiki/lib/CPAN/lib/Text/Unidecode ... or the INC path should reflect this accordingly
basically any Foswiki extension should be broken that bundles CPAN extensions with it
for instance SolrPlugin
[09:13]
GuilainCthat's explain too, what i'm so often do manual instal
hum sorry, wrong manual copy/past, dpkg -L tells /var/lib/foswiki/lib/CPAN/lib/Text/Unidecode
[09:26]
MichaelDaum: should i change my configuration et add path to the "embedded CPAN repository" in my configure script ? [09:34]
MichaelDaumyes that should fix it. but have a look at setlib.cfg or LocalLib.cfg somewhere on your install...that's where the INC path gets set. [09:35]
GuilainCwhat's the best (and the difference) between modify by configure or by setlib.cfg & others ? [09:38]
MichaelDaumthe only reason there _is_ setlib.cfg is to set the INC path to the libs ... as the name suggests. any other config is done in LocalSite.cfg [09:52]
........................... (idle for 2h10mn)
***ChanServ sets mode: +o gac410 [12:02]
gac410MichaelDaum_: The debian packages don't ship lib/CPAN/lib I don't think. Neither do the RPMs. And with one exception neither will Foswiki 1.2
In any event, dependencies really should be in DEPENDENCIES file even if the extension ships them that they they show up in the configure dependencies report.
[12:04]
MichaelDaumgac410, not true
see the content of the debs in http://fosiki.com/Foswiki_debian/pool/main/f/foswiki-filterplugin/
if there is no external dependency none needs to be listed
[12:06]
gac410hm. okay [12:07]
***ChanServ sets mode: +o Lynnwood [12:07]
...... (idle for 25mn)
GuilainC1gac410, MichaelDaum, so finally my trouble comes from an mis-written INC path, and have to modify therefore setlib.cfg or LocalSite.cfg for adding /var/lib/foswiki/lib/CPAN/lib
is it specific to my install or generally ?
I will test it on other debian instal I have
[12:32]
MichaelDaumGuilainC1, thanks [12:33]
............................. (idle for 2h22mn)
gac410Hey CDot ... you around?
About the calling interface to Package.pm. Want to go completely to Named => value parameters? I decided to hold off fixing it because of "too many cooks" :D
[14:55]
CDotit's OK as-is [14:57]
gac410Right, but shell extender.pm doesn't work. It calls it differently from the Wizard. No package name provided. [14:57]
CDot.pm? or did you mean .pl? [14:58]
gac410Check IRC logs, Found 4 different calling conventions er. Package.pm is called differently
yes. tools/extender.pl calls it without a package name. Shell installation does not work.
Also the default action "install" from shell is missing. You abort now if 0 arguments passed rather than default to install.
See http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2014-10-04,Sat&sel=15#l11
" perl SomeExtension_installer " fails ... missing argument
" perl SomeExtension_installer install " fails, no package name provided.
I can fix, but wasn't sure which way to go wrt calling conventions.
[14:58]
CDotyeah, I felt that help rather than plunging into an install was better
I'd treat Package.pm as that standard i.e fix the caller
[15:01]
gac410Took me 1/2 hour of debugging, print statements, to figure out why I kept getting usage. Why on earth change what has been that way for years. [15:02]
CDotbecause it's better this way......? [15:03]
gac410Worse , the usage message says that default is to install, so reading the help doesn't help. [15:03]
CDotok, ok, so reset it to install. Not worth getting worked up about.
CDot is struggling to understand how to revert a single file from the last commit
[15:03]
gac410Ah... git checkout <hash> filename
That overlays the file with the older version. Then git add and commit it. (I hope :) )
If file was deleted, git checkout <hash> -- filename
[15:04]
CDotif I do that I end up with 2 commits, don't I? [15:05]
gac410Yes. Did you push yet? [15:05]
CDotcan't I just cancel the last commit on a single file? It's not pushed
CDot found doc on stackexchange, but it doesn't work
[15:05]
gac410Ah... if not pushed, git checkout to get the older file, then commit --amend to update the last commit [15:05]
CDotaha --amend sounds like what I wanted [15:06]
gac410Yeah. amend is very handy, but only if you have not pushed.
You can also re-order the commits, if it's back in history AGAIN as long as you have not pushed.
git rebase <last-good-hash> --interactive Then you can change the order, squash them together, edit commit messages, etc.
git status will tell you "you are ahead of origin by 5 commits" for ex, So you can safely re-order / squash / edit the last 5 commits safely.
[15:06]
CDotso how do I refer to the last-but-one version?
CDot finds the git doc thorough, but a bugger to read
[15:08]
gac410Ah... You want to amend the last but one? [15:09]
CDotno, I want to revert the last checkin on a single file [15:09]
gac410hm. If the last two do not depend upon each other, you could use interactive rebase to change the order. Amend can only change the last commit [15:09]
CDoteffectively cancel a checkin [15:09]
ModAcOstgit checkout HEAD^ yourfile; git commit --amend yourfile [15:10]
gac410ModAcOst: Won't that amend HEAD and not HEAD^ [15:11]
ModAcOstHEAD is the one where did your unwanted commit - so this is the one you want to amend [15:11]
gac410hm. CDot, is the mistake in the most recent? HEAD or in an older commit? [15:12]
CDotmost recent HEAD [15:13]
gac410Y, then ModAcOst has the solution.
Basically what I said git checkout <hash> filename .... HEAD^ is much easier to type :)
[15:13]
CDothmmm, I *think* that worked [15:14]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/VnmmQA
distro/master 1100e27 crawford: Item12952: add support for an extension search
[15:14]
***GithubBot has left [15:14]
CDotthough git is somewhat uninformative....
gac410: your "extension search" is there, though the usability is not as nice as it could be
[15:15]
gac410Ah... thanks! [15:16]
CDotNote that it no longer feeds off FastReport. There;'s a new topic, called JsonReport
this can be parameterised with search terms, and generates JSON
[15:16]
gac410CDot: i don't mind removing the "install" action default, but we need to REALLY highlight it in the docs.
Cool!
[15:16]
CDotgac410: your call on the deefault
I changed it because when I was trying to work out what all the scripts do, it confused me when it tried to install
if it can confuse me, it can confuse others
but it's not a big deal
[15:17]
gac410I'll fix up the calling conventions and will fix the help, to highlight that an action is now required. [15:18]
CDotokely. [15:18]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/8UFRmw
distro/master 4d68f27 crawford: Item12952: oblivio
[15:22]
***GithubBot has left [15:22]
GithubBot[distro] cdot pushed 1 new commit to master: http://git.io/yQeegQ
distro/master d119d8c crawford: Item12952: saner order for plugin management
[15:28]
***GithubBot has left [15:28]
gac410CDot Any thoughts on eliminating the "Install CPAN Deps " support from shell package installer? TBH I think it's a pretty bad idea. I don't recall it actually ever working for me. [15:34]
CDotJust kill it
if it doesn't work now, it's probably too hard to maintain
[15:36]
gac410Well my system is a rather strange beast being gentoo, but I suspect for most users, it is much much more preferable to use package manager and not CPAN [15:37]
TarboxMy IT guy won't let me use cpan.
mumble mumble security mumble mumble
[15:38]
CDotCDot only uses CPAN when there isn't a package available - which is rare [15:43]
gac410Y. on gentoo, same, but there is also a tool g-cpan, which builds and installs a package on the fly if it can't find one. [15:44]
..... (idle for 22mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/SOIebA
distro/master 12ffa0e George Clark: Item12952: Fix shell extension installer...
[16:06]
***GithubBot has left [16:06]
socfocus has quit IRC (Remote host closed the connection) [16:14]
....... (idle for 30mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/PEGCvA
distro/master f6192c6 George Clark: Item12952: Remove CPAN support from extension_inst...
[16:44]
***GithubBot has left [16:44]
......... (idle for 41mn)
Tarbox has quit IRC (Read error: Connection reset by peer) [17:25]
................ (idle for 1h18mn)
CDot has quit IRC (Quit: Leaving.) [18:43]
..... (idle for 21mn)
GuilainC1MichaelDaum and gac410, I've check, on an other install with sven debian package, /var/lib/foswiki/lib/CPAN/lib is absent too. I update the task. [19:04]
gac410I suspect that only SvenDowideit would know for sure, but I'm pretty sure that the debian pkg based install is set to never use the foswiki CPAN library. It's really considered bad practice on .pkg based systems to venture outside to cpan.
It was even decided that with 1.2 we would not ship any CPAN dependencies. That was softened a bit to make an exception for CGI, but nothing else will be bundled.
[19:06]
GuilainC1thanks gac410.. always the same questions : shared or included library...
I've found a workaround by installing the perl package so, is not blocking...
[19:14]
gac410Y, that's actually the recommend solution IMHO. [19:15]
GuilainC1the best practice IMHO is to make debian dependencies and, if only there is incompatibility or specificities, point to the "embedded cpan package"
but i don't know how it could be done :)
except by a fine tuning of the dependency in the debian package... by hand probably...
However,i'm happy to have transfer my 4 years old wiki install from a win32 host to a linux one
is not faster, but hope more reliable
[19:24]
***b3d0uin_ has quit IRC (Ping timeout: 245 seconds) [19:31]
.... (idle for 15mn)
GuilainC1httpsredirectplugin seems to not work [19:46]
gac410hm It should ... I think there were even core changes at one point to improve the redirect operation.
GuilainC1: re: speed, are you using fcgid for perl acceleration?
[19:51]
TarboxAnd do you have the latest bugfix to how users are checked for group membership? [19:53]
gac410What one is that Tarbox [19:54]
Tarboxah the embarrassing one, where you check for all the groups a user is a member of, and then check again because you didn't trust the first result. [19:54]
gac410Yes ... now I remember oops. [19:54]
Tarboxsome after the disaster testing revealed that to be the number one cause of my slowdown, despite the billion things I ranted about.
Or mayb eI should say the number one fix
the number one cause was probably me adding security checks before blue linking wikiwords.
[19:55]
gac410Probably depends a lot on the size of the groups. [19:56]
TarboxThen generating huge WebMenu pages with wikiwords.
our groups have several hundred members for the record.
[19:56]
gac410yeesh another day another bash patch. I think gentoo has released 7 updates in the past week or two. [20:02]
GuilainC1gac410, I've just move the wiki topic from one server to an other, not time to optimise speed yet. I will take a look, when i will get time, fot the moment I'im in standard debian install, and get around 5 sec for getting standard page (login is obtain in around of 1 sec) [20:08]
gac410yeah, getting onto fcgi should make a big difference. There are also patches you could apply to speed things up, *provided* that you don't maintain topic.txt files externally to foswiki. [20:09]
GuilainC1yes it's true, I had activated this testing extension, on windows, it really made the difference
do you have the name of it ?
[20:12]
gac410http://foswiki.org/Extensions/Testing/PatchItem11983Contrib [20:16]
GuilainC1thanks a lot gac410 i was searching without any success...
hum... seems doesn't exist in the foswiki debian repository
is there an testing repository too ?
by searching that, i've found that http://foswiki.org/Tasks/Item12191 which is the same trouble of what i've experimented
gac410, if there is no debian package of this patch, is there any risk to install from the configure script ?
[20:19]
***sandoval has quit IRC (Remote host closed the connection) [20:30]
gac410GuilainC1: I don't believe so. It patches files, so I suspect if you integrity check the debian foswiki pkg installation, it will complain about local modifications. thb I've never tried it on a debian pkg system. [20:44]
...... (idle for 26mn)
GuilainC1ok, in this case, i will make a try an other evening, and if something goes wrong i will time to get back ;)
thanks for your opinion, good night
[21:10]
gac410g'night GuilainC1
GuilainC1: You could always manually patch the files: https://github.com/foswiki/PatchItem11983Contrib/blob/master/working/configure/patch/Item11983-001.patch
[21:11]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)