Re: [gentoo-user] Two new-install questions

2020-07-09 Thread Ashley Dixon
On Fri, Jul 10, 2020 at 06:39:54AM +0100, Ashley Dixon wrote:
> Summarised, this dependency is triggered by  CONFIG_IKHEADERS,  which  has  
> been
> configured too obscure to pull in cpio for everyone (hence  the  WONTFIX  
> status
> for the latter bug report).

My apologies for a small typo. This should read "...which has been _determined_
too obscure...".

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA



signature.asc
Description: PGP signature


Re: [gentoo-user] Two new-install questions

2020-07-09 Thread Ashley Dixon
On Fri, Jul 10, 2020 at 01:27:06AM -0400, Walter Dnes wrote:
>   1) Look Ma... no cpio.  During my first attempt to build a kernel, it
> died because the process couldn't find "cpio".  I ran "emerge -1 cpio"
> and tried again, finishing successfully.  "emerge -p --depclean" wants
> to remove it, which should not be happening.  To overcome that I ran
> "emerge --noreplace cpio" which put cpio into my world set, keeping it
> safe.  Why is this happening in the first place?

Discussed here: https://bugs.gentoo.org/731666
and here: https://bugs.gentoo.org/696840

Summarised, this dependency is triggered by  CONFIG_IKHEADERS,  which  has  been
configured too obscure to pull in cpio for everyone (hence  the  WONTFIX  status
for the latter bug report).

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA



signature.asc
Description: PGP signature


[gentoo-user] Two new-install questions

2020-07-09 Thread Walter Dnes
  1) Look Ma... no cpio.  During my first attempt to build a kernel, it
died because the process couldn't find "cpio".  I ran "emerge -1 cpio"
and tried again, finishing successfully.  "emerge -p --depclean" wants
to remove it, which should not be happening.  To overcome that I ran
"emerge --noreplace cpio" which put cpio into my world set, keeping it
safe.  Why is this happening in the first place?

  2) When building xorg-server I got a news item about the "suid" flag
soon no longer being default for xorg-server.  I forced it manually on
my laptop and desktop.  The other 3 options were...

  * systemd... no thanks.
  * elogind... with PAM doing the authentication... no thanks.  I've
tangled with PAM in the past once too often.
  * some memory-heavy "desktop environment" on my 3-gigs-ram-laptop...
no thanks.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Jarry
On 09-Jul-20 19:32, Jack wrote:
> On 2020.07.09 13:25, Jarry wrote:
>> On Thu, 9 Jul 2020 at 16:32, Alan Mackenzie  wrote:
>> > I've just scanned in a two-page document using sane, and it's given me
>> > as output two separate files.  I would like to join these together into
>> > a single document.
>> >
>> > Would somebody please suggest to me an appropriate package to do this
>> > with.
>>
>> Sorry for stealing this topic, but does any of mentioned packages
>> support "overlapping" one pdf-page over the other? Not sure if
>> I'm using the right word, but what I mean is "joining" two pdf
>> pages of the same size to single page, with content of both those
>> original pages written over each other to single output page.
>>
>> I have been using "stamp" option of pdftk for this, but it crashes
>> sometimes...
> I haven't done it, but would gimp work?  It might be overkill, but
> something about layers sounds appropriate.
> 

It might work, but I'm doing it sometimes on large batches of files,
so I'd prefer scripted solution. From my experience pdftk crashes
about 4-5 times out of 100 operations. So I have to find those cases
when it failed and run them again...

Jarry

-- 
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Matt Connell (Gmail)
On Thu, 2020-07-09 at 13:32 -0400, Jack wrote:
> I haven't done it, but would gimp work?  It might be overkill, but  
> something about layers sounds appropriate.

Gimp can in fact do this, I just tested it.  You'll need to mess with
transparency perhaps, but as a proof-of-concept you can "paste as new
layer" with a PDF page layer from another file.




Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Jack

On 2020.07.09 13:25, Jarry wrote:

On Thu, 9 Jul 2020 at 16:32, Alan Mackenzie  wrote:
> I've just scanned in a two-page document using sane, and it's given  
me
> as output two separate files.  I would like to join these together  
into

> a single document.
>
> Would somebody please suggest to me an appropriate package to do  
this

> with.

Sorry for stealing this topic, but does any of mentioned packages
support "overlapping" one pdf-page over the other? Not sure if
I'm using the right word, but what I mean is "joining" two pdf
pages of the same size to single page, with content of both those
original pages written over each other to single output page.

I have been using "stamp" option of pdftk for this, but it crashes
sometimes...
I haven't done it, but would gimp work?  It might be overkill, but  
something about layers sounds appropriate.




Re: [gentoo-user] what does this equery display show me?

2020-07-09 Thread n952162

On 2020-07-09 01:45, Ashley Dixon wrote:

On Thu, Jul 09, 2020 at 12:46:42AM +0200, n952162 wrote:

Is ncurses dependent on gpm?

     $ /equery g  sys-libs/ncurses-6.2-r1/
  * Searching for ncurses6.2-r1 in sys-libs ...

  * dependency graph for sys-libs/ncurses-6.2-r1
  `--  sys-libs/*ncurses*-6.2-r1 amd64
    `--  sys-libs/*gpm*-1.20.7-r2 (sys-libs/gpm) amd64
[abi_x86_32(-)? abi_x86_64(-)? abi_x86_x32(-)? abi_mips_n32(-)?
abi_mips_n64(-)? abi_mips_o32(-)? abi_riscv_lp64d(-)? abi_riscv_lp64(-)?
abi_s390_32(-)? abi_s390_64(-)?]
     [ sys-libs/ncurses-6.2-r1 stats: packages (2), max depth (1) ]

It depends whether the `gpm` USE-flag is set or not.  From the  ncurses  ebuild:
(See [1] for documentation regarding the  ${MULTILIB_USEDEP}  eclass  variable.)

 DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )" [2]

The list of architectures you're seeing is an  expansion  of  ${MULTILIB_USEDEP}
as defined by the `multilib-build` (or in this case, `multilib-minimal` eclass);
this can be removed from the output by passing the local option -U to  depgraph.
As all of these are disabled,  I'm  guessing  you're  not  running  a  multi-lib
profile.



You're saying that the architectures are all disabled because there's a
(-) following all the flags?  In that case, it would seem that no
architecture was enabled...

My profile is   default/linux/x86/17.0, wouldn't it have a no-multilib
in it if it were so?

Have I done something to disable all architectures?





Note that there's a gpm USE flag for ncurses, but it's *--*

What do you mean, "but it's *--*" ?  Do you mean it's disabled ?


02/var/db/pkg/sys-libs/ncurses-6.1-r2>equery uses ncurses
[ Legend : U - final flag setting for installation]
[    : I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for sys-libs/ncurses-6.2-r1:
 U I
 - - ada : Add bindings for the ADA programming language
 + - cxx : Build support for C++ (bindings, extra libraries,
code generation, ...)
 - - debug   : Enable extra debug codepaths, like asserts and extra
output. If you want to get meaningful backtraces see
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc : Add extra documentation (API, Javadoc, etc). It is
recommended to enable per package instead of globally
 - - gpm : Add support for sys-libs/gpm (Console-based mouse
driver)
 - - minimal : Install a very minimal build (disables, for example,
plugins, fonts, most drivers, non-critical features)
 - - profile : Add support for software performance analysis (will
likely vary from ebuild to ebuild)
 - - static-libs : Build static versions of dynamic libraries as well
 - - test    : Enable dependencies and/or preparations necessary to
run tests (usually controlled by FEATURES=test but can be toggled
independently)
 - - threads : Add threads support for various packages. Usually
pthreads
 - - trace   : Enable test trace() support in ncurses calls
 + + unicode : Add support for Unicode



   Equery  lists
dependencies as specified by the DEPEND ebuild variable, regardless of your  own
system's USE-flags.  Try running the same equery command for something with lots
of optional dependencies, such as Firefox, and you'll see  the  same  behaviour.



??? I know for a fact that I have changed USE flags in
/etc/portage/packages.use/* and seen those -/+ flags toggle polarity and
color.

I see in the ebuild (the line before your link):

 IUSE="ada +cxx debug doc *gpm* minimal profile static-libs test
   threads tinfo trace unicode"

The definition of IUSE I find is in ebuild(5):

 IUSE   This  should  be  a  list of any and all USE flags that are
   leveraged within
  your build script.  The only USE flags that should
   not be  listed  here  are
  arch  related flags (see KEYWORDS). Beginning with
   EAPI 1, it is possible to
  prefix flags with + or - in order to create default 
   settings  that  respec-
  tively  enable or disable the corresponding USE flags.

It seems to me from that that IUSE just catalogs the possible USE flags,
and a USE Flag is only a default if prefixed by -/+.




Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Jarry
On Thu, 9 Jul 2020 at 16:32, Alan Mackenzie  wrote:
> I've just scanned in a two-page document using sane, and it's given me
> as output two separate files.  I would like to join these together into
> a single document.
>
> Would somebody please suggest to me an appropriate package to do this
> with.

Sorry for stealing this topic, but does any of mentioned packages
support "overlapping" one pdf-page over the other? Not sure if
I'm using the right word, but what I mean is "joining" two pdf
pages of the same size to single page, with content of both those
original pages written over each other to single output page.

I have been using "stamp" option of pdftk for this, but it crashes
sometimes...

Jarry

-- 
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Neil Bothwick
On Thu, 9 Jul 2020 11:30:17 -0400, Rich Freeman wrote:

> > app-text/pdftk
> >
> > pdftk page-1.pdf page-2.pdf cat output both.pdf
> >
> > Lots of other useful tricks it can do with pdf files.
> >  
> 
> +1 for pdftk if you can stand java.  I'm sure there are some GUI-based
> options that you might prefer, but pdftk is great for command line
> use.

I'll add another vote for pdfunite, it's already installed on most
systems as it's part of poppler and it's as simple as

pdfunite file1 file2 ... output.pdf


-- 
Neil Bothwick

A Microsoft joke (is that a tautology?)


pgpG9tKoM4Ko0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Simo Tukiainen
On Thu, 9 Jul 2020 at 16:32, Alan Mackenzie  wrote:
> I've just scanned in a two-page document using sane, and it's given me
> as output two separate files.  I would like to join these together into
> a single document.
>
> Would somebody please suggest to me an appropriate package to do this
> with.

You already have many suggestions, but I'll mention app-text/pdfjam
(and pdfjoin it provides) just for completeness. I use it like this to
merge scanned documents:
$ pdfjoin --rotateoversize false --outfile x.pdf y-*.pdf

It's command line and only depends on virtual/latex-base so may be a
nice option if you already have a latex installed.


Regards,
Simo



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Tamer Higazi

Ghostscript is installed by most pdf distributions, and if not merge it.

Look here:

gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=myoutput.pdf 
fil21.pdf file2.pdf file3.pdf



best, Tamer

On 2020-07-09 17:39, Gerrit Kuehn wrote:

On Thu, 9 Jul 2020 13:31:36 +
Alan Mackenzie  wrote:


Would somebody please suggest to me an appropriate package to do this
with.

I use ImageMagick for joining pages scanned with xsane:

convert page1 page2 pages.pdf

Note that especially for pdf files, tools like pdftk or pdfjam will
probably produce better results. However, (x)sane usually produces
very large pdf files. So you may receive better end results creating
separate png files with sane and then join these (using ImageMagick as
shown above).


cu
   Gerrit





Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Gerrit Kuehn


On Thu, 9 Jul 2020 13:31:36 +
Alan Mackenzie  wrote:

> Would somebody please suggest to me an appropriate package to do this
> with.

I use ImageMagick for joining pages scanned with xsane:

convert page1 page2 pages.pdf

Note that especially for pdf files, tools like pdftk or pdfjam will
probably produce better results. However, (x)sane usually produces
very large pdf files. So you may receive better end results creating
separate png files with sane and then join these (using ImageMagick as
shown above).


cu
  Gerrit



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Tamer Higazi

Dear Alan,

I do it with ghostscript (for my cv's and employers proof of work) all 
the time, and even change the header.


Then look here:

http://milan.kupcevic.net/ghostscript-ps-pdf/

the best short documentation I found so far.


best, Tamer

On 2020-07-09 15:31, Alan Mackenzie wrote:

Hello, Gentoo.

I've just scanned in a two-page document using sane, and it's given me
as output two separate files.  I would like to join these together into
a single document.

Would somebody please suggest to me an appropriate package to do this
with.

Thanks!

Other than that, Gentoo just keeps working for me, so I've not much to
say on this list.  ;-)





Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Rich Freeman
On Thu, Jul 9, 2020 at 9:35 AM John Blinka  wrote:
>
> app-text/pdftk
>
> pdftk page-1.pdf page-2.pdf cat output both.pdf
>
> Lots of other useful tricks it can do with pdf files.
>

+1 for pdftk if you can stand java.  I'm sure there are some GUI-based
options that you might prefer, but pdftk is great for command line
use.

I'll go ahead and offer this script that takes as input a bunch of pdf
files, and it combines them all adding blank pages as needed to make
them all even.  This is used to generate a combined PDF suitable for
double-sided printing on a single-sided printer if I have a bunch of
PDFs I want to print in batch.

#!/bin/bash
for file in *.pdf
do
  #get the number of pages
  numberofpages=`pdftk "$file" dump_data | sed -e
'/NumberOfPages/!d;s/NumberOfPages: //'`
  echo -n "$file" 'has' $numberofpages 'pages, '

  uneven=$(($numberofpages % 2))
  if [ $uneven == 1 ]
  then
echo 'which is uneven - added 1 more'
tempfile=`mktemp`
pdftk A="$file" B=/usr/local/share/blank.pdf cat A B1 output "$tempfile"
mv $tempfile $file
  else
echo 'which is even'
  fi
done

pdftk *.pdf cat output out.pdf



-- 
Rich



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Matt Connell (Gmail)
> I have no experience with either myself, but I think you can use
> either pdftk, or the pdfunite command in the poppler package.

+1 for poppler

It includes easy-to-use tools for uniting, separating, and converting
PDFs to other formats.

Also worth noting, pdftk requires java, which some users may not want
to install.  Unless I'm mistaken, poppler is a Qt application.




Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread Remco Rijnders
On Thu, Jul 09, 2020 at 01:31:36PM +, Alan wrote in 
<20200709133136.GA4852@ACM>:

Hello, Gentoo.

I've just scanned in a two-page document using sane, and it's given me
as output two separate files.  I would like to join these together into
a single document.

Would somebody please suggest to me an appropriate package to do this
with.


I have no experience with either myself, but I think you can use
either pdftk, or the pdfunite command in the poppler package.



Re: [gentoo-user] Joining PDF files together.

2020-07-09 Thread John Blinka
On Thu, Jul 9, 2020 at 9:31 AM Alan Mackenzie  wrote:

> Hello, Gentoo.
>
> I've just scanned in a two-page document using sane, and it's given me
> as output two separate files.  I would like to join these together into
> a single document.
>
> Would somebody please suggest to me an appropriate package to do this
> with.
>
> Thanks!
>
> Other than that, Gentoo just keeps working for me, so I've not much to
> say on this list.  ;-)
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
> app-text/pdftk

pdftk page-1.pdf page-2.pdf cat output both.pdf

Lots of other useful tricks it can do with pdf files.

hth -

John Blinka


[gentoo-user] Joining PDF files together.

2020-07-09 Thread Alan Mackenzie
Hello, Gentoo.

I've just scanned in a two-page document using sane, and it's given me
as output two separate files.  I would like to join these together into
a single document.

Would somebody please suggest to me an appropriate package to do this
with.

Thanks!

Other than that, Gentoo just keeps working for me, so I've not much to
say on this list.  ;-)

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] [SOLVED] SSH xterm not working properly during install

2020-07-09 Thread Walter Dnes
On Wed, Jul 08, 2020 at 03:42:29PM -0400, Walter Dnes wrote

>   As I mentioned in another post, the "toe" command shows which TERM
> types you terminal supports.  xterm (the app) doesn't support "linux"
> TERM type.  The solution was to set TERM to "xterm" at both ends.
> Basically, run "toe" on both machines and find a common entry that they
> both support.

  I've got a bootable install running... yay!  There's still some setup
to do, but I can handle it from my desktop.  One thing I might forward
to the maintainers as a documentation bug/suggestion...

  If you're doing a remote install via ssh, *BEFORE THE REBOOT* run
"ssh-keygen" on the install target, and then...

scp ~/.ssh/id_rsa.pub 
root@:/mnt/gentoo/root/.ssh/authorized_keys

  This allows a root connection from your machine to the target machine,
so that you're not locked out .  In my case, I only had to walk a few
steps to the laptop, run ssh-keygen, edit /etc/ssh/sshd.config, restart
sshd, and login manually via ssh.  If you're doing a really remote
install, it could be embarressing.  After uploading my key, I've changed
sshd.config back and restarted sshd.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications