Re: Detecting binaries in rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrice Dumas wrote:
> On Tue, Nov 04, 2008 at 11:53:46AM +0100, Dominik 'Rathann' Mierzejewski wrote:
>> On Tuesday, 04 November 2008 at 11:51, Patrice Dumas wrote:
>>> On Tue, Nov 04, 2008 at 10:42:32AM +0000, Andrew Haley wrote:
>>>> Hold on, how do you know that something is a "binary" ?  What if, for
>>>> example, it's an image bitmap?  In the general case it's not possible
>>>> to tell if something is source or binary.
>>> At least ELF files could be found out.
>> So could Windows binaries (executables, DLLs, C# blobs) and Java JARs.
> 
> File isn't very good at detecting java code, and it only see jar as Zip
> archive, and .class file as data. But using the extension + the fact
> that it is a zip archive may be a safe bet.

The fact that it's a JAR doesn't tell you it has any precompiled code in
it: some JARs don't.  By all means do this for ELF, but let's be sensible.

Andrew.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux