git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb on OpenBSD (-T not supported on filesystems...)

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 17, 2006, 09:51 UTC
Message-ID
<eej5qa$i3o$1@sea.gmane.org>
In-Reply-To
<op.tf0n3bjjqpav6l@crystal.sienna.ath.cx>
Andrew Pamment wrote:
Show 16 quoted lines
> On Sun, 17 Sep 2006 18:42:12 +0930, Jakub Narebski <jnareb@gmail.com>  
> wrote:
> 
>> What Perl version do you use? Does 'perldoc -f -X' has the following  
>> lines?
>>
>>         -X FILEHANDLE
>>
>>         (...) If "-T" or "-B" is used on a filehandle, the current IO  
>> buffer
>>         is examined rather than the first block. (...)
> 
> The version of perl is the one that comes with OpenBSD 3.9, it is v5.8.6.
> 
> I do get the above text when I run 'perldoc -f -X', does this mean it  
> should work? 

I thought that OpenBSD has perhaps distributed some old Perl version that doesn't have -X tests (including -T/-B) on filehandles.

Show 5 quoted lines
> When I try the original -T $fd I get: 
> 
> Software error:
> -T and -B not implemented on filehandles at /var/www/htdocs/git/gitweb.cgi  
> line 1598.
So this means that Perl implementation in OpenBSD is flawed.

Does anyone else has problem with gitweb on other systems? (I guess that gitweb doesn't work with ActivePerl).

>> The solution for you would be to skip -T test.
> 
> That works fine. Thanks.

The -T test is just a fallback for when we cannot derive mimetype. I don't know if you should default to 'application/octet-stream' or 'text/plain' in your case; that perhaps depends on the repository.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Andrew PammentNext: Randal L. Schwartz
Message 4 of 5 in “gitweb on OpenBSD (-T not supported on filesystems...)”
  1. Andrew PammentSep 17, 2006
  2. Jakub NarebskiSep 17, 2006
  3. Andrew PammentSep 17, 2006
  4. Jakub NarebskiSep 17, 2006
  5. Randal L. SchwartzSep 17, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.