[Bug 645082] Re: bacula misses requirement of gawk

2011-10-18 Thread Launchpad Bug Tracker
This bug was fixed in the package bacula - 5.0.3-1ubuntu6

---
bacula (5.0.3-1ubuntu6) precise; urgency=low

  * Add needed gawk dependency (LP: #645082)
- debian/control: add gawk to Depends for bacula-director-common.
- debian/patches/ubuntu_bacula-dir.conf.patch: call
  make_catalog_backup_awk with gawk, as awk might refer to something
  other than gawk, but make_catalog_backup_awk is gawk-specific.
  (as pointed out by Fred Baumgarten)
 -- Serge Hallyn serge.hal...@ubuntu.com   Fri, 14 Oct 2011 12:00:42 -0500

** Changed in: bacula (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/645082

Title:
  bacula misses requirement of gawk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/645082/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2011-10-14 Thread Serge Hallyn
** Changed in: bacula (Ubuntu)
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/645082

Title:
  bacula misses requirement of gawk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/645082/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2011-10-11 Thread Serge Hallyn
@Fred,

I'm sorry, I don't know what i was thinking with comments #3 and #5.
I'll get a debdiff sponsored as soon as precise opens up, switching the
awk call to gawk in bacula-dir.conf (in addition to adding gawk as a
dependency as before).

Thanks for catching that.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/645082

Title:
  bacula misses requirement of gawk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/645082/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2011-10-09 Thread Dave Walker
** Changed in: bacula (Ubuntu)
Milestone: None = precise-alpha-1

** Changed in: bacula (Ubuntu)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in Ubuntu.
https://bugs.launchpad.net/bugs/645082

Title:
  bacula misses requirement of gawk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/645082/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-23 Thread Fred Baumgarten
Is the fix really that simple ?

Actually make_catalog_backup_awk holds the first line:

#!/usr/bin/gawk -f

which is obviously correct. Durung the bacula call mawk got involved (it
was a server installation). I guess the callee does a command like awk
-f /etc/bacula/scripts/make_catalog_backup_awk which is even wrong if
mawk has precendence over gawk by using /etc/alternatives/awk. I guess
you need to inspect a bit deeper.

ah yes - i just took a look at bacula-dir.conf in /etc/bacula, there it
is:

RunBeforeJob = /usr/bin/awk -f
/etc/bacula/scripts/make_catalog_backup_awk -v cat1=MyCatalog
/etc/bacula/bacula-dir.conf

there the /usr/bin/awk needs to be changed to /usr/bin/gawk as well.

greetings,
Fred

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-23 Thread Serge Hallyn
Quoting Fred Baumgarten (645...@bugs.launchpad.net):
 Is the fix really that simple ?
 
 Actually make_catalog_backup_awk holds the first line:
 
 #!/usr/bin/gawk -f
 
 which is obviously correct. Durung the bacula call mawk got involved (it
 was a server installation). I guess the callee does a command like awk
 -f /etc/bacula/scripts/make_catalog_backup_awk which is even wrong if
 mawk has precendence over gawk by using /etc/alternatives/awk. I guess
 you need to inspect a bit deeper.

I'm not convinced this matters.  If mawk /etc/alternatives/awk points to
mawk, then mawk is installed.  If mawk is not installed, then 'awk' will
run gawk, since we are depending on gawk being installed.

 there the /usr/bin/awk needs to be changed to /usr/bin/gawk as well.

Again, not convinced.

** Changed in: bacula (Ubuntu)
 Assignee: Serge Hallyn (serge-hallyn) = (unassigned)

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-23 Thread Fred Baumgarten
Hi Serge !

I am pretty sure it matters. If gawk and mawk are installed the same
time, the user has to decide what awk is the default. If he uses mawk as
default via /etc/alternatives, /usr/bin/awk points to
/etc/alternatives/awk which points to /usr/bin/mawk. If bacula depends
on gawk (as quoted in the first line of
/etc/bacula/scripts/make_catalog_backup_awk), RunBeforeJob =
/usr/bin/awk -f /etc/bacula/scripts/make_catalog_backup_awk -v
cat1=MyCatalog /etc/bacula/bacula-dir.conf will fail, because the
statement in line number 1 is not read.

either way is possible:

RunBeforeJob = /usr/bin/gawk -f
/etc/bacula/scripts/make_catalog_backup_awk -v cat1=MyCatalog
/etc/bacula/bacula-dir.conf

which will use the correct awk, or

RunBeforeJob = /etc/bacula/scripts/make_catalog_backup_awk -v
cat1=MyCatalog /etc/bacula/bacula-dir.conf

which will use the first line in the script to find the correct awk but
requires the executable bit set which is not the case right now.
Therefore the right fix would be adding the g in solution number 1.

Thanks for your work,

Fred

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-22 Thread Serge Hallyn
** Changed in: bacula (Ubuntu)
   Status: New = Confirmed

** Changed in: bacula (Ubuntu)
   Importance: Undecided = High

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-22 Thread Serge Hallyn
Thanks for reporting this bug and helping to make Ubuntu better.

Sure looks like you're right, I'll propose a trivial patch.

** Changed in: bacula (Ubuntu)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-22 Thread Serge Hallyn
Pushed branch https://code.launchpad.net/~serge-
hallyn/ubuntu/maverick/bacula/depend-on-gawk/.  Need to test and propose
for merge.

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 645082] Re: bacula misses requirement of gawk

2010-09-22 Thread Serge Hallyn
I've pushed the resulting package to ppa:serge-hallyn/bacula-gawk

-- 
bacula misses requirement of gawk
https://bugs.launchpad.net/bugs/645082
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to bacula in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs