Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
blsz opened this issue Jun 18, 2019 · 5 comments
Closed

Comments

@blsz
Copy link

blsz commented Jun 18, 2019

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
Copy link

eNcacz commented Dec 7, 2019

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

@blsz
Copy link
Author

blsz commented Dec 7, 2019

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

@toaster
Copy link
Owner

toaster commented Mar 15, 2020

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.

@toaster toaster closed this as completed Mar 15, 2020
@blsz
Copy link
Author

blsz commented Mar 15, 2020

Thank you. It works.

@emladevops
Copy link

Same problem here, anyone know how to fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants