* [gentoo-user] How do I customize x11-terms/xterm?
@ 2018-01-09 5:57 Grant Taylor
2018-01-09 8:52 ` Neil Bothwick
0 siblings, 1 reply; 6+ messages in thread
From: Grant Taylor @ 2018-01-09 5:57 UTC (permalink / raw
To: Gentoo-Users
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
How do I customize the features that are compiled into x11-terms/xterm?
I have been playing with a customized version of Xterm outside of
portage and I'd like to migrate my customizations to the copy of Xterm
that is emerged as part of the system.
So far my customizations consist of a modified ./configure command to
enable options that I want.
How do I replicate that via portage?
What would I need to do if I wanted to patch a source file?
--
Grant. . . .
unix || die
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3982 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do I customize x11-terms/xterm?
2018-01-09 5:57 [gentoo-user] How do I customize x11-terms/xterm? Grant Taylor
@ 2018-01-09 8:52 ` Neil Bothwick
2018-01-09 17:14 ` Grant Taylor
2018-01-15 0:00 ` Grant Taylor
0 siblings, 2 replies; 6+ messages in thread
From: Neil Bothwick @ 2018-01-09 8:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
On Mon, 8 Jan 2018 22:57:30 -0700, Grant Taylor wrote:
> I have been playing with a customized version of Xterm outside of
> portage and I'd like to migrate my customizations to the copy of Xterm
> that is emerged as part of the system.
>
> So far my customizations consist of a modified ./configure command to
> enable options that I want.
You can usually add extra configure items by creating, in your
case /etc/portage/env/x11-terms/xterm containing
> How do I replicate that via portage?
EXTRA_ECONF="--enable-blah..."
> What would I need to do if I wanted to patch a source file?
Putting the patch in /etc/portage/patches/x11-xterms/xterm should do it.
Both of these features are on by default in EAPI6, the xterm ebuild uses
EAPI5 so try it and see.
--
Neil Bothwick
Everyone has a photographic memory. Some don't have film.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do I customize x11-terms/xterm?
2018-01-09 8:52 ` Neil Bothwick
@ 2018-01-09 17:14 ` Grant Taylor
2018-01-09 18:16 ` Andrew Barchuk
2018-01-09 18:20 ` Neil Bothwick
2018-01-15 0:00 ` Grant Taylor
1 sibling, 2 replies; 6+ messages in thread
From: Grant Taylor @ 2018-01-09 17:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
On 01/09/2018 01:52 AM, Neil Bothwick wrote:
> You can usually add extra configure items by creating, in your case
> /etc/portage/env/x11-terms/xterm containing
>
> EXTRA_ECONF="--enable-blah..."
That seems simple enough.
> Putting the patch in /etc/portage/patches/x11-xterms/xterm should do it.
Okay.
I suppose that it will need to be some sort of diff that will
automatically get applied?
Do you know what directory the diff needs to be based in?
Where can I read more about this? - Sorry for the n00b like questions.
I do appreciate the help. :-)
I assume removing both my customizations and re-emerging xterm will
revert back to Gentoo default.
> Both of these features are on by default in EAPI6, the xterm ebuild uses
> EAPI5 so try it and see.
Fair enough.
I'll give it a try in the next few days and report my findings.
Thank you again Neil.
--
Grant. . . .
unix || die
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3982 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do I customize x11-terms/xterm?
2018-01-09 17:14 ` Grant Taylor
@ 2018-01-09 18:16 ` Andrew Barchuk
2018-01-09 18:20 ` Neil Bothwick
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Barchuk @ 2018-01-09 18:16 UTC (permalink / raw
To: gentoo-user
Hi Grant,
I believe this wiki page is what you're looking for:
https://wiki.gentoo.org/wiki//etc/portage/patches
--
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do I customize x11-terms/xterm?
2018-01-09 17:14 ` Grant Taylor
2018-01-09 18:16 ` Andrew Barchuk
@ 2018-01-09 18:20 ` Neil Bothwick
1 sibling, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2018-01-09 18:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
On Tue, 9 Jan 2018 10:14:50 -0700, Grant Taylor wrote:
> > Putting the patch in /etc/portage/patches/x11-xterms/xterm should do
> > it.
>
> Okay.
>
> I suppose that it will need to be some sort of diff that will
> automatically get applied?
>
> Do you know what directory the diff needs to be based in?
The directory created when the tarball is unpacked AFAIR.
> Where can I read more about this? - Sorry for the n00b like questions.
devmanual.gentoo.org is the definitive guide, there's also information
spread around the wiki.
--
Neil Bothwick
Accept that some days you're the pigeon, and some days you're the statue.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How do I customize x11-terms/xterm?
2018-01-09 8:52 ` Neil Bothwick
2018-01-09 17:14 ` Grant Taylor
@ 2018-01-15 0:00 ` Grant Taylor
1 sibling, 0 replies; 6+ messages in thread
From: Grant Taylor @ 2018-01-15 0:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
On 01/09/2018 01:52 AM, Neil Bothwick wrote:
> You can usually add extra configure items by creating, in your case
> /etc/portage/env/x11-terms/xterm containing
>
> EXTRA_ECONF="--enable-blah..."
I created the /etc/portage/env/x11-terms directory and added the xterm
file with the following contents.
EXTRA_ECONF="--enable-regis-graphics --enable-sixel-graphics
--enable-256-color --enable-screen-dumps"
When I emerged x11-terms/xterm and texted everything worked exactly like
I wanted it to.
> Putting the patch in /etc/portage/patches/x11-xterms/xterm should do it.
I ended up not doing this. - I thought I had hacked one of the VT
terminal types to use more than 16 colors, but my testing worked without
doing this. So I'm leaving well enough alone.
> Both of these features are on by default in EAPI6, the xterm ebuild uses
> EAPI5 so try it and see.
Thank you again for your help.
--
Grant. . . .
unix || die
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3982 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-01-15 0:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-09 5:57 [gentoo-user] How do I customize x11-terms/xterm? Grant Taylor
2018-01-09 8:52 ` Neil Bothwick
2018-01-09 17:14 ` Grant Taylor
2018-01-09 18:16 ` Andrew Barchuk
2018-01-09 18:20 ` Neil Bothwick
2018-01-15 0:00 ` Grant Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox