6 ms·
Browse the Debian source code
- guruz 13y agoIf you want more interactive (and colorfully trippy) browsing of some projects, check out http://code.woboq.org http://code.woboq.org Example http://code.woboq.org/userspace/glibc/stdlib/stdlib.h.html#strtol_l http://code.woboq.org/userspace/glibc/stdlib/stdlib.h.html#s... or http://code.woboq.org/linux/linux/init/initramfs.c.html#find_link http://code.woboq.org/linux/linux/init/initramfs.c.html#find... (hover over the symbols with your mouse..)
- rwmj 13y agoFast. I'm surprised however there's no source highlight or cross-referencing. As far as I can tell from a few sample files, it's literally just the source code as web pages (with line numbers, but that's it). Am I missing something? Edit: Solaris used to have a nice online source browser, but I can't seem to find it now. Did Oracle nix that? Edit #2: Turns out source highlighting requires Javascript. Still no cross-references though.
- estebank 13y agoYou're thinking of OpenGrok[1]. I think the project is still alive, but the public navigation of Solaris code with it is dead[2] under Oracle. [1]: http://opengrok.github.io/OpenGrok/ http://opengrok.github.io/OpenGrok/ [2]: https://java.net/projects/solaris-userland/sources/gate/show https://java.net/projects/solaris-userland/sources/gate/show
- shmerl 13y agoYou can browse the source of the illumos though, which is a fork of the OpenSolaris kernel. http://src.illumos.org/source/ http://src.illumos.org/source/
- eliasmacpherson 13y agoThink I know what you are talking about it, wikipedia says that oracle are developing it [2] but can't find solaris or any of their projects being hosted by them. Here's an opengrok of opensolaris being hosted by net bsd [1] [1]http://nxr.netbsd.org/search?q=telnet&project=src-opensolaris&defs=&refs=&path=&hist= http://nxr.netbsd.org/search?q=telnet&project=src-opensolari... [2]https://en.wikipedia.org/wiki/OpenGrok https://en.wikipedia.org/wiki/OpenGrok
- Myrmornis 13y agoWhere would I find the source code for the version of the command line utility "column" that ships with Debian? The BSD one doesn't handle consecutive tabs in a .tsv. I since wrote a version in go as an exercise but I'd still like to know how to find the source for debian's version.
- aw3c2 13y agoIt's manpage tells me > The column command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/ so http://sources.debian.net/src/util-linux http://sources.debian.net/src/util-linux
- deleted 13y ago[deleted]
- viraptor 13y agoFor any debian package questions like that: - go to packages.debian.org - search by name or by file: http://packages.debian.org/search?searchon=contents&keywords=column&mode=path&suite=stable&arch=any http://packages.debian.org/search?searchon=contents&keywords... - check the package page: http://packages.debian.org/wheezy/bsdmainutils http://packages.debian.org/wheezy/bsdmainutils - in the column on the right, you'll see a "Download Source Package" section with all the relevant files Or if you have debian/ubuntu running, just "apt-get source bsdmainutils"
- kragen 13y agoHere's how to find and download the source for any command you have installed on any Debian or Debian-derived distribution: ~$ type column column is /usr/bin/column ~$ dpkg -S /usr/bin/column bsdmainutils: /usr/bin/column ~$ apt-get source bsdmainutils Reading package lists... Done Building dependency tree Reading state information... Done NOTICE: 'bsdmainutils' packaging is maintained in the 'Git' version control system at: git://git.debian.org/git/bsdmainutils/bsdmainutils.git Need to get 277 kB of source archives. Get:1 http://ftp.br.debian.org/debian/ wheezy/main bsdmainutils 9.0.3 (dsc) [1,060 B] Get:2 http://ftp.br.debian.org/debian/ wheezy/main bsdmainutils 9.0.3 (tar) [276 kB] Fetched 277 kB in 15s (17.7 kB/s) gpgv: keyblock resource `/home/user/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Mon 11 Jun 2012 07:32:33 AM ART using DSA key ID 29F19BD1 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./bsdmainutils_9.0.3.dsc dpkg-source: info: extracting bsdmainutils in bsdmainutils-9.0.3 dpkg-source: info: unpacking bsdmainutils_9.0.3.tar.gz ~$ cd bsdmainutils-9.0.3/ ~/bsdmainutils-9.0.3$ ls config.mk debian freebsd.h Makefile patches README usr.bin ~/bsdmainutils-9.0.3$ find -name 'column*' ./usr.bin/column ./usr.bin/column/column.c ./usr.bin/column/column.1 ./debian/patches/column_nomerge.diff ./debian/patches/column.diff ./debian/patches/column_empty_lines.diff ./debian/patches/column_empty.diff ./debian/patches/column_error.diff Note that the Debian package separately includes the Debian-specific patches which, presumably, fix the bug you're suffering from. (`apt-get source` applied the diffs automatically, but they are useful when you want to, say, patch your BSD to fix the same bug.) If you don't have the command installed, you can't use `type` and `dpkg -S` to find out what package it's in. Instead, use `apt-file`, which is not installed by default: ~/bsdmainutils-9.0.3$ apt-file search /column | wc -l 459 Oof. ~/bsdmainutils-9.0.3$ apt-file search /column | grep /column$ bsdmainutils: /usr/bin/column yasnippet: /usr/share/emacs/site-lisp/yasnippet/snippets/text-mode/sql-mode/column
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- shmerl 13y agoBookmarked.