Re: [gentoo-user] Re: repair FAT-fs

2018-03-10 Thread Adam Carter
>
> > [10930894.488038] sd 8:0:0:0: [sdb] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
> > [10930894.488041] sd 8:0:0:0: [sdb] tag#0 Sense Key : Hardware Error
> [current]
> > [10930894.488043] sd 8:0:0:0: [sdb] tag#0 Add. Sense: No additional
> sense information
> > [10930894.488045] sd 8:0:0:0: [sdb] tag#0 CDB: Synchronize Cache(10) 35
> 00 00 00 00 00 00 00 00 00
>
> This USB thumb drive is quite obviously broken, or incompatible with your
> USB controller. Try a different port or different system. Otherwise,
> throw it away and learn not to store important stuff on thumb drives.
>

If there's stuff you really need on the drive, try making an image of the
device (that is, use the /dev device name) with ddrescue, then mount that
image and run photorec (from "testdisk") over the mounted image.


[gentoo-user] Re: after masking the X11-update due to nvidia-incompatibilities I got this...

2018-03-10 Thread Jonathan Callen
[Resend after accidentally forgetting to send to list]

On 03/10/2018 01:36 AM, tu...@posteo.de wrote:
> Hi,
> 
> please help me to decipher this from emerge
> 
> emerge: there are no ebuilds built with USE flags to satisfy 
> "dev-qt/qtgui:5[accessibility]".
> !!! One of the following packages is required to complete your request:
> - dev-qt/qtgui-5.9.4-r3::gentoo (Change USE: +accessibility, this change 
> violates use flag constraints defined by dev-qt/qtgui-5.9.4-r3: 'any-of ( 
> eglfs xcb ) accessibility? ( dbus xcb ) eglfs? ( egl ) ibus? ( dbus ) 
> libinput? ( udev ) xcb? ( gles2? ( egl ) )')
> (dependency required by "media-sound/picard-2.0.0_beta1::gentoo" [ebuild])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> 
> What is unclear to me is the message saying, that fixing this will
> violate something else...orwhat?
> 
> Thanks a lot for any deciphering in advance!
> 
> Cheers
> Meino
> 

What this is saying is that:

1) media-sound/picard-2.0.0_beta1 requires dev-qt/qtgui:5 with the
"accessibility" flag enabled

2) dev-qt/qtgui-5.9.4-r3 states that if the "accessibility" flag is
enabled, then both the "dbus" and "xcb" flags must also be enabled on
that package (and portage is saying that at least one of them is not
currently enabled)

Your fix would probably be to set the "accessibility", "dbus", and "xcb"
flags for dev-qt/qtgui:5 (dbus is probably already enabled).

-- 
Jonathan Callen





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread Stroller

> On 10 Mar 2018, at 08:26, tu...@posteo.de wrote:
> ...
> 
> As soon the file is not found, the script ends with an 'Not found'
> error, which '-f' is exactly for, because the expanding comes before
> the '-f'...
> 
> So I need something else or a try-catch-thingy to make that work...but
> how?
> 
> Or do I miss the forest for the trees here... ;)

I don't get that at all with this snippet:

  $ cat test.sh
  #!/bin/bash
  if [ -f foo* ] ; then
  echo "foo exists"
  fi
  $ 

This makes me suspect you've got `#!bash -x` (or -e?) as your first line, or 
something.

When you encounter a problem you don't understand, create the most minimal 
program you can to reproduce the problem. If you can't reproduce it, add to it 
one step at a time until it becomes what you're trying to do.

Stroller




Re: [gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread Alexander Kapshuk
On Sat, Mar 10, 2018 at 10:26 AM,   wrote:
> Hi,
>
> I have a coyple of files on my harddisk and on a mobile usb-disc.
>
> Their names are of that pattern:
>
>  something--something
>
> where 'soemthing' can be totally different from file to file and
> '' is a checksum, which does not match the checksum of the
> according file.
>
> I want to delete the files on my harddisk, which has a ''
> which matches the '' of the according file on the mobile
> harddisk.
>
> The problem arises from a line of the shellscript I wrote.
>
> # code to extract the checksum from the file and put into
> # a variable named crc
>
> if [ -f /*$crc* ] ; then
>
> # remove file on PC harddisk here
>
> fi
>
> As soon the file is not found, the script ends with an 'Not found'
> error, which '-f' is exactly for, because the expanding comes before
> the '-f'...
>
> So I need something else or a try-catch-thingy to make that work...but
> how?
>
> Or do I miss the forest for the trees here... ;)
>
> Thanks a lot for the forest in advance!
> Cheers
> Meino
>
>
>
>
>

If you were using a loop, you could do something like this:
for file in /path/to/files
do test -f $file || continue
rm $file
done

Care to post the entire script, so we could probably come up with the
right solution for you?



Re: [gentoo-user] Problems to update caused by nvidia-drivers?

2018-03-10 Thread Neil Bothwick
On Sat, 10 Mar 2018 05:42:16 +0100, tu...@posteo.de wrote:

> Hi,
> 
> I git this this morning:
> These are the packages that would be merged, in reverse order:
> 
> Calculating dependencies... done!
> 
> !!! Multiple package instances within a single package slot have been
> pulled !!! into the dependency graph, resulting in a slot conflict:
> 
> x11-base/xorg-server:0
> 
>   (x11-base/xorg-server-1.19.99.901-r1:0/1.19.99.901::gentoo, ebuild
> scheduled for merge) pulled in by (no parents that aren't satisfied by
> other packages in this slot)
> 
>   (x11-base/xorg-server-1.19.5-r1:0/1.19.5::gentoo, installed) pulled
> in by x11-base/xorg-server:0/1.19.5= required by
> (x11-drivers/xf86-input-evdev-2.10.5:0/0::gentoo, installed)
> ^^ x11-base/xorg-server:0/1.19.5= required by
> (x11-drivers/xf86-input-libinput-0.26.0:0/0::gentoo, installed)
> ^^ x11-base/xorg-server:0/1.19.5= required by
> (x11-drivers/xf86-input-mouse-1.9.2:0/0::gentoo, installed)
> ^^ x11-base/xorg-server:0/1.19.5= required by
> (x11-drivers/xf86-input-keyboard-1.9.0:0/0::gentoo, installed)
> ^^  (x11-drivers/nvidia-drivers-390.25:0/390::gentoo, installed)
> ^ ^^^ ^  required by (x11-drivers/nvidia-drivers-390.25:0/390::gentoo,
> installed) ^
> ^ 
>  
> 
> 
> Looks like nvidia-drivers dont wants the update...or is there any way
> around it -- except of masking the update?

You don't need to mask anything. Portage is simply telling you, in its
own cryptic way, that the newer xorg doesn't work with nvidia-drivers.
Effectively it has created the mask for you and will remove it when the
time is right. If you mask it manually, you won't know when to unmask it
and that may cause problems later.


-- 
Neil Bothwick

""  "   """  "  ""   "  """  <-- random quotes


pgpn5o_X39Qb1.pgp
Description: OpenPGP digital signature


[gentoo-user] [OT] Kinda "try ... catch" in a shell script...how

2018-03-10 Thread tuxic
Hi,

I have a coyple of files on my harddisk and on a mobile usb-disc.

Their names are of that pattern:

 something--something

where 'soemthing' can be totally different from file to file and
'' is a checksum, which does not match the checksum of the
according file.

I want to delete the files on my harddisk, which has a ''
which matches the '' of the according file on the mobile 
harddisk.

The problem arises from a line of the shellscript I wrote.

# code to extract the checksum from the file and put into
# a variable named crc

if [ -f /*$crc* ] ; then

# remove file on PC harddisk here

fi

As soon the file is not found, the script ends with an 'Not found'
error, which '-f' is exactly for, because the expanding comes before
the '-f'...

So I need something else or a try-catch-thingy to make that work...but
how?

Or do I miss the forest for the trees here... ;)

Thanks a lot for the forest in advance!
Cheers
Meino