You are not logged in.

#1 2018-08-25 18:49:25

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Install & Keep Multiple Versions

How can i install gimp 2.10
along-side with 2.8?

Coz 2.10 breaks all
my plugin-scripts.

Offline

#2 2018-08-26 16:03:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Install & Keep Multiple Versions

Your best bet would be to figure out why your plugin-scripts break and fix the problem.

The only way to install an older version would be to modify the PKGBUILD to build the old version and install to /usr/local/.  But given GIMPs dependency chain this might prove to be highly impractical.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-01-27 02:58:53

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

Fat chance.

Trilby wrote:

Your best bet would be to figure out why your plugin-scripts break and fix the problem.

Without recompiling?
gimp-2.10.8-1-x86_64.pkg.tar.xz
how to install that to /usr/local or /opt?
then i can just downgrade to 2.8.

the deps seem to be ok. coz i can
run both w/o downgradin any other pkgs.

Trilby wrote:

YThe only way to install an older version would be to modify the PKGBUILD to build the old version and install to /usr/local/.  But given GIMPs dependency chain this might prove to be highly impractical.

usage:  pacman {-Q --query} [options] [package(s)]
-r, --root <path>    set an alternate installation root
Specify an alternative installation root (default is /). 
This should not be used as a way to install software into
/usr/local instead of /usr.

Or where can i get the PKGBUILD for 2.8?
I need both vers at the same time.
What exactly should be done?

Last edited by Xelvet (2019-01-27 03:05:50)

Offline

#4 2019-01-27 17:40:28

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: Install & Keep Multiple Versions

Xelvet wrote:

Fat chance.

Trilby wrote:

Your best bet would be to figure out why your plugin-scripts break and fix the problem.

Why?

Xelvet wrote:
Trilby wrote:

YThe only way to install an older version would be to modify the PKGBUILD to build the old version and install to /usr/local/.  But given GIMPs dependency chain this might prove to be highly impractical.

usage:  pacman {-Q --query} [options] [package(s)]
-r, --root <path>    set an alternate installation root
Specify an alternative installation root (default is /). 
This should not be used as a way to install software into
/usr/local instead of /usr.

Yes you could install a new system using --root with the packages from a date when gimp version 2.8 was in the repositories.

Xelvet wrote:

Or where can i get the PKGBUILD for 2.8?
I need both vers at the same time.
What exactly should be done?

https://git.archlinux.org/svntogit/pack … db65169bcf
investigate the --prefix and -sysconfdir options and changing them so the contents does not clash.

Offline

#5 2019-01-27 18:23:24

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Install & Keep Multiple Versions

Use 2.10 from the repos and then install the 2.8 flatpak alongside?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2019-01-27 18:49:35

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Install & Keep Multiple Versions

And it took you 5 months to get get back to us after Trilby's initial response? tongue

Xelvet wrote:

Fat chance.

Trilby wrote:

Your best bet would be to figure out why your plugin-scripts break and fix the problem.

So you're unwilling to find out why your scripts broke, but you'd rather try to figure out how to compile the entire gimp package yourself?

Without recompiling?
gimp-2.10.8-1-x86_64.pkg.tar.xz
how to install that to /usr/local or /opt?
then i can just downgrade to 2.8.

Quite obviously with recompiling. You want to build an old version of gimp using new system software, but you don't want to recompile?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2019-01-27 23:53:37

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

loqs wrote:

Why?

eschwartz wrote:

So you're unwilling to find out why your scripts broke,
but you'd rather try to figure out how to compile the entire gimp package yourself?

Not my scripts & even registry.gimp.org scripts-repo is dead.
Gimp 2.9/2.10 has broken a bunch of scripts not just one or two.

eschwartz wrote:

And it took you 5 months to get get back to us after Trilby's initial response? tongue

Yep, i had been stuck with 2.8 but now i realize the latest branch has some prety appealing new features.

logs wrote:

https://git.archlinux.org/svntogit/pack … db65169bcf
investigate the --prefix and -sysconfdir options and changing them so the contents does not clash.

Investigating. Where did you get that build-file?

logs wrote:

Yes you could install a new system using --root with the packages from a date when gimp version 2.8 was in the repositories.

As with systemd-nspawn containerization?

Slithery wrote:

Use 2.10 from the repos and then install the 2.8 flatpak alongside?

Flatpak hmmm -- interesting but I don't see any flatpaked 2.8 out there --
only the latest version & it isn't that much slim it seems with all the deps.

eschwartz wrote:

Quite obviously with recompiling. You want to build an old version of gimp using new system software, but you don't want to recompile?

