You are not logged in.

#51 2004-12-12 04:34:37

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

With srcpac 0.3 (it really was time to release), srcpac -h outputs the usual usage information and the added srcpac options.  No man page needed wink


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#52 2005-01-15 00:50:54

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: pacman wrapper to allow source builds (srcpac)

However, srcpac -Sh gives:

usage:  pacman {-S --sync} [options] [package]
options:
  -c, --clean         remove old packages from cache directory (use -cc for all)
  -d, --nodeps        skip dependency checks
  -f, --force         force install, overwrite conflicting files
  -g, --groups        view all members of a package group
  -i, --info          view package information
  -l, --list          list all packages belonging to the specified repository
  -p, --print-uris    print out download URIs for each package to be installed
  -s, --search        search remote repositories for matching strings
  -u, --sysupgrade    upgrade all packages that are out of date
  -w, --downloadonly  download packages but do not install/upgrade anything
  -y, --refresh       download fresh package databases from the server
      --ignore <pkg>  ignore a package upgrade (can be used more than once)
      --config <path> set an alternate configuration file
      --noconfirm     do not ask for any confirmation
  -v, --verbose       be verbose
  -r, --root <path>   set an alternate installation root
  -b, --dbpath <path> set an alternate database location

which is a little confusing regarding the -b option.

Offline

#53 2005-01-16 19:37:54

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

Looks like Judd added an option that directly conflicts with srcpac.  I thought -b was a good one for build.  I guess I'll have to change that one day.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#54 2005-03-08 02:05:51

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

I added a manpage, added --ignore support, and fixed a conf handling bug.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#55 2005-03-08 02:10:29

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: pacman wrapper to allow source builds (srcpac)

8)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#56 2005-03-08 16:53:53

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman wrapper to allow source builds (srcpac)

Ya know, I've still yet to use srcpac... maybe I'll try that tonight

Offline

#57 2005-04-29 15:07:42

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman wrapper to allow source builds (srcpac)

ok, dredging up an old thread, but didn't want to start a new srcpac thread.

Once abs is able to hit the AUR, srcpac is going to be invaluable!

One thing though, as I've just begun messing with srcpac - if I use srcpac exclusively, and let's say I setup some configure options for vim in srcpac.conf - when vim7 is released, will "srcpac -Syu" catch it, understand it was compiled from source, and recompile?

If this isn't the case, it'd be a nice feature...

Anyway, crossing my fingers until I can cvsup the AUR repo...

Offline

#58 2005-05-12 05:30:09

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

To respond a while after these things were posted:

re: USE flags
srcpac uses sed commands to replace chunks of the PKGBUILD.  This is really a poor man's USE flags.

re: does srcpac remember which packages were from source
yes, it will.  Check out the output of srcpac -Qi <some package you built>.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#59 2005-09-13 17:50:34

manica
Member
Registered: 2004-11-20
Posts: 28

Re: pacman wrapper to allow source builds (srcpac)

How would I uncomment a line in a PKGBUILD using srcpac?  I want to uncomment the following lines from the subversion PKGBUILD and place the entry into srcpac.conf:

# make DESTDIR=$startdir/pkg javahl
# make DESTDIR=$startdir/pkg install-javahl

The tricky part is that the delimiter for srcpac.conf is the # that I wish to uncomment. 

Thanks!
Darin

Offline

#60 2005-09-13 18:10:15

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

You don't have to use # as the substitute delimiter.  You can use / or % or anything you'd like.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#61 2005-09-13 19:52:35

manica
Member
Registered: 2004-11-20
Posts: 28

Re: pacman wrapper to allow source builds (srcpac)

Hmmm... it didn't seem to work.  I added the following into my srcpac.conf

conf_subversion=('%#   make DESTDIR=$startdir/pkg javahl%make DESTDIR=$startdir/pkg javahl%' '%#   make DESTDIR=$startdir/pkg install-javahl%make DESTDIR=$startdir/pkg install-javahl%')

It built without error, but the javahl library is not installed.  When I uncomment the lines by hand and build the package, everything works fine.  I'd just like to automate it with srcpac.

Offline

#62 2005-09-13 20:18:06

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

You have to be aware of the $.  $ means end-of-line in regexp speak.

Also, check out the -o option for srcpac.  It lets you inspect the PKGBUILD after changes have been applied without building the package.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#63 2005-09-13 21:42:16

manica
Member
Registered: 2004-11-20
Posts: 28

Re: pacman wrapper to allow source builds (srcpac)

Ah, yes.  Thank you.  I also noticed that the -o option actually changes the PKGBUILD, so if it takes a little bit of experimenting to get it correct one may have to update the PKGBUILD from cvs to get it back to its original condition.  Here is a patch to srcpac that sends the output to stout without ever modifying the PKGBUILD.

Thanks for srcpac and the help!
Darin

--- srcpac    2005-09-13 21:10:23.000000000 +0000
+++ srcpac.patched    2005-09-13 21:10:23.000000000 +0000
@@ -72,6 +72,19 @@
     fi
 }
 
+output_confs()
+{
+    varname=`echo $1 | sed 's#-#X#g'`
+    eval num_conf=${#conf_$varname[@]}
+    if [ $num_conf -gt 0 ]; then
+        sedvar=""
+        eval "for (( j = 0 ; j < $num_conf ; j++ )); do
+            sedvar="${sedvar}s${conf_$varname[$j]};"
+        done"
+        eval sed "$sedvar" $2/PKGBUILD
+    fi
+}
+
 build_packages()
 {
     action="build"
@@ -426,8 +439,7 @@
                 for pkgdir in $candidates; do
                     if [ -f $pkgdir/PKGBUILD ]; then
                         # Look for config options and apply them
-                        do_confs $i $pkgdir
-                        less $pkgdir/PKGBUILD
+                        output_confs $i $pkgdir | less
                         success=1
                         break
                     fi

Offline

#64 2005-09-14 00:40:20

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: pacman wrapper to allow source builds (srcpac)

Hmmm, submit that to the bug tracker.  I may use that.

What I normally do is srcpac -Syo, the -y always updates from cvs first.  That way you know it's right no matter what.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#65 2005-09-14 13:46:09

manica
Member
Registered: 2004-11-20
Posts: 28

Re: pacman wrapper to allow source builds (srcpac)

Task #3175

I inlined the patch, and then saw I could attach it after the task was created, so it is in both places. 

Thanks again --
Darin

Offline

#66 2006-03-11 13:35:46

alcazoid
Member
From: Russia
Registered: 2006-03-11
Posts: 35

Re: pacman wrapper to allow source builds (srcpac)

Hi.
I just want to know how can I use CFLAGS in srcpac? Doesn't it takes this flags from makepkg.conf???
I'm trying to update the whole system using srcpac -Syb, but while installing the firest built package it tells me that some files are existing in my filesystem. The --force option seems not to work in srcpac, so I can't update my system automatically.
Sorry for your support. Arch is great distro, I like it very much smile
Sorry for my english

Offline

#67 2007-02-04 09:50:04

unixlust
Member
From: Sebes, Romania
Registered: 2007-01-12
Posts: 31

Re: pacman wrapper to allow source builds (srcpac)

I really like the idea of srcpac. Is this project discontinued ?

Offline

#68 2007-02-04 10:23:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman wrapper to allow source builds (srcpac)

Nope, srcpac is still valid, and it still works fine.  It's not discontinued, just idle.  pacman -S srcpac

Offline

#69 2007-02-04 12:00:38

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: pacman wrapper to allow source builds (srcpac)

phrakture wrote:

Nope, srcpac is still valid, and it still works fine.  It's not discontinued, just idle.  pacman -S srcpac

There are several rather old requests here:
http://bugs.archlinux.org/index.php?tas … ing=srcpac


When will we see a new release ?

Offline

#70 2009-03-09 04:21:21

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: pacman wrapper to allow source builds (srcpac)

If i try to install anything using srcpac, i just get a

Error: failed to build "pidgin"

It gives me that for anything I try to install. Any ideas on what the issue is?

Offline

#71 2009-08-12 21:54:15

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: pacman wrapper to allow source builds (srcpac)

Does this program still work?

Offline

#72 2009-12-09 18:05:27

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: pacman wrapper to allow source builds (srcpac)

I hope so, I am trying to resuscitate this project.
Please report any bug, thanks!

Offline

#73 2010-12-16 16:52:04

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: pacman wrapper to allow source builds (srcpac)

...and here we are! srcpac 0.8 is out smile

Offline

#74 2011-03-31 11:10:32

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: pacman wrapper to allow source builds (srcpac)

srcpac 0.10 is out with splitted packages support smile

see the ChangeLog for more.

Offline

#75 2011-08-22 09:26:02

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: pacman wrapper to allow source builds (srcpac)

Hello, I just found this whilst searching for source building options.

Has anyone used srcpac and mkarchroot together? Is there a way to make mkarchroot use srcpac in place of pacman and can I set it up so it compiles everything for i586?

I'd like to build a small server to run on some old kit. This looks promising...

Offline

Board footer

Powered by FluxBB