You are not logged in.

#1 2020-05-21 01:49:14

birdmun
Member
Registered: 2020-05-21
Posts: 2

[SOLVED]install issues 'can't be built for the current arch (pentium4)

I am attempting to install cnijfilter2-mg3600 printer driver. Using pikaur I get a response that the package can't be built with the current arch only i686 and x86_64 are supported. I have attempted searching for a solve and not yet found one. I have seen the same error on other packages. I simply do not know how to work around my problems with this and I obviously haven't found the proper search term to help either. I hope to get this printer working sooner rather than later. smile TIA

Last edited by birdmun (2020-05-21 23:44:09)

Offline

#2 2020-05-21 03:39:18

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: [SOLVED]install issues 'can't be built for the current arch (pentium4)

I don't use pikaur personally, but I'll assume it's left the PKGBUILD for you (in a subdirectory of your ~/builds folder I'd expect).  SImply edit that, and add 'pentium4' inside the bracketed list of architectures next to the arch= label.  If it builds from source, that's all you need to do.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2020-05-21 09:07:12

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,031
Website

Re: [SOLVED]install issues 'can't be built for the current arch (pentium4)

You can edit PKGBUILDs while running pikaur..

Do you want to edit PKGBUILD for cnijfilter2-mg3600 package? [Y/n] 

So you don't have to fiddle inside the /build folder directly.

But the build fails in:

ar: /home/guest/.cache/pikaur/build/cnijfilter2-mg3600/src/cnijfilter2-5.20-1-deb/packages/cnijfilter2_5.20-1_pentium4.deb: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

Command 'makepkg --force' failed to execute.

So, you have to modify the package, change arch and add pentium4 and change

ar -x "${_debdir}/cnijfilter2_${pkgver}-1_${_pkgarch}.deb" "data.tar.gz"

and use i386 directly instead of ${_pkgarch}.

Offline

#4 2020-05-21 23:44:58

birdmun
Member
Registered: 2020-05-21
Posts: 2

Re: [SOLVED]install issues 'can't be built for the current arch (pentium4)

Thanks so much for the quick replies. Hopefully I can remember to keep this in my bag of tricks for next time. smile

Offline

Board footer

Powered by FluxBB