Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

rtl-sdr 0.5.3: migrate from head-only (releases now provided on GitHub) #39574

Closed
wants to merge 1 commit into from

Conversation

L2G
Copy link
Contributor

@L2G L2G commented May 10, 2015

From the rtl-sdr home page:

The rtl-sdr code can be checked out with:

git clone git://git.osmocom.org/rtl-sdr.git

It can also be browsed via ​cgit, and there's an official ​mirror on github that also provides ​packaged releases.

In light of the mirror's "official" status and its holding of versioned releases, I thought maybe this formula could graduate to core.

@L2G
Copy link
Contributor Author

L2G commented May 10, 2015

Aware of and working on the buildbot errors.

@L2G L2G force-pushed the formula/rtl-sdr branch 4 times, most recently from ebd0a93 to 86175e7 Compare May 11, 2015 04:54
@L2G
Copy link
Contributor Author

L2G commented May 11, 2015

This is affected by #39620.

@L2G
Copy link
Contributor Author

L2G commented May 11, 2015

Also, there may be some CMake complications here. It all seems to build fine on my Mavericks system, and libusb certainly looks like it's 1.0.x.

Does Jenkins save the build logs in its artifacts or elsewhere?

@jacknagel
Copy link
Contributor

This probably needs a depends_on "pkg-config" => :build.

test do
assert_match(
%r{^rtl_sdr, an I/Q recorder for RTL2832 based DVB-T receivers$}m,
shell_output("#{bin}/rtl_sdr 2>&1", 1),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just disabled the rubocop rule that asked for this trailing comma, because it's a syntax error on Ruby 1.8.

@jacknagel
Copy link
Contributor

Should be past the rubocop weirdness now.

@L2G
Copy link
Contributor Author

L2G commented May 17, 2015

CMake Error at CMakeLists.txt:69 (message):
  LibUSB 1.0 required to compile rtl-sdr

Since libusb is already 1.0, I'm not sure what to do about this.

Note that I have only seen this happen in the Jenkins builds. On my Mavericks system, there is no error.

@DomT4
Copy link
Member

DomT4 commented May 17, 2015

Which build is that occurring in? The latest push turned blue/green on Yosemite and Mavericks bots, Mountain Lion still threw the syntax failure on the test block.

@L2G
Copy link
Contributor Author

L2G commented May 17, 2015

I just added depends_on "pkg-config" => :build, which I think helped.

I have a hunch there is something going on with superenv not fully sanitizing the environment of references to pkg-config. I say that because in my personal build that succeeded without the explicit pkg-config dependency, CMake found pkg-config at /usr/local/bin/pkg-config -- but /usr/local was not the Homebrew prefix I was trying to use at the time (I had no references to /usr/local/bin in my PATH).

end

test do
assert_match %r{^rtl_sdr, an I/Q recorder for RTL2832 based DVB-T receivers$}m, shell_output("#{bin}/rtl_sdr 2>&1", 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do a shorter match, don't need to match full lines like this. Also would be good to reduce the length of this line so it can wrap at 80 chars.

@DomT4
Copy link
Member

DomT4 commented May 22, 2015

Couple of comments here that need addressing from Mike, but otherwise looks great.

Releases are tagged on the GitHub repo, which is considered the
"official mirror."
@L2G
Copy link
Contributor Author

L2G commented Jun 7, 2015

Closing the PR since this has been added as librtlsdr with rtl-sdr as an alias.

@DomT4 DomT4 closed this Jun 7, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants