Mixer should introduce a new export flag in the Manifest files that specifies the binary files that should be exported. By default, Mixer should export the files with qualifiers "/bin","/usr/bin" and "/usr/local/bin". Users should be able to specify if certain files should not be exported.
In order to implement this requirement, the following changes could to be done:
Build bundles can use the existing Files map[string]bool entry in the bundle info file to indicate exportable files. If exportable, the boolean value for the File will be set to true.
By default, the files with prefix "/bin","/usr/bin" and "/usr/local/bin" should be exportable. E.g.
"Files":{"/bin/file1":true,"/usr/bin/file2":true","/usr/local/bin/file3":true}
Build bundles should be able to process a new "un-export()" keyword in the bundle definition file that specifies the binary files that should not be exported in a bundle. E.g.
un-export(/bin/file1)un-export(/usr/bin/file2)
Build bundles can set the un-exported file entries to false in its corresponding bundle Info. Based on the above examples, this would end up being:
E.g. "Files":{"/bin/file1":false,"/usr/bin/file2":false","/usr/local/bin/file3":true}
Build update should add the exportable files to the Manifest file with an x in the 4th byte of the flag section of the Manifest. E.g.
F..x 6a197bc89bacaa95ca55a9ed6cd6674f8512bba32fce61cf7ab1b5738bb41d7b 10 /usr/bin/file_3
Mixer should introduce a new export flag in the Manifest files that specifies the binary files that should be exported. By default, Mixer should export the files with qualifiers "/bin","/usr/bin" and "/usr/local/bin". Users should be able to specify if certain files should not be exported.
In order to implement this requirement, the following changes could to be done:
Build bundles can use the existing
Files map[string]bool
entry in the bundle info file to indicate exportable files. If exportable, the boolean value for the File will be set totrue
. By default, the files with prefix "/bin","/usr/bin" and "/usr/local/bin" should be exportable. E.g."Files":{"/bin/file1":true,"/usr/bin/file2":true","/usr/local/bin/file3":true}
Build bundles should be able to process a new "un-export()" keyword in the bundle definition file that specifies the binary files that should not be exported in a bundle. E.g.
un-export(/bin/file1)
un-export(/usr/bin/file2)
Build bundles can set the un-exported file entries to
false
in its corresponding bundle Info. Based on the above examples, this would end up being:E.g. "Files":{"/bin/file1":false,"/usr/bin/file2":false","/usr/local/bin/file3":true}
Build update should add the exportable files to the Manifest file with an
x
in the 4th byte of the flag section of the Manifest. E.g.F..x 6a197bc89bacaa95ca55a9ed6cd6674f8512bba32fce61cf7ab1b5738bb41d7b 10 /usr/bin/file_3