You are not logged in.

#1 2014-01-30 01:17:02

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

[Solved]I'm trying to build the bfgminer source locally.

I modified the PKGBUILD file for 3.9.0 and makepkg was successfull.
But I don't have the directory structure synchronized right. The "$srcdir" seems to default to pkg.
I read the PKGBUILD page, but the "$srcdir" is not explained. I looked at the environment and it's not defined there. I looked at "/etc/makepkg.conf" and it's not defined there. So where is this defined?

Last edited by ThinkFast (2014-01-30 02:09:18)

Offline

#2 2014-01-30 01:35:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

Post your PKGBUILD. The one I see in the repos is already for bfgminer 3.9.0-1.
$srcdir should be src and $pkgdir should be pkg.

Last edited by karol (2014-01-30 01:37:25)

Offline

#3 2014-01-30 01:39:10

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

[bitcoin@alarm-01 antminer]$ cat PKGBUILD

# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=bfgminer
pkgver=3.10.0
pkgrel=1
pkgdesc="Bitcoin miner featuring overclocking, monitoring, fan speed control and remote management. For FPGA/GPU/CPU Bitcoin mining."
arch=()
depends=('curl' 'jansson' 'libevent' 'libmicrohttpd' 'libusbx' 'lm_sensors')
makedepends=('uthash' 'yasm')
optdepends=('opencl-nvidia: OpenCL implementation for NVIDIA')
url='https://bitcointalk.org/index.php?topic=168174.0'
license=('GPL3')
source=(http://luke.dashjr.org/programs/bitcoin/files/$pkgname/$pkgver/$pkgname-$pkgver.tbz2
        remove-dangerous-rpath.patch)
sha256sums=('12458aed84abc4a953532fe0645772492701e5d627f56f62d382aa0f458a10d5'
            'd26d07ca23ae25798c4db37cfda1a6a76f22d06e73efab1ddf62b3e1a7eef04c')

prepare() {
  cd "$srcdir"/$pkgname-$pkgver

  patch -p0 < "${srcdir}"/remove-dangerous-rpath.patch
  NOSUBMODULES=1 ./autogen.sh
}

build() {
  cd "$srcdir"/$pkgname-$pkgver

  ./configure   --prefix=/usr \
                --disable-avalon \
                --disable-bigpic \
                --disable-littlefury \
                --disable-nanofury \
                --disable-hashbuster \
                --disable-hashbuster2 \
                --disable-bitforce \
                --disable-klondike \
                --disable-modminer \
                --disable-x6500 \
                --disable-ztex \
                --with-udevrulesdir=/usr/lib/udev/rules.d
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}

Offline

#4 2014-01-30 01:46:20

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

Ok. I see the correlation.
Then what is the procedure to install the files onto my system? Do I use pacman?

Offline

#5 2014-01-30 01:47:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

Read the wiki and the man page for makepkg.

Offline

#6 2014-01-30 01:52:27

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

karol wrote:

Read the wiki and the man page for makepkg.

Ok. I'm reading a page called "Creating Packages". Thanks.
When I finish, I will mark thread Solved.

Offline

#7 2014-01-30 01:59:22

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

Is there a way to setup a local repository? Or can you suggest a better way? Thanks.

Offline

#8 2014-01-30 01:59:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

Try first to search the forum and the wiki when looking for some tips or answers. I admit that the wiki search isn't perfect, but there's some explanation as to what srcdir means in the article you have found: https://wiki.archlinux.org/index.php/Cr … a_PKGBUILD

Offline

#9 2014-01-30 02:00:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

ThinkFast wrote:

Is there a way to setup a local repository? Or can you suggest a better way? Thanks.

What do you mean by local repository?
What do you want to do?

Offline

#10 2014-01-30 02:01:37

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

ThinkFast wrote:

Is there a way to setup a local repository? Or can you suggest a better way? Thanks.

Nevermind. Found a couple of threads on Google.

Offline

#11 2014-01-30 02:03:33

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

karol wrote:
ThinkFast wrote:

Is there a way to setup a local repository? Or can you suggest a better way? Thanks.

What do you mean by local repository?
What do you want to do?

I'm not the original maintainer and I don't want to step on toes. So I thought I could tell pacman to look locally on my machine first.

Offline

#12 2014-01-30 02:05:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

ThinkFast wrote:
karol wrote:
ThinkFast wrote:

Is there a way to setup a local repository? Or can you suggest a better way? Thanks.

What do you mean by local repository?
What do you want to do?

I'm not the original maintainer and I don't want to step on toes.

By doing what? I'm sorry, but I don't quite follow.

ThinkFast wrote:

So I thought I could tell pacman to look locally on my machine first.

Look for what? What did you change? Just the package version? You can use ABS for that.
If you want to use a local version of the source, you can do that too.

Offline

#13 2014-01-30 02:08:54

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

Ok. I will do some more reading. Sorry, I'm new to this. Thanks!

Offline

#14 2014-01-30 02:10:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]I'm trying to build the bfgminer source locally.

It's OK to ask questions when you're stuck, but tell us exactly what you want. It's not clear to me what do you mean by e.g. "I thought I could tell pacman to look locally on my machine first."

Offline

#15 2014-01-30 02:14:47

ThinkFast
Member
Registered: 2013-09-25
Posts: 38

Re: [Solved]I'm trying to build the bfgminer source locally.

karol wrote:
ThinkFast wrote:
karol wrote:

What do you mean by local repository?
What do you want to do?

I'm not the original maintainer and I don't want to step on toes.

By doing what? I'm sorry, but I don't quite follow.

ThinkFast wrote:

So I thought I could tell pacman to look locally on my machine first.

Look for what? What did you change? Just the package version? You can use ABS for that.
If you want to use a local version of the source, you can do that too.

I'm also changing the bfgminer build options.
I will try to be more specific next time.

Last edited by ThinkFast (2014-01-30 02:15:37)

Offline

Board footer

Powered by FluxBB