Page 1 of 1

[Solved] Build Package

PostPosted: Mar 22nd, '24, 00:53
by Spinnifex
Hello.

I want to compile and build
the newest version of GnuPG
and found a nice tutorial here.
Then I realize that I have to build a lot packages in addition.
And this is a little bit scary for me.
E.G. I may need to build a newer version of
Code: Select all
libusb

So if this failed I destroyed a crucial part of my system !?

Are there any security tips you have?
Can I make a snapshot of the system?
I have had installed
Code: Select all
timeshift
on Mag8 but never used it.
Is there an "easy" failsafe way?

Thanks!
best
Spinni

Re: Build Package

PostPosted: Mar 22nd, '24, 02:33
by doktor5000
You don't seem to understand what linux from scratch is about, it's about building (compiling) a linux installation from scratch, basically without a package manager, one by one.
As you don't really understand what you're attempting, some brief answers:
- yes you may destroy part of or your complete system
- if you replace parts of your system there may be security consequences
- you should not try this on your main system, obviously, and no there is no easy failsafe way
- for your question about snapshot/timeshift you should start a separate thread


To build a newer version of gnupg you only need to build that, and the libraries it requires if those are required in a newer version than what is available.
If you want to try that, it's probably easier to rebuild a src.rpm from cauldron, where that newer gnupg version is already present.
I've described this here: https://forums.mageia.org/en/viewtopic.php?t=5530

Although you don't mention WHY you want the newest version of gnupg in the first place.

Re: Build Package

PostPosted: Mar 24th, '24, 20:09
by Spinnifex
Hello.

Thanks for your advise.

You are right - i do not understand a lot of linux.
Therefore I ask here ;)

Okay I thought so that this page was not the best way to get what I want.
But I want to try to build GnuPG by myself.
This is the reason from GnuPG
These are the canonical release forms of GnuPG. To use them you need to build the binary version from the provided source code. For Unix systems this is the standard way of installing software. For GNU/Linux distributions are commonly used (e.g. Debian, Fedora, RedHat, or Ubuntu) which may already come with a directly installable packages. However, these version may be older so that building from the source is often also a good choice

The reason is

- I bought a Nitrokey and for the best way to use this I need a recent version of GnuPG along with CCID and PCSCD. I've tried for weeks to get this key working for me but with Mag8 I had no luck. And one reason was the not new version of GnuPG and CCID. The reason to buy the key is to login with this on websites who use FIDO or Passkey and to store my GnuPG keys for my mail accounts.
- I want to get this done

Thanks for your hint.

Hopefully I am able to build Gnupg

Thanks

Spinni

Re: Build Package

PostPosted: Mar 24th, '24, 20:21
by doktor5000
Maybe you should start with asking about Nitrokey and your actual issue instead of an arbitrary version upgrade for gnupg.
AFAICT nitrokey only requires gnupg 2.1 or higher including scdaemon, which we have by default. Same with ccid and pcsc-lite.

Re: Build Package

PostPosted: Mar 24th, '24, 20:26
by benmc
Spinnifex wrote:I've tried for weeks to get this key working for me but with Mag8 I had no luck.


are you still on (EOS) Mga8
or on Mga9?

Re: Build Package

PostPosted: Mar 24th, '24, 22:28
by Spinnifex
Hello

I installed Mga9 recently.
But because of my OCD I did not installed all packages for nitrokey yet.
So I started an other thread how to build my own gnupg package.
But I should first check whether the current environment is good for the nitrokey (Nitrokey3).

Regards.
Spinni

Re: Build Package

PostPosted: Mar 26th, '24, 00:00
by Spinnifex
Hello

@Doktor5000
To use the Nitrokey3 I will need
Code: Select all
ccid.1.5.0

or higher what I have read so far.

Spinnifex

Re: Build Package

PostPosted: Jun 9th, '24, 20:00
by Spinnifex
Hello.

I was able to install the latest gnupg package. And I can access the key.
:)

Best
Spinni