Well usually yes-- with; but in this case as long as no deps have been backwardly-
or-forwardly broken yet, it seems. Why not. As a temp solution perhaps.

Can prefix be
changed in a package
which has already been built?
That's just install-path-location isn't it?

Last edited by Xelvet (2019-01-27 23:58:21)

Offline

#8 2019-01-28 00:46:37

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: Install & Keep Multiple Versions

Xelvet wrote:
loqs wrote:

Why?

eschwartz wrote:

So you're unwilling to find out why your scripts broke,
but you'd rather try to figure out how to compile the entire gimp package yourself?

Not my scripts & even registry.gimp.org scripts-repo is dead.
Gimp 2.9/2.10 has broken a bunch of scripts not just one or two.

If you could post one of the scripts or a link to it and the issue with it it perhaps it could be made to work with 2.10.

Xelvet wrote:
logs wrote:

https://git.archlinux.org/svntogit/pack … db65169bcf
investigate the --prefix and -sysconfdir options and changing them so the contents does not clash.

Investigating. Where did you get that build-file?

From web interface to the arch svn2git for packages which contains all package build changes for core and extra.
I started off at https://www.archlinux.org/packages/extra/x86_64/gimp/ from there view changes and checked commit messages looking for the last entry for 2.8.

Xelvet wrote:
logs wrote:

Yes you could install a new system using --root with the packages from a date when gimp version 2.8 was in the repositories.

As with systemd-nspawn containerization

Yes as trying to just install one package in a different root will not work as pacman will look for its database files relative to the root same issue with package dependencies etc.

There are two issues with trying to adjust the gimp 2.8 package arch shipped one is the file locations being the same as gimp 2.10 the other is the dependencies are for libraries as arch shipped months ago not now.

Offline

#9 2019-01-28 04:32:02

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

loqs wrote:

From web interface to the arch svn2git for packages which contains all package build changes for core and extra.
I started off at https://www.archlinux.org/packages/extra/x86_64/gimp/ from there view changes and checked commit messages looking for the last entry for 2.8.

I have compiled your PKGBUILD
but as soon as i try to install it with

pacman -U gimp-2.8.22-1-x86_64.pkg.tar.xz
warning: downgrading package gimp (2.10.8-1 => 2.8.22-1)

I changed the prefix to /usr/local
but how can i install it now alongside with 2.10
& keep em both without downgrading?
Renaming it w/o rebuilding?

Last edited by Xelvet (2019-01-28 04:57:28)

Offline

#10 2019-01-28 11:13:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,930

Re: Install & Keep Multiple Versions

You'll have to change the pkgname of your custom gimp version, something like gimp28 .

Check man makepkg , there are options to avoid complete rebuilds in special cases.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#11 2019-01-28 13:02:00

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

Lone_Wolf wrote:

You'll have to change the pkgname of your custom gimp version, something like gimp28 .

Check man makepkg , there are options to avoid complete rebuilds in special cases.

yeah -R can rename; but not if
one needs to change the prefix too.

man, why /usr/local
is preceding /usr
in $PATH env..

Offline

#12 2019-01-28 15:50:21

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: Install & Keep Multiple Versions

From configure --help

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

So

_pkgver=2.8
./ configure --program-suffix=-${_pkgver} \

All the binaries will then use the -2.8 suffix distinguishing them from the binaries supplied by the gimp package.

Offline

#13 2019-01-28 21:35:13

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

Either way it isn't
going to install itself
with the /usr/local prefix..

% x p -U gimpp-2.8.22-1-x86_64.pkg.tar.xz
error: failed to commit transaction (conflicting files)
gimpp: /usr/local/share/man exists in filesystem (owned by filesystem)

% ls /usr/local/share/
lrwxrwxrwx 1 root root    6 Aug 21 16:21 man -> ../man

Offline

#14 2019-01-28 21:54:42

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: Install & Keep Multiple Versions

./configure --mandir=/opt/local/man

Offline

#15 2019-01-28 23:14:15

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Install & Keep Multiple Versions

Oh man,
yeah i installed
it finally under /opt.
But why, the dir is
a symlink & empty..

Offline

#16 2019-01-28 23:40:24

loqs
Member
Registered: 2014-03-06
Posts: 18,045

Re: Install & Keep Multiple Versions

pacman does not follow symlinks that link predates that pacman change.  It was initially added in https://git.archlinux.org/svntogit/pack … 124385a079
See http://refspecs.linuxfoundation.org/FHS … OCALSHARE1 requirement appears to have been dropped in FHS 3.0 http://refspecs.linuxfoundation.org/FHS … ocalshare1

Offline

Board footer

Powered by FluxBB