Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-lang/ocaml-4.11.2-r2 missing patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cengique
n00b
n00b


Joined: 17 Mar 2012
Posts: 13
Location: United States

PostPosted: Sun Feb 27, 2022 6:11 am    Post subject: dev-lang/ocaml-4.11.2-r2 missing patch Reply with quote

Hi,

ocaml-4.11.2-r2 is latest unmasked version of ocaml, but it fails to emerge (I synced today). It seems a patch file is referred from the ebuild, but it's actually missing the Gentoo sources.

I'm getting this error:
Code:

# emerge -1v dev-lang/ocaml

These are the packages that would be merged, in order:

Calculating dependencies                  ... done!
[ebuild  N     ] dev-lang/ocaml-4.11.2-r2:0/4.11::gentoo  USE="ocamlopt -emacs -flambda -latex -spacetime -xemacs" 4,957 KiB

Total: 1 package (1 new), Size of downloads: 4,957 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/ocaml-4.11.2-r2::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/d4/ocaml-4.11.2.tar.gz'
--2022-02-26 21:59:33--  http://distfiles.gentoo.org/distfiles/d4/ocaml-4.11.2.tar.gz
Resolving distfiles.gentoo.org... 89.187.164.37, 89.187.164.11, 2a02:6ea0:d200::5, ...
Connecting to distfiles.gentoo.org|89.187.164.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5075323 (4.8M) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/ocaml-4.11.2.tar.gz.__download__’

/usr/portage/distfi 100%[===================>]   4.84M   482KB/s    in 11s     

2022-02-26 21:59:45 (460 KB/s) - ‘/usr/portage/distfiles/ocaml-4.11.2.tar.gz.__download__’ saved [5075323/5075323]

 * ocaml-4.11.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking ocaml-4.11.2.tar.gz to /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work
>>> Preparing source in /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2 ...
 * Applying ocaml-4.11.2-glibc-2.34.patch ...                                                                                                                                                      [ ok ]
 * Applying ocaml-4.10.2-cflags.patch ...
/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment: line 618: /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch: No such file or directory
/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment: line 621: /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch: No such file or directory                         [ !! ]
 * ERROR: dev-lang/ocaml-4.11.2-r2::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch
 *
 * Call stack:
 *               ebuild.sh, line  127:  Called src_prepare
 *             environment, line 1622:  Called default
 *      phase-functions.sh, line  858:  Called default_src_prepare
 *      phase-functions.sh, line  923:  Called __eapi6_src_prepare
 *             environment, line  189:  Called eapply '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.11.2-glibc-2.34.patch' '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *             environment, line  686:  Called _eapply_patch '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *             environment, line  624:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/ocaml-4.11.2-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ocaml-4.11.2-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2'
 * S: '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2'

>>> Failed to emerge dev-lang/ocaml-4.11.2-r2, Log file:

>>>  '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/build.log'


The patch file ocaml-4.10.2-cflags.patch is not on the Gentoo git folder or is downloaded, but it is still referred from the ebuild:
Code:

# cat /usr/portage/dev-lang/ocaml/ocaml-4.11.2-r2.ebuild
...
PATCHES=(
        "${FILESDIR}"/${PN}-4.11.2-glibc-2.34.patch
        "${FILESDIR}"/${PN}-4.10.2-cflags.patch
)


Am I missing something? Should I have reported this somewhere else? :?

Thanks!
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sun Feb 27, 2022 6:21 am    Post subject: Re: dev-lang/ocaml-4.11.2-r2 missing patch Reply with quote

cengique wrote:
Hi,

ocaml-4.11.2-r2 is latest unmasked version of ocaml, but it fails to emerge (I synced today). It seems a patch file is referred from the ebuild, but it's actually missing the Gentoo sources.

I'm getting this error:
Code:

# emerge -1v dev-lang/ocaml

These are the packages that would be merged, in order:

Calculating dependencies                  ... done!
[ebuild  N     ] dev-lang/ocaml-4.11.2-r2:0/4.11::gentoo  USE="ocamlopt -emacs -flambda -latex -spacetime -xemacs" 4,957 KiB

Total: 1 package (1 new), Size of downloads: 4,957 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/ocaml-4.11.2-r2::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/d4/ocaml-4.11.2.tar.gz'
--2022-02-26 21:59:33--  http://distfiles.gentoo.org/distfiles/d4/ocaml-4.11.2.tar.gz
Resolving distfiles.gentoo.org... 89.187.164.37, 89.187.164.11, 2a02:6ea0:d200::5, ...
Connecting to distfiles.gentoo.org|89.187.164.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5075323 (4.8M) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/ocaml-4.11.2.tar.gz.__download__’

/usr/portage/distfi 100%[===================>]   4.84M   482KB/s    in 11s     

2022-02-26 21:59:45 (460 KB/s) - ‘/usr/portage/distfiles/ocaml-4.11.2.tar.gz.__download__’ saved [5075323/5075323]

 * ocaml-4.11.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking ocaml-4.11.2.tar.gz to /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work
>>> Preparing source in /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2 ...
 * Applying ocaml-4.11.2-glibc-2.34.patch ...                                                                                                                                                      [ ok ]
 * Applying ocaml-4.10.2-cflags.patch ...
/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment: line 618: /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch: No such file or directory
/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment: line 621: /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch: No such file or directory                         [ !! ]
 * ERROR: dev-lang/ocaml-4.11.2-r2::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch
 *
 * Call stack:
 *               ebuild.sh, line  127:  Called src_prepare
 *             environment, line 1622:  Called default
 *      phase-functions.sh, line  858:  Called default_src_prepare
 *      phase-functions.sh, line  923:  Called __eapi6_src_prepare
 *             environment, line  189:  Called eapply '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.11.2-glibc-2.34.patch' '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *             environment, line  686:  Called _eapply_patch '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *             environment, line  624:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/dev-lang/ocaml-4.11.2-r2/files/ocaml-4.10.2-cflags.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/ocaml-4.11.2-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/ocaml-4.11.2-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2'
 * S: '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/work/ocaml-4.11.2'

>>> Failed to emerge dev-lang/ocaml-4.11.2-r2, Log file:

>>>  '/var/tmp/portage/dev-lang/ocaml-4.11.2-r2/temp/build.log'


The patch file ocaml-4.10.2-cflags.patch is not on the Gentoo git folder or is downloaded, but it is still referred from the ebuild:
Code:

# cat /usr/portage/dev-lang/ocaml/ocaml-4.11.2-r2.ebuild
...
PATCHES=(
        "${FILESDIR}"/${PN}-4.11.2-glibc-2.34.patch
        "${FILESDIR}"/${PN}-4.10.2-cflags.patch
)


Am I missing something? Should I have reported this somewhere else? :?

Thanks!


Bugs belong on the bug tracker (bugs.gentoo.org) ;)

But thanks. I'll look at it now.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sun Feb 27, 2022 6:27 am    Post subject: Reply with quote

Fixed, thanks!
Back to top
View user's profile Send private message
cengique
n00b
n00b


Joined: 17 Mar 2012
Posts: 13
Location: United States

PostPosted: Sun Feb 27, 2022 9:02 pm    Post subject: Reply with quote

sam_ wrote:
Fixed, thanks!


Thanks for the quick solution!

Ah, right, the bug tracker. I knew there was another place I can submit. Thanks, will do it in the future. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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