toaster / gentoo-overlay

2 stars 4 forks source link

media-video/apple_facetimehd_firmware "camera interface checksum mismatch" #11

Closed blsz closed 4 years ago

blsz commented 5 years ago

emerge does not appear to download the firmware.

 * Package:    media-video/apple_facetimehd_firmware-1.43.0
 * Repository: toaster
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work
>>> Preparing source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
xzcat: (stdin): File format not recognized
cpio: premature end of file
AppleCameraInterface: FAILED
md5sum: WARNING: 1 computed checksum did NOT match
 * ERROR: media-video/apple_facetimehd_firmware-1.43.0::toaster failed (compile phase):
 *   camera interface checksum mismatch
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 217:  Called die
 * The specific snippet of code:
 *       echo "${CAM_IF_MD5} ${CAM_IF_FILE}" | md5sum -c || die "camera interface checksum mismatch";
$ ls -al /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/files
lrwxrwxrwx 1 root root 67 Jun 18 00:43 /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/files -> /var/lib/layman/toaster/media-video/apple_facetimehd_firmware/files

$ ls -al /var/lib/layman/toaster/media-video/apple_facetimehd_firmware/files
ls: cannot access '/var/lib/layman/toaster/media-video/apple_facetimehd_firmware/files': No such file or directory

Previously it worked:

 * Package:    media-video/apple_facetimehd_firmware-1.43.0
 * Repository: toaster
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work
>>> Preparing source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/work ...
cpio: warning: skipped 2601658 bytes of junk
xzcat: (stdin): Unexpected end of input
cpio: premature end of file
AppleCameraInterface: OK
603715+0 records in
603715+0 records out
603715 bytes (604 kB, 590 KiB) copied, 0.6424 s, 940 kB/s
firmware.bin: OK
>>> Source compiled.
>>> Test phase [not enabled]: media-video/apple_facetimehd_firmware-1.43.0

>>> Install apple_facetimehd_firmware-1.43.0 into /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/image/ category media-video
>>> Completed installing apple_facetimehd_firmware-1.43.0 into /var/tmp/portage/media-video/apple_facetimehd_firmware-1.43.0/image/

 * Final size of build directory: 2136 KiB (2.0 MiB)
 * Final size of installed tree:  1396 KiB (1.3 MiB)
eNcacz commented 4 years ago

According to this post it is due to the network sandbox portage feature. It is not possible to access network during the build.

blsz commented 4 years ago

The URL of the dmg file and the byte range appear to have changed as well.

toaster commented 4 years ago

Hi there, sorry for the long delay. I updated the URL of the DMG file and adjusted the checksums. I also addressed the network-sandbox issue. For now the Ebuild uses a workaround feature (RESTRICT=network-sandbox). If anyone knows how to do partial downloads via the SRC_URL, please tell me. Then the download could be done by the framework.

blsz commented 4 years ago

Thank you. It works.

twilightty commented 3 years ago

Same problem here, anyone know how to fix?