Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootable 64-bit RPi3/Pi4 Gentoo image (OpenRC/Xfce/VC4) Pt 2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
popetto
n00b
n00b


Joined: 13 Aug 2019
Posts: 22
Location: Italy

PostPosted: Wed May 06, 2020 7:59 pm    Post subject: Reply with quote

NeddySeagoon wrote:
popetto,

Yes, its possible.

The normal raspberry Pi install does not have a boot menu but lets come back to that.

You would have a filesystem tree for Raspbian and a filesystem tree for Gentoo and separate filesystem trees for any other distro you wanted.
/boot and <swap> should be shared. So far, that the same as you would do to multiboot a PC.

Now you need a boot loader to choose among distros at boot time.
You can have several config.txt and cmdline.txt files but that's a bit clunky. You don't want to edit /boot to switch distros.

I think grub2 runs on arm/arm64. That will provide a boot menu.
u-boot runs on the Pi and I think it can do menus.

One wart. For 64 bit capable Pis, the bitness is set as a part of the CPU initialisation and cant be changed by the CPU.
However a Pi in 64 bit mode must have a 64 bit kernel. It can have a 32 bit userland. There is no multilib on arm64, so its not possible to have 32 bit and 64 bit libraries side by side. You can cheat a little. Statically linked 32 bit arm binaries will run on a 64 bit Pi.

The upshot of all this is that having chosen the bitness for your boot loader you are stuck with it.

Well, there is the horrible hack approach too.
Boot the Pi into <random distro> run a scrip that modifies /boot to boot <other distro> on the next boot.
That would let you have both 32 bit and 64 bit kernels.


NeddySeagoon,
thank you. I'm running the raspbian installed through the installer at the moment because I'm totally new to Raspberry. I've got a Raspberry Pi4 4G. With
Code:
getconf LONG_BIT
I discovered that I'm running a 32bit kernel, so what do I need to do? Is there raspbian running 64 bit kernel?
I want to clarify a thing. I'd like to mantain raspbian on my Pi4 because (I think) it is more stable than gentoo (for now :wink: ) and because I know there is a sort of recovery accessible having installed raspbian. Now, my knowledge about the topic is everything but good for now, but I'd like to have a stable system since I want to try to use my Pi as a sort of portable PC.
Thank you so much for your willingness. It is one of the thing that I appreciate more of you and of gentoo community.
_________________
There are two types of user: the one who reads guides and the one who writes them. For now, I'm the one who reads :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Wed May 06, 2020 9:03 pm    Post subject: Reply with quote

popetto,

On the the a 64 bit kernel looks like
Code:
$ uname -a
Linux Pi4_~arm64 5.4.3-v8+ #7 SMP PREEMPT Sun Dec 22 13:45:07 GMT 2019 aarch64 GNU/Linux

That was built from the Pi Foundation git sources and its overdue an update.

The Raspberry Pi Foundation publish a 64 bit kernel. It may be in your /boot now. Look for a file called kernel8.img
I've not tested their binary.
You can make your Pi use this kernel if you wish. Its a couple of edits to /boot/config.txt
If it doesn't work, restore your config.txt backup. You were going to keep a backup?
This will give you a 64 bit kernel and 32 bit userland.

One of the nice things about the Pi is its not possible to 'brick' it. All the user accessible software is on the SD Card.
That's not quite true for the Pi4 but even that has a recovery mode.

Your Pi is only running at 600MHz with the stock Foundation kernel as it uses the Powersave CPU governor. It can run at 1.5GHz if its cooled.
There are others to choose from. Thats something else to fiddle with.
The CPU can run at 1.5GHz if its cooled, if its not cooled, when it reaches 80C, it will thermal throttle

The Pi4 is quite a capable system. It will build the Foundation kernel for itself in 64 bin mode in an hour, that's with make -j4.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 403

PostPosted: Wed May 06, 2020 11:09 pm    Post subject: Reply with quote

popetto wrote:
Hi all, I'll ask you a very, very stupid question. Is it possible to install gentoo alongside raspbian on the same sd card? I know that it is not recommended, but I've got a 128 GB micro sd card and I'd like to split that space. Is it possible? Is there a guide? Thank you in advance :D

I think PINN will let you do pretty much exactly what you want: please see my answer to your post on the RPi forums, here.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
popetto
n00b
n00b


Joined: 13 Aug 2019
Posts: 22
Location: Italy

PostPosted: Thu May 07, 2020 7:45 am    Post subject: Reply with quote

Sakaki wrote:
popetto wrote:
Hi all, I'll ask you a very, very stupid question. Is it possible to install gentoo alongside raspbian on the same sd card? I know that it is not recommended, but I've got a 128 GB micro sd card and I'd like to split that space. Is it possible? Is there a guide? Thank you in advance :D

I think PINN will let you do pretty much exactly what you want: please see my answer to your post on the RPi forums, here.


Sakaki, thank you so much. I apologise for my duplicated post :oops:
_________________
There are two types of user: the one who reads guides and the one who writes them. For now, I'm the one who reads :(
Back to top
View user's profile Send private message
safeness
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 105
Location: Eastside, WA

PostPosted: Tue May 12, 2020 2:23 pm    Post subject: Reply with quote

chris_andrew wrote:
Sakaki wrote:

If you want to pre-empt the weekly update, to flush this change out sooner, then simply run (as root, or using sudo):
Code:
pi64 ~ # emaint sync --repo genpi64
pi64 ~ # emaint sync --repo sakaki-tools
pi64 ~ # emerge -v1u app-portage/genup
pi64 ~ # /etc/cron.weekly/fixup
pi64 ~ # genup


Hi, all.

As per my previous post, I'm now running genup. Things seem to be moving forward in an orderly fashion, but I have noticed some warnings about insufficient space to upgrade Firefox (>=9 gigs) and some of the other big apps. My sdcard is 32gb. At least these warnings are graceful, and the update hasn't just suddenly exited (yet).

Due to Sakaki's good work, I'm now becoming more invested in Gentoo. I have a spare powered HDD that I could attach via USB, but I'm also considering buying a large sdcard, ie, >=128gb.

My question is, is there a way to copy all the configuration and updates from my current sdcard, to a new one? This would save a lot of already invested processor time.

Alternatively, if I continued to use the existing sdcard, what would be the best way to utilize the external HDD? Looks like Portage needs a large amount of space, but moving /var onto a new device could get messy?

Any thoughts, I'll let the updates continue, with the current setup, for now

Cheers,

Chris.


Hi Chris,

Another way to back up files that is much quicker for lots of small files:
Code:

tar -cp * | tar -xv -C /targetdir


Might not be exactly what you want but it’s at least a cool trick :)
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Tue May 12, 2020 7:03 pm    Post subject: Reply with quote

Thanks, Safeness, for your comment in the last post.

All, I'm trying to install a package, and I've had some errors, and the 'compile phase' has failed.

Code:


* ERROR: media-radio/js8call-2.1.1::gentoo failed (compile phase):
 *   emake failed"


The build log is huge, should I post a particular bit of it? Years ago, we'd have used a pastebin, but not sure whether that's something that people are using, these days.

emerge --info '=media-radio/js8call-2.1.1::gentoo'

Code:

Portage 2.3.89 (python 3.6.10-final-0, default/linux/arm64/17.0/desktop, gcc-9.3.0, glibc-2.31-r2, 4.19.115-v8-b13fc60b529f-bis+ aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.115-v8-b13fc60b529f-bis+-aarch64-with-gentoo-2.7
KiB Mem:      868216 total,     28116 free
KiB Swap:    1048572 total,    866000 free
Timestamp of repository gentoo: Mon, 04 May 2020 22:15:02 +0000
Head commit of repository gentoo: 90c1e55871235b7f08b6b0af3b190717db2d260b
Head commit of repository sakaki-tools: 213a4e46e0b95863e05049dd44ae29fdcb6a5d68

Head commit of repository genpi64: 173c79201dd35b7d0e19fe6abdde6280052d77c4

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
distcc 3.3.3 aarch64-unknown-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::genpi64, 3.7.7-r2::genpi64, 3.8.2-r2::genpi64
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r2::genpi64
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://isshoni.org/gentoo-portage-pi64-gem
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

sakaki-tools
    location: /var/db/repos/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

genpi64
    location: /var/db/repos/genpi64
    sync-type: git
    sync-uri: https://github.com/sakaki-/genpi64-overlay.git
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE CC-Sampling-Plus-1.0"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -ftree-vectorize -O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /boot/startup.sh /etc /usr/lib64/libreoffice/program/sofficerc /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"
CXXFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -ftree-vectorize -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="https://isshoni.org/pi64pie"
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 alsa arm64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvdr egl elogind emboss encode exif ffmpeg flac fortran gdbm gif gles1 gles2 gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc lock mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt4 qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="WebAssembly BPF" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby24 ruby25 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev vc4" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



emerge -pqv '=media-radio/js8call-2.1.1::gentoo'


Code:


[ebuild  N    ] media-radio/js8call-2.1.1  USE="-doc"



df -h

Code:


Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.8T   13G  1.7T   1% /
devtmpfs         10M     0   10M   0% /dev
tmpfs            85M  1.0M   84M   2% /run
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
shm             424M   13M  412M   3% /dev/shm
/dev/mmcblk0p6  252M   56M  196M  23% /boot
tmpfs            85M   12K   85M   1% /run/user/1001



I won't add anymore logs at this point, does anything obvious jump out?

Many thanks,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Tue May 12, 2020 7:50 pm    Post subject: Reply with quote

chris_andrew,

wgetpaste is your friend
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Tue May 12, 2020 8:09 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chris_andrew,

wgetpaste is your friend


Thanks, Neddy; I'll give that a go

https://wiki.gentoo.org/wiki/Wgetpaste

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Tue May 12, 2020 8:19 pm    Post subject: Reply with quote

chris_andrew,

I was expecting a link to the build log :)

I've tried
Code:
emerge -1av media-radio/js8call
In the final link, the build log ends with
Code:
/var/tmp/portage/media-radio/js8call-2.1.1/temp/js8call.32wlpo.ltrans29.ltrans.o:<artificial>:function EqualizationToolsDialog::~EqualizationToolsDialog(): error: undefined reference to 'pimpl<EqualizationToolsDialog::impl>::~pimpl()'
/var/tmp/portage/media-radio/js8call-2.1.1/temp/js8call.32wlpo.ltrans29.ltrans.o:<artificial>:function EqualizationToolsDialog::~EqualizationToolsDialog() [clone .lto_priv.0]: error: undefined reference to 'pimpl<EqualizationToolsDialog::impl>::~pimpl()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/js8call.dir/build.make:960: js8call] Error 1


At least, that the bit that matters. I'll try it again without link time optimisation. That has been known to throw away things that are needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Tue May 12, 2020 8:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chris_andrew,

I was expecting a link to the build log :)



It's got to emerge, first, before I can paste :-)
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Tue May 12, 2020 8:47 pm    Post subject: Reply with quote

chris_andrew,

media-radio/js8call builds for me as long as I turn off link time optimisation.
Its in my gcc-9 binhost.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Tue May 12, 2020 9:04 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chris_andrew,

media-radio/js8call builds for me as long as I turn off link time optimisation.
Its in my gcc-9 binhost.


Hi, Neddy.

Thanks for trying that. Could you expand a little, so I can try that config? Wgetpaste is now installed, but the default and alt pastebins are throwing errors. Eg, 'Pasting > 25 kB often tend to fail with dpaste.'

I'll keep trying...

Cheers,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Tue May 12, 2020 9:25 pm    Post subject: Reply with quote

chris_andrew

Wild guess ...

You have
Code:
KiB Mem:      868216 total,     28116 free
KiB Swap:    1048572 total,    866000 free

and
Code:
MAKEOPTS="-j5 -l4"


but media-radio/js8call is largeish C++ (among other things) build.
Now, C++ can take 2G RAM per thread. That's up to 10G RAM with your stettngs.

grep your build log for killed. I suspect you ran out of RAM. Check dmesg for evidence og the Out of Memory (OOM) manager in action.

OK, its not just a wild guess.

Just as Sakaki keeps binhost at
Code:
PORTAGE_BINHOST="https://isshoni.org/pi64pie"
which genup uses, I have one at http://bloodnoc.org/~roy/BINHOSTS/
Mine is further subdivided by gcc version because code is not always compatible between versions, and arches.
Feel free to look around with a browser.
You want http://bloodnoc.org/~roy/BINHOSTS/gcc-9.x/armv8a/ for the 64 bit pi.

All the gory detail on binhosts is on the Wiki.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Wed May 13, 2020 10:56 am    Post subject: Reply with quote

Ok, I'm admitting pastebin defeat. I tried the install again, this morning, but running as few apps as possible, hoping this may help a little with the memory problem. Is there anything I can try to reduce the overhead on the memory, that is causing 'CC1' to fail with a 'Killed' error? I really want to use Gentoo, but if I can't run the JS8Call app, I'll need to use the Raspbian SDcard, that has it installed.

Thanks,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Wed May 13, 2020 6:03 pm    Post subject: Reply with quote

chris_andrew,

Run your emerge command as
Code:
MAKEOPTS="-j1" emerge ...

That will only use one thread.

If that works, learn about per package environment settings because portage won't remember command line settings like then.

You can use the binary package that I made, much as you use the binaries that Sakaki makes.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Wed May 13, 2020 7:09 pm    Post subject: Reply with quote

Thanks, Neddy; giving that a try, now. I remember the "-j1"-type options from the last time I did a 'manual' Gentoo install, which was probably on a 32-bit SparcStation.

Just ordered a refurbished laptop, so will be looking to get Gentoo on that, next.

Cheers,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Wed May 13, 2020 9:17 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chris_andrew,

Run your emerge command as
Code:
MAKEOPTS="-j1" emerge ...

That will only use one thread.

If that works, learn about per package environment settings because portage won't remember command line settings like then.


Success:

Code:

chris@pi64 ~ $ which js8call
/usr/bin/js8call


Now I need t find out the long-term setting for this, so it always compiles with "-j1".

Thanks for your help getting me this far, Neddy.

Cheers,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Wed May 13, 2020 9:29 pm    Post subject: Reply with quote

chris_andrew,


Here is a little light reading.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Thu May 14, 2020 4:54 am    Post subject: Reply with quote

NeddySeagoon wrote:
chris_andrew,


Here is a little light reading.


Thanks; I'll have a read, today.

Chris
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Thu May 14, 2020 8:08 am    Post subject: Reply with quote

Anyone else seeing this?

Code:

emerge --oneshot sys-apps/portage

Local copy of remote index is up-to-date and will be used.
Calculating dependencies... done!
[binary     U  ] sys-apps/portage-2.3.99-r2 [2.3.89-r1]

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-apps/portage:0

  (sys-apps/portage-2.3.99-r2:0/0::gentoo, binary scheduled for merge) USE="(ipc) native-extensions rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux)" PYTHON_TARGETS="python3_6 python3_7 (-pypy3) (-python3_8)" pulled in by
    sys-apps/portage (Argument)

  (sys-apps/portage-2.3.89-r1:0/0::gentoo, installed) USE="(ipc) native-extensions rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux)" PYTHON_TARGETS="python2_7 python3_6 python3_7 (-pypy3) (-python3_8)" pulled in by
    >=sys-apps/portage-2.1[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] required by (app-portage/porthole-0.6.1-r6:0/0::sakaki-tools, installed) USE="nls" PYTHON_TARGETS="python2_7"


Does "binary scheduled for merge" mean that it shouldn't update just yet; if so, nothing to worry about.

Thanks,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 403

PostPosted: Thu May 14, 2020 11:34 pm    Post subject: Reply with quote

chris_andrew,

you need to uninstall app-portage/porthole, as it requires a sys-apps/portage with Python v2.7 support - but newer sys-apps/portage support Python 3 only. This is what is holding back portage from upgrading (you'll learn to unpick the diagnostic output in time, it's a little opaque!)

In any event, porthole has been purged (bug #708096) from the main Gentoo tree due to lack of upstream / problematic deps; another reason to drop it.

The package will be uninstalled from your system automatically by this fixup script if you have weekly updating turned on. Otherwise (or to ensure the package gets removed immediately) just issue:
Code:

pi64 ~ # emerge --depclean app-portage/porthole

_________________
Regards,

sakaki
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Fri May 15, 2020 5:14 am    Post subject: Reply with quote

Sakaki wrote:
chris_andrew,

you need to uninstall app-portage/porthole, as it requires a sys-apps/portage with Python v2.7 support - but newer sys-apps/portage support Python 3 only. This is what is holding back portage from upgrading (you'll learn to unpick the diagnostic output in time, it's a little opaque!)

In any event, porthole has been purged (bug #708096) from the main Gentoo tree due to lack of upstream / problematic deps; another reason to drop it.

The package will be uninstalled from your system automatically by this fixup script if you have weekly updating turned on. Otherwise (or to ensure the package gets removed immediately) just issue:
Code:

pi64 ~ # emerge --depclean app-portage/porthole


Thanks, Sakaki. A great answer, as always. I'll do the emerge, on this occasion, and it'll give the weekly updat one less thing to think about.

Cheers,

Chris
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Fri May 15, 2020 3:38 pm    Post subject: Reply with quote

Hi, all.

I've managed to install a couple of ham radio packages, that were previously masked. In Sakaki's README,

https://github.com/sakaki-/gentoo-on-rpi-64bit#installing-new-packages-under-gentoo

it mentions considering a PR (push request?) to get these added

"Once you get a package working successfully, you can then explicitly keyword its dependencies if you like (in /etc/portage/package.accept_keywords/...)"; anyone know how to go about doing that?

I may be able to add some:

Code:
ls /etc/portage/package.accept_keywords/
hamlib  inxi  js8call  neofetch  zzz_via_autounmask

Cheers,

Chris.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46069
Location: 56N 3W

PostPosted: Fri May 15, 2020 4:58 pm    Post subject: Reply with quote

chris_andrew,

The drill is to fork gentoo/gentoo on github.
Clone your fork to a local system and do your work there.
Push your local work to your github fork from time to time.

When you are ready, create a pull request on github, then wait for the CI bot to check your work for being complete and consistent with the ::gentoo repo.
If the bot shouts at you, fix it and try again. :)

You can file keyword request bugs too. One bug for a package with all its dependencies.

The workflow includes repoman, which will tell you if you have USE flags that require masked packages.
That would be creating a problem. You may not keyword a package unless all the packages it depends on are keyworded too.
Cheating, by masking USE flags on a per package basis is OK as long as you have a good reason.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chris_andrew
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 291
Location: Wiltshire, UK

PostPosted: Fri May 15, 2020 6:15 pm    Post subject: Reply with quote

Thank you.
_________________
http://www.whylinuxisbetter.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next
Page 9 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum