Re: [gentoo-user] Autoexecute when "returning" from sudo ?

2018-10-31 Thread Anton Molyboha
Hi, Meino

I'd make a script, sudo_with_rehash:

  sudo "$@"
  rehash

and add to whatever is the equivalent of .bashrc for zsh:

  alias sudo="source sudo_with_rehash"

Would that work for you?

Best,
Anton

On Wed, Oct 31, 2018 at 4:49 AM  wrote:

> Hi,
>
> often I have this scenario:
> I miss an application/script, a setting or something like that.
> To apply the modifikation I becom root from the shell I was using as user.
> I modificate/install or whatever change is needed...
> I CTRL-D back to my user shell.
>
> Now I have to do a "rehash" (I am using zsh) to make the change
> visible/accessible. Sometimes I forget that.
>
> So...is it possible to auto-execute a "rehash" or whatever is needed,
> when the user is comeing back from his alternate life as root?
>
> Thanks a lot for any help in advance!
> Cheers!
> Meino
>
>
>
>


[gentoo-user] emerge dev-hasell/stack fails with unclear error

2018-02-26 Thread Anton Molyboha
When emerging dev-haskell/stack-1.3.2 I'm getting:


[ 84 of 121] Compiling Stack.Path   ( src/Stack/Path.hs,
dist/build/Stack/Path.o )
[ 85 of 121] Compiling Stack.Package( src/Stack/Package.hs,
dist/build/Stack/Package.o )
[100 of 121] Compiling Stack.Upload ( src/Stack/Upload.hs,
dist/build/Stack/Upload.o )
[101 of 121] Compiling Control.Concurrent.Execute (
src/Control/Concurrent/Execute.hs, dist/build/Control/Concurrent/Execute.o
)
* ERROR: dev-haskell/stack-1.3.2::gentoo failed (compile phase):
*   setup build failed
*
* Call stack:
* ebuild.sh, line  124:  Called src_compile
*   environment, line 2851:  Called haskell-cabal_src_compile
*   environment, line 2049:  Called cabal_src_compile
*   environment, line  771:  Called cabal-build
*   environment, line  535:  Called die
* The specific snippet of code:
*   ./setup "$@" || die "setup build failed"
*


So _probably_ something went wrong when compiling Control.Concurrent.Execute
-- but I see no way to tell what was the problem. How do I debug this?

The requisite information is below or attached. Thanks!
-- 
Anton


emerge -pqv '=dev-haskell/stack-1.3.2::gentoo'
[ebuild  N] dev-haskell/stack-1.3.2  USE="-doc -hscolour -profile {-test}"
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, 
gcc-6.4.0, glibc-2.25-r10, 4.12.12-gentoo x86_64)
=
 System Settings
=
System uname: 
Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-3337U_CPU_@_1.80GHz-with-gentoo-2.4.1
KiB Mem: 3855216 total,   2080004 free
KiB Swap:3145724 total,   1141036 free
Timestamp of repository gentoo: Sun, 25 Feb 2018 01:30:01 +
Head commit of repository gentoo: c0fe6a0d4e379ce403f88e54f23d77695fe2cf05
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:  4.4_p12::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl:5.24.3::gentoo
dev-lang/python:  2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:   3.9.6::gentoo
dev-util/pkgconfig:   0.29.2::gentoo
sys-apps/baselayout:  2.4.1-r2::gentoo
sys-apps/openrc:  0.34.11::gentoo
sys-apps/sandbox: 2.12::gentoo
sys-devel/autoconf:   2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:   1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:   2.29.1-r1::gentoo
sys-devel/gcc:6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool:2.4.6-r3::gentoo
sys-devel/make:   4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:   2.25-r10::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts: 

local
location: /usr/local/portage
masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d 
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild 
/etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d 
/etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks 
ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 
preserve-libs protect-owned sandbox sfperms strict unknown-features-warn 
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ 
http://mirror.leaseweb.com/gentoo/ http://104.19.136.75/gentoo/ 
ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://104.19.137.75/gentoo/";
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times 
--omit-dir-times --compress --force --whole-file --delete --stats 
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local 
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 
cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr 
emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde 
kipi kwallet lcms libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls 
nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml 
qt3support qt5 readline sdl seccomp semantic-desktop spell ssl 
startup-notification svg tcpd tiff truetype udev udisks unicode upower usb 
vorbis widgets wxwidgets x264 xattr xcb xcompos

Re: [gentoo-user] Is there rpcgen in Gentoo and how to compile dev-perl/Ace?

2017-11-10 Thread Anton Molyboha
Thanks a lot Andreas!

Emerging net-libs/prcsvc-proto did solve the problem, and I was eventually
able to compile dev-perl/Ace.

On Thu, Nov 9, 2017 at 8:12 PM, Andreas K. Huettel 
wrote:

> Am Freitag, 10. November 2017, 01:50:04 CET schrieb Anton Molyboha:
> > Hi all,
> >
> > I am trying to emerge dev-perl/Ace-1.920.0-r2 on my Gentoo Prefix on
> MacOS
> > and it fails trying to run "rpcgen -I -K -1 rpcace.x" and not finding
> > rpcgen (or rather finding the XCode version of it which I don't want)
> >
>
> rpcgen is part of
> 1) sys-libs/glibc[rpc] (not useful for you)
> 2) net-libs/rpcsvc-proto
>
> >
> > TL;DR: I have two questions:
> > 1) Does anybody know of a Gentoo package which provides the tool "rpcgen"
> > 2) Does anybody know how dev-perl/Ace is meant to be compiled and whether
> > the dependence on rpcgen is necessary.
> >
>
> I'll have a look later. Best if you file a bug with all the info that you
> sent
> to the list, then it won't be forgotten.
>

I have filed https://bugs.gentoo.org/637114 with all the info and marked it
as a blocker for 381391 "(glibc-rpc) - [TRACKER] Packages failing to build
with no rpc in sys-libs/glibc"

>
> (I suppose dev-perl/Ace will also break with sys-libs/glibc-2.26, where the
> built-in rpc support is going away, so this doesnt just affect your
> prefix. :)
>
> --
> Andreas K. Hüttel
> dilfri...@gentoo.org
> Gentoo Linux developer (council, perl, libreoffice)
>
> Anton


[gentoo-user] Is there rpcgen in Gentoo and how to compile dev-perl/Ace?

2017-11-09 Thread Anton Molyboha
Hi all,

I am trying to emerge dev-perl/Ace-1.920.0-r2 on my Gentoo Prefix on MacOS
and it fails trying to run "rpcgen -I -K -1 rpcace.x" and not finding
rpcgen (or rather finding the XCode version of it which I don't want)

This being Prefix, things are expected to fail, so both options are
possible:
1) rpcgen is provided by some package which is not listed as a dependency
of dev-perl/Ace
2) dev-perl/Ace does not really need rpcgen and a proper build
configuration would avoid trying to call it.

As for option 1, Wikipedia says that rpcgen is part of "Sun Microsystems
ONC RPC". The only package I could find that would mention sunrpc in the
description is net-libs/libtirpc, but I don't see any mention of rpcgen in
its sources (I could not emerge it yet either) Maybe I am looking in the
wrong place and something else would provide a working rpcgen? There are
quite a few rpc-related packages in Gentoo and I would not be able to just
try each of them.

As for option 2 - I don't actually know what dev-perl/Ace is, I need it for
bioperl which I need for something else... I don't see any rpc-related use
flags and not sure where else to look that would influence its dependence
on that rpcgen.

TL;DR: I have two questions:
1) Does anybody know of a Gentoo package which provides the tool "rpcgen"
2) Does anybody know how dev-perl/Ace is meant to be compiled and whether
the dependence on rpcgen is necessary.

The information requested by a failing emerge is attached (including the
slightly modified ebuild working around previous build failures)

Thanks in advance!

Anton


Ace-1.920.0-r2.ebuild
Description: Binary data


build.log
Description: Binary data


emerge-info.log
Description: Binary data


emerge-pqv.log
Description: Binary data


Re: [gentoo-user] Wiki-viewer anyone?

2017-10-06 Thread Anton Molyboha
On Fri, Oct 6, 2017 at 6:49 PM, R0b0t1  wrote:

> On Fri, Oct 6, 2017 at 5:41 PM,   wrote:
> > On 10/06 05:49, Andrew Tselischev wrote:
> >> On Fri, Oct 06, 2017 at 07:07:04PM +0200, tu...@posteo.de wrote:
> >> > Hi,
> >> >
> >> > The u8g8lib, which contains libraries to drive a great amount of
> >> > displays for mainly embedded electronics has a wiki on github, which
> >> > can be oficially git-pulled as a local copy...which I did.
> >> >
> >> > Now I have tons of *.md (markdown) -files instead of html and I
> >> > dont know of any handy viewer for these.
> >> >
> >> >  Since I want to update the repo from time to time
> >> > I dont want to convert them.
> >> >
> >> > Is there any recommended quick and clean way to view these files on
> the fly as
> >> > they would be html?
> >> >
> >> > Thanks a lot for any help in advance!
> >> > Cheers
> >> > Meino
> >> >
> >>
> >> Markdown is a markup language that was specifically designed to be
> readable in the source.
> >>
> >> However, if you still find it hard to read, perhaps syntax highlighting
> in a fancy
> >> text editor can help approximate the intended effects of the markup.
> >>
> >> Also, there are markdown-to-HTML translators. Some are even included in
> portage tree.
> >>
> >
> >
> > I dont want to convert the md-files to html, since I want to update
> > the repo later (see above).
> > The problem are files referencing other files. Reading the md-files
> > via vim (for example) would imply to grab all references by hand.
> > Fortheremore, tne docs are filled with graphics (for example images
> > of the fonts, which can be used), which cannot be displayed with an
> > ASCII-editor.
> > Formatting is necassary with this docs...
> >
>
> Typically what is done is you render the whole Wiki to HTML, and then
> view it in a browser. You don't edit the HTML directly. It should be
> possible to generate it incrementally.
>
> The one catch is that they might be relying on GitHub's integrated
> Wiki system. If they are, you might need to install Gollum to process
> the markdown files to HTML.
>
> Cheers,
>  R0b0t1
>
>
This is a definite overkill, but I'm using JetBrains' IntelliJ Idea
(actually PyCharm) with the markdown plugin. It shows markdown and html
side-to-side in the editor.

Anton