You are not logged in.

#1 2023-10-09 22:46:16

ElMastro
Member
Registered: 2015-12-02
Posts: 64

[SOLVED]New gimp-gap PKGBUILD

Greetings;
I am trying to rebuild the PKGBUILD from gimp-gap, using the source in the Gimp site.
Unfortunately when I run the make command, this is the output:

In file included from ./libavcodec/mpegaudio.h:30,
                 from libavformat/asfdec.c:23:
./libavcodec/bitstream.h: In function ‘skip_bits’:
./libavcodec/bitstream.h:659:17: warning: variable ‘re_cache’ set but not used [-Wunused-but-set-variable]
  659 |     OPEN_READER(re, s)
      |                 ^~
./libavcodec/bitstream.h:407:13: note: in definition of macro ‘OPEN_READER’
  407 |         int name##_cache= 0;\
      |             ^~~~
libavformat/asfdec.c: In function ‘asf_read_header’:
libavformat/asfdec.c:355:13: warning: ‘AVPaletteControl’ is deprecated [-Wdeprecated-declarations]
  355 |             st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
      |             ^~
In file included from ./libavcodec/mpegaudio.h:29:
./libavcodec/avcodec.h:2479:16: note: declared here
 2479 | typedef struct AVPaletteControl {
      |                ^~~~~~~~~~~~~~~~
libavformat/asfdec.c:219:22: warning: variable ‘total_size’ set but not used [-Wunused-but-set-variable]
  219 |             uint64_t total_size;
      |                      ^~~~~~~~~~
libavformat/asfdec.c:417:53: warning: variable ‘value_type’ set but not used [-Wunused-but-set-variable]
  417 |             int n, stream_num, name_len, value_len, value_type, value_num;
      |                                                     ^~~~~~~~~~
libavformat/asfdec.c:442:21: warning: variable ‘pos_ex_st’ set but not used [-Wunused-but-set-variable]
  442 |             int64_t pos_ex_st;
      |                     ^~~~~~~~~
libavformat/asfdec.c:441:22: warning: variable ‘ext_d’ set but not used [-Wunused-but-set-variable]
  441 |             uint32_t ext_d, leak_rate, stream_num;
      |                      ^~~~~
libavformat/asfdec.c:480:21: warning: variable ‘v2’ set but not used [-Wunused-but-set-variable]
  480 |             int v1, v2;
      |                     ^~
libavformat/asfdec.c:480:17: warning: variable ‘v1’ set but not used [-Wunused-but-set-variable]
  480 |             int v1, v2;
      |                 ^~
libavformat/asfdec.c: In function ‘asf_read_frame_header’:
libavformat/asfdec.c:629:18: warning: variable ‘ts1’ set but not used [-Wunused-but-set-variable]
  629 |     int64_t ts0, ts1;
      |                  ^~~
libavformat/asfdec.c: In function ‘asf_build_simple_index’:
libavformat/asfdec.c:985:13: warning: variable ‘gsize’ set but not used [-Wunused-but-set-variable]
  985 |     int64_t gsize, itime;
      |             ^~~~~
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg" -march=native -O2 -pipe -fno-plt -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros -fPIC -DPIC -c -o libavformat/assdec.o libavformat/assdec.c
In file included from libavformat/adtsenc.c:23:
./libavcodec/bitstream.h: In function ‘skip_bits’:
./libavcodec/bitstream.h:659:17: warning: variable ‘re_cache’ set but not used [-Wunused-but-set-variable]
  659 |     OPEN_READER(re, s)
      |                 ^~
./libavcodec/bitstream.h:407:13: note: in definition of macro ‘OPEN_READER’
  407 |         int name##_cache= 0;\
      |             ^~~~
./libavcodec/bitstream.h: Assembler messages:
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
make[3]: *** [common.mak:25: libavformat/adtsenc.o] Error 1
make[3]: uscita dalla directory «/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg»
make[2]: *** [Makefile:445: /tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg/libavcodec/libavcodec.a] Error 2
make[2]: *** Attesa per i processi non terminati....
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg" -march=native -O2 -pipe -fno-plt -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros -fPIC -DPIC -c -o libavformat/assenc.o libavformat/assenc.c
In file included from libavformat/adtsenc.c:23:
./libavcodec/bitstream.h: In function ‘skip_bits’:
./libavcodec/bitstream.h:659:17: warning: variable ‘re_cache’ set but not used [-Wunused-but-set-variable]
  659 |     OPEN_READER(re, s)
      |                 ^~
./libavcodec/bitstream.h:407:13: note: in definition of macro ‘OPEN_READER’
  407 |         int name##_cache= 0;\
      |             ^~~~
./libavcodec/bitstream.h: Assembler messages:
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr'
make[3]: *** [common.mak:25: libavformat/adtsenc.o] Error 1
make[3]: *** Attesa per i processi non terminati....
libavformat/asfcrypt.c: In function ‘multiswap_enc’:
libavformat/asfcrypt.c:111:11: warning: ‘multiswap_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  111 |     tmp = multiswap_step(keys + 6, b);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:111:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:72:17: note: in a call to function ‘multiswap_step’
   72 | static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v) {
      |                 ^~~~~~~~~~~~~~
libavformat/asfcrypt.c: In function ‘multiswap_dec’:
libavformat/asfcrypt.c:130:9: warning: ‘multiswap_inv_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  130 |     b = multiswap_inv_step(keys + 6, tmp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:130:9: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:83:17: note: in a call to function ‘multiswap_inv_step’
   83 | static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v) {
      |                 ^~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c: In function ‘multiswap_enc’:
libavformat/asfcrypt.c:111:11: warning: ‘multiswap_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  111 |     tmp = multiswap_step(keys + 6, b);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:111:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:72:17: note: in a call to function ‘multiswap_step’
   72 | static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v) {
      |                 ^~~~~~~~~~~~~~
libavformat/asfcrypt.c: In function ‘multiswap_dec’:
libavformat/asfcrypt.c:130:9: warning: ‘multiswap_inv_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  130 |     b = multiswap_inv_step(keys + 6, tmp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:130:9: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:83:17: note: in a call to function ‘multiswap_inv_step’
   83 | static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v) {
      |                 ^~~~~~~~~~~~~~~~~~
make[3]: uscita dalla directory «/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg»
make[2]: *** [Makefile:440: /tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg/libavformat/libavformat.a] Error 2
make[3]: uscita dalla directory «/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg»
make[2]: *** [Makefile:450: /tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs/ffmpeg/libavutil/libavutil.a] Error 2
make[2]: uscita dalla directory «/tmp/gimp-gap/src/gimp-gap-2.6.0/extern_libs»
make[1]: *** [Makefile:331: all-recursive] Error 1
make[1]: uscita dalla directory «/tmp/gimp-gap/src/gimp-gap-2.6.0»
make: *** [Makefile:270: all] Error 2

In detail, what does ./libavcodec/bitstream.h:65: Error: operand type mismatch for `shr' mean ( I couldn't find any clue online)?

Last edited by ElMastro (2023-11-11 18:03:22)

Offline

#2 2023-10-09 23:30:30

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

Re: [SOLVED]New gimp-gap PKGBUILD

Have you tried adding --disable-asm to the uncommented options line in extern_libs/configure_options_ffmpeg.txt ?  As the upstream fix https://git.ffmpeg.org/gitweb/ffmpeg.gi … e6f464f0eb will probably not apply.

Offline

#3 2023-10-10 22:14:38

FoldMorePaper
Member
Registered: 2023-10-10
Posts: 1

Re: [SOLVED]New gimp-gap PKGBUILD

I was running into the same issue when trying to compile source code from GNOME's Gitlab
https://gitlab.gnome.org/Archive/gimp-gap

that upstream patch actually does apply, and i was able to successfully build from source, with some caveats:

  • I ran the autogen command from the AUR package's PKGBUILD:

    ./autogen.sh CC="gcc" CXX="g++" LDFLAGS="-lm" CFLAGS="-g"
  • I had to run "make" twice to successfully compile

I haven't delved too deeply into what the error was after running make the first time since running it a second time worked.

Offline

#4 2023-10-11 14:18:19

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

loqs wrote:

Have you tried adding --disable-asm to the uncommented options line in extern_libs/configure_options_ffmpeg.txt ?

I have done now, what changes is that that error solves but the compilation fails with

/usr/bin/ld: /tmp/src/gimp-gap/extern_libs/ffmpeg/libswscale/libswscale.a(utils.o): in function `sws_init_context':
/tmp/src/gimp-gap/extern_libs/ffmpeg/libswscale/utils.c:786:(.text+0x1a64): undefined reference to `av_get_cpu_flags'
collect2: error: ld returned 1 exit status
FoldMorePaper wrote:

    I ran the autogen command from the AUR package's PKGBUILD:

    ./autogen.sh CC="gcc" CXX="g++" LDFLAGS="-lm" CFLAGS="-g"

    I had to run "make" twice to successfully compile

Unfortunately I cannot reproduce that; however the failing of the first make what make this solution unusable in a PKGBUILD (makpkg would stop)

Thank you for your support

Offline

#5 2023-10-11 16:57:24

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

Re: [SOLVED]New gimp-gap PKGBUILD

Please try applying the diff below:

diff --git a/PKGBUILD b/PKGBUILD
index 78b4b09..3cc51f1 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,15 +7,26 @@ url="https://www.gimp.org/tutorials/Using_GAP/"
 arch=('x86_64' 'i686')
 license=('GPLv3' )
 depends=('gimp>=2.6.0' 'glib2')
-makedepends=( 'intltool' 'cmake')
+makedepends=( 'intltool' 'cmake' 'git')
 optdepends=('xvidcore: compression codec' 
                        'lbzip2: data compressor' 
                        'faac: audio encoder' 
                        'faad2: audio decoder' 
                        'lame: mpeg layer 3 codec' 
                        'libx264: H264 codec')
-source=('git+https://github.com/GNOME/gimp-gap')
-md5sums=('SKIP')
+source=('git+https://gitlab.gnome.org/Archive/gimp-gap.git'
+         effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch::https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/effadce6c756247ea8bae32dc13bb3e6f464f0eb)
+md5sums=('SKIP'
+         '955ac456a53dbb221b7e2a87ab5a93f6')
+
+prepare() {
+  cd $pkgname
+  bsdtar -xf extern_libs/ffmpeg.tar.gz -C extern_libs
+  # fix building with binutil >= 2.41
+  patch -Np1 -i "$srcdir/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch" -d extern_libs/ffmpeg
+  # fix library linking order
+  sed -i 's/$FFMPEG_LIBAVUTIL_A $FFMPEG_LIBSWSCALE_A/$FFMPEG_LIBSWSCALE_A $FFMPEG_LIBAVUTIL_A/' configure.in
+}
 
 package() {
   cd "${srcdir}/gimp-gap"

Offline

#6 2023-10-12 22:54:53

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

patching file PKGBUILD
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file PKGBUILD.rej
 

PKGBUILD.rej is

--- PKGBUILD
+++ PKGBUILD
@@ -7,15 +7,26 @@ url="https://www.gimp.org/tutorials/Using_GAP/"
 arch=('x86_64' 'i686')
 license=('GPLv3' )
 depends=('gimp>=2.6.0' 'glib2')
-makedepends=( 'intltool' 'cmake')
+makedepends=( 'intltool' 'cmake' 'git')
 optdepends=('xvidcore: compression codec' 
                        'lbzip2: data compressor' 
                        'faac: audio encoder' 
                        'faad2: audio decoder' 
                        'lame: mpeg layer 3 codec' 
                        'libx264: H264 codec')
-source=('git+https://github.com/GNOME/gimp-gap')
-md5sums=('SKIP')
+source=('git+https://gitlab.gnome.org/Archive/gimp-gap.git'
+         effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch::https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/effadce6c756247ea8bae32dc13bb3e6f464f0eb)
+md5sums=('SKIP'
+         '955ac456a53dbb221b7e2a87ab5a93f6')
+
+prepare() {
+  cd $pkgname
+  bsdtar -xf extern_libs/ffmpeg.tar.gz -C extern_libs
+  # fix building with binutil >= 2.41
+  patch -Np1 -i "$srcdir/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch" -d extern_libs/ffmpeg
+  # fix library linking order
+  sed -i 's/$FFMPEG_LIBAVUTIL_A $FFMPEG_LIBSWSCALE_A/$FFMPEG_LIBSWSCALE_A $FFMPEG_LIBAVUTIL_A/' configure.in
+}
 
 package() {
   cd "${srcdir}/gimp-gap"

I don't understand the difference between the patch file and this one.

However, the PKGBUILD that results from your work

 pkgname=gimp-gap
 pkgver=2.7
 pkgrel=1
 pkgdesc="Gimp Animation Package, gimp's plugin for animation"
 url="https://www.gimp.org/tutorials/Using_GAP/"
 arch=('x86_64' 'i686')
 license=('GPLv3' )
 depends=('gimp>=2.6.0' 'glib2')
 makedepends=( 'intltool' 'cmake' 'git')
 optdepends=('xvidcore: compression codec' 
                        'lbzip2: data compressor' 
                        'faac: audio encoder' 
                        'faad2: audio decoder' 
                        'lame: mpeg layer 3 codec' 
                        'libx264: H264 codec')

source=('git+https://gitlab.gnome.org/Archive/gimp-gap.git'
         effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch::https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/effadce6c756247ea8bae32dc13bb3e6f464f0eb)
md5sums=('SKIP'
         '955ac456a53dbb221b7e2a87ab5a93f6')

prepare() {
  cd $pkgname
  bsdtar -xf extern_libs/ffmpeg.tar.gz -C extern_libs
  # fix building with binutil >= 2.41
  patch -Np1 -i "$srcdir/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch" -d extern_libs/ffmpeg
  # fix library linking order
  sed -i 's/$FFMPEG_LIBAVUTIL_A $FFMPEG_LIBSWSCALE_A/$FFMPEG_LIBSWSCALE_A $FFMPEG_LIBAVUTIL_A/' configure.in
}
 
 package() {
   cd "${srcdir}/gimp-gap"
}

Builds without problem. If this is ok for everybody, tomorrow I will update it on AUR and see if works for everybody

Offline

#7 2023-10-12 23:05:35

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

Re: [SOLVED]New gimp-gap PKGBUILD

ElMastro wrote:

Builds without problem. If this is ok for everybody, tomorrow I will update it on AUR and see if works for everybody

Sure.

Offline

#8 2023-10-13 23:17:15

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

I have installed and tried the package. The 'Video' Menu entry does not come out.
There is no unusual message neither during the installation nor running gimp.

Could please someone see if on another machine the PKGBUILD does work?

Offline

#9 2023-10-14 12:20:48

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

Re: [SOLVED]New gimp-gap PKGBUILD

No video menu here.

I know very little about gimp, are any plugins from gimp-gap shown in the gimp plugin-browser ?


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

#10 2023-10-14 17:51:14

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

Lone_Wolf wrote:

I know very little about gimp, are any plugins from gimp-gap shown in the gimp plugin-browser ?

I am not 100% sure, but I think not.

Offline

#11 2023-10-16 08:12:19

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

Re: [SOLVED]New gimp-gap PKGBUILD

https://gitlab.gnome.org/Archive/gimp-gap/-/blob/master/README?ref_type=heads wrote:

This is an unstable developers version 2.7.0 of the GIMP 'Video' menu.

The GIMP-GAP (GIMP Animation Package) is a collection of plug-ins
to extend the GIMP with capabilities to edit and create
animations as sequences of single frames.


Requires:
=========
- gimp 2.8.0 or higher.
     This release was tested with gimp-2.8.10
     
     Note: GIMP-GAP provides some features that are able to call many of the
           GIMP standard filters. (plug-in programs that are shiped with
           gimp-2.8.10) Those features depend on the tested PDB interface
           versions and may fail if newer version are used.

gimp-gap looks abandoned, you may have to figure out what changed between gimp 2.8.10 and 2.10.34 wrt plugin detection.

Since gimp 2.8.10 was released in 2013 that won't be easy.


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

#12 2023-10-16 22:11:52

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

Lone_Wolf wrote:

gimp-gap looks abandoned

This is what I feared most. I will give it a try eventually, but this sounds incredibly difficult.

Last edited by ElMastro (2023-10-16 22:12:22)

Offline

#13 2023-10-26 10:46:43

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

Greetings. I have noticed that the package built with the last PKGBUILD is 16 kb big (and also I couldn't find any plugin file inside). This seems wrong to me. Can anyone confirm we are all ok with it?

I am looking for some documentation about the plugin in gimps, I am looking at the differences between the
new version and the older one. This looks like every plugins will have to be reworked.

Offline

#14 2023-10-26 12:47:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,319

Re: [SOLVED]New gimp-gap PKGBUILD

Your "final" PKGBUILD looks like you didn't just apply a diff to the existing PKGBUILD. The package function should contain a copy of the built artifacts to the $pkgdir. the package function should retain all of

package() {
  cd "${srcdir}/gimp-gap"
 ./autogen.sh CC="gcc" CXX="g++" LDFLAGS="-lm" CFLAGS="-g"
 cmake
 make
 make DESTDIR="${pkgdir}" install
 rmdir "${pkgdir}/usr/local/lib/gimp-gap-2.7"
}

Offline

#15 2023-10-30 16:37:41

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

Yes, I see my mistake.
unfortunately I can confirm that with the correct package section the build hangs up with (numerous) libavformat errors.

Offline

#16 2023-10-30 18:57:05

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

Re: [SOLVED]New gimp-gap PKGBUILD

Please post your current PKGBUILD that produces these errors.

Offline

#17 2023-11-02 11:51:33

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

I apologize for the late answer;

the PKGBUILD I am using right now is

pkgname=gimp-gap
 pkgver=2.7
 pkgrel=1
 pkgdesc="Gimp Animation Package, gimp's plugin for animation"
 url="https://www.gimp.org/tutorials/Using_GAP/"
 arch=('x86_64' 'i686')
 license=('GPLv3' )
 depends=('gimp>=2.6.0' 'glib2')
 makedepends=( 'intltool' 'cmake' 'git')
 optdepends=('xvidcore: compression codec' 
                        'lbzip2: data compressor' 
                        'faac: audio encoder' 
                        'faad2: audio decoder' 
                        'lame: mpeg layer 3 codec' 
                        'libx264: H264 codec')

source=('git+https://gitlab.gnome.org/Archive/gimp-gap.git'
         effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch::https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/effadce6c756247ea8bae32dc13bb3e6f464f0eb)
md5sums=('SKIP'
         '955ac456a53dbb221b7e2a87ab5a93f6')

prepare() {
  cd $pkgname
  bsdtar -xf extern_libs/ffmpeg.tar.gz -C extern_libs
  # fix building with binutil >= 2.41
  patch -Np1 -i "$srcdir/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch" -d extern_libs/ffmpeg
  # fix library linking order
  sed -i 's/$FFMPEG_LIBAVUTIL_A $FFMPEG_LIBSWSCALE_A/$FFMPEG_LIBSWSCALE_A $FFMPEG_LIBAVUTIL_A/' configure.in
}
 
package() {
  cd "${srcdir}/gimp-gap"
 ./autogen.sh CC="gcc" CXX="g++" LDFLAGS="-lm" CFLAGS="-g"
 cmake
 make
 make DESTDIR="${pkgdir}" install
 rmdir "${pkgdir}/usr/local/lib/gimp-gap-2.7"
}

Unfortunately I have this feeling that the problem is with the source (it keeps spanning out errors about libavformat).
I have also tried changing  ./autogen.sh with ./configure and/or inserting autoconf before, but it seems this is not the solution...

Offline

#18 2023-11-02 12:51:28

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

Re: [SOLVED]New gimp-gap PKGBUILD

ElMastro wrote:

Unfortunately I have this feeling that the problem is with the source (it keeps spanning out errors about libavformat).

There are lots of issues with the source you are using and as the upstream project is archived you will have to fix them all.  The PKGBUILD below builds for me:

#Maintainer: M. Mastroeni <the_maxtro@hotmail.it>
pkgname=gimp-gap
pkgver=2.7
pkgrel=1
pkgdesc="Gimp Animation Package, gimp's plugin for animation"
url="https://www.gimp.org/tutorials/Using_GAP/"
arch=('x86_64' 'i686')
license=('GPL3')
depends=('gimp>=2.6.0' 'glib2')
makedepends=('intltool' 'git')
optdepends=('xvidcore: compression codec' 
            'lbzip2: data compressor' 
            'faac: audio encoder' 
            'faad2: audio decoder' 
            'lame: mpeg layer 3 codec' 
            'libx264: H264 codec')
options=(!buildflags)
source=('git+https://gitlab.gnome.org/Archive/gimp-gap.git'
         effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch::https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/effadce6c756247ea8bae32dc13bb3e6f464f0eb)
md5sums=('SKIP'
         '955ac456a53dbb221b7e2a87ab5a93f6')

prepare() {
  cd $pkgname
  bsdtar -xf extern_libs/ffmpeg.tar.gz -C extern_libs
  # fix building with binutil >= 2.41
  patch -Np1 -i "$srcdir/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch" -d extern_libs/ffmpeg
  # fix library linking order
  sed -i 's/$FFMPEG_LIBAVUTIL_A $FFMPEG_LIBSWSCALE_A/$FFMPEG_LIBSWSCALE_A $FFMPEG_LIBAVUTIL_A/' configure.in
  autoreconf -vfi
}

build() {
  cd $pkgname
  export LIBS='-lm'
  ./configure --prefix=/usr --with-ffmpegsrcdir="$PWD"/extern_libs/ffmpeg
  make -j1
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}

Offline

#19 2023-11-04 18:24:55

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

Yes I am still trying to figure it out (how it works). Thank you for the confirmation

Offline

#20 2023-11-04 18:59:24

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

Re: [SOLVED]New gimp-gap PKGBUILD

@ElMastro Does the PKGBUILD I provided in my previous post build for you?

Offline

#21 2023-11-10 21:58:34

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

@loqs:
Just yesterday I upgraded gimp to the 2.10.36-1 and your PKGBUILD works (I am seeing the menu entries right now). I am pretty sure I've tried it a week ago, but now I can confirm the problem is solved. I am uploading the PKGBUILD to AUR

Offline

#22 2023-11-11 18:03:48

ElMastro
Member
Registered: 2015-12-02
Posts: 64

Re: [SOLVED]New gimp-gap PKGBUILD

All right, thank you all for the help

Offline

Board footer

Powered by FluxBB