Bug 5486 - makerpms.sh.tmpl is broken
makerpms.sh.tmpl is broken
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Packaging
x64 Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
: 5485 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2008-05-22 15:13 UTC by Adam Williams
Modified: 2009-04-04 08:03 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Adam Williams 2008-05-22 15:13:25 UTC
trying to run samba-3.0.29/packaging/RHEL/makerpms.sh.tmpl results in error, its looking for samba-3.0.28a.tar.gz in the error output.

[root@roark RHEL]# sh makerpms.sh.tmpl
Supported RPM version []
~/samba-3.0.29/packaging/RHEL ~/samba-3.0.29/packaging/RHEL
~/samba-3.0.29/packaging/RHEL ~/samba-3.0.29/packaging/RHEL
chown: cannot access `samba-PVERSIONPREVISION': No such file or directory
Creating samba-PVERSION.tar.bz2 ... tar: samba-PVERSION/.: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
cp: cannot stat `samba.spec': No such file or directory
makerpms.sh.tmpl: Getting Ready to build release package
error: File /usr/src/redhat/SOURCES/samba-3.0.28a.tar.bz2: No such file or directory
makerpms.sh.tmpl: Done.
[root@roark RHEL]#
Comment 1 Gerald (Jerry) Carter 2008-05-22 16:44:56 UTC
Run these commands:

  $ cd packaging
  $ sh bin/update-pkginfo 3.0.29 1

This will create the spec file you need.
Comment 2 Gerald (Jerry) Carter 2008-05-22 16:45:33 UTC
*** Bug 5485 has been marked as a duplicate of this bug. ***
Comment 3 Ole H. Nielsen 2008-05-23 03:59:31 UTC
Unfortunately this workaround doesn't work. I get this error message:

# sh bin/update-pkginfo 3.0.29 1
Usage: update-pkginfo VERSION RELEASE REVISION

Please advise further.

Question: Will you correct this pacakaging problem in the next minor release ?
Comment 4 Adam Williams 2008-05-23 08:55:06 UTC
when I do bin/update-pkginfo 3.0.29 3.0.29 1 and then cd RHEL, sh makerpms.sh it builds but has some errors:

Provides: samba-doc = 3.0.29-
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/samba-3.0.29-root
error: Installed (but unpackaged) file(s) found:

RPM build errors:
    Installed (but unpackaged) file(s) found:
makerpms.sh: Done.

but when I ls -l /usr/src/redhat/RPMS/x86_64/samba-* the packages are not there.
Comment 5 Gerald (Jerry) Carter 2008-05-23 13:52:17 UTC
Yeah.  Will be fixed in next release